body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F7FAFC;
    color: #4A5568;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    padding: 2rem 0;
    text-align: center;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #5A67D8;
}

.header p {
    font-size: 1.25rem;
    color: #718096;
}

.main-content {
    padding-top: 3rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tool-card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.tool-icon {
    font-size: 3rem;
    color: #5A67D8;
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4A5568;
}

.tool-card p {
    font-size: 1rem;
    color: #718096;
}

/* Styles for tool pages like merge.html */
.tool-section {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-area {
    border: 2px dashed #CBD5E0;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    width: 100%;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.upload-area:hover {
    border-color: #5A67D8;
}

.upload-area i {
    font-size: 4rem;
    color: #A0AEC0;
}

.main-btn {
    background-color: #5A67D8;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.main-btn:hover {
    background-color: #434190;
}

.file-list {
    margin-top: 2rem;
    width: 100%;
    text-align: left;
}

.file-item {
    background-color: #E2E8F0;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.action-buttons {
    margin-top: 2rem;
    text-align: center;
    width: 100%;
}

#download-link {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    color: #5A67D8;
    font-weight: bold;
}

.status-message {
    margin-top: 1rem;
    color: #718096;
}
