* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Barlow Condensed', sans-serif;
    background: #d8d8d8;
    min-height: 100vh;
    color: #374151;
    line-height: 1.6;
}

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

.header-card {
    background: #f3f4f6;
    backdrop-filter: blur(20px);
    border-radius: 0;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid #e5e7eb;
    position: relative;
}

.header-card .logo {
    position: absolute;
    left: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    height: 60px;
    width: auto;
}

.header-card .date-display {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.header-text {
    flex: 1;
}

.header-card h1 {
    font-size: 2em;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    text-align: center;
}

.user-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.user-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-weight: 500;
}

.user-detail .icon {
    width: 16px;
    height: 16px;
}

.nav-menu {
    background: #ffffff;
    border-radius: 0;
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: none;
}

.nav-menu.show {
    display: block;
}

.nav-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
}

.nav-tab {
    flex: 1;
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nav-tab:hover {
    background: #f8fafc;
    color: #374151;
}

.nav-tab.active {
    color: #000000;
    border-bottom-color: #000000;
    background: #f8fafc;
}

/* Navigation dropdown styles */
.nav-tab.dropdown {
    position: relative;
}

.nav-tab-button {
    flex: 1;
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.nav-tab-button:hover {
    background: #f8fafc;
    color: #374151;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-dropdown.show {
    display: block;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.nav-dropdown-item:hover {
    background: #f8fafc;
    color: #374151;
}

.nav-dropdown-item.active {
    color: #000000;
    background: #f8fafc;
    font-weight: 600;
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.config-card {
    background: #ffffff;
    backdrop-filter: blur(20px);
    border-radius: 0;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.form-section-title svg {
    color: #000000;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 0;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: #686868;
    color: white;
}

.btn-primary:hover {
    background: #555555;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(104, 104, 104, 0.4);
}

.btn-secondary {
    background: #686868;
    color: white;
}

.btn-secondary:hover {
    background: #555555;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(104, 104, 104, 0.4);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.status-message {
    padding: 1rem;
    border-radius: 0;
    margin: 1rem 0;
    font-weight: 500;
    display: none;
}

.status-success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.status-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.status-info {
    background: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

.welcome-message {
    text-align: center;
    color: #6b7280;
    font-size: 1.1rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .main-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }

    .header-card {
        padding: 1.5rem;
        text-align: center;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        min-height: auto;
    }

    .header-card .logo {
        position: static;
        transform: none;
        margin-bottom: 1rem;
        height: 50px;
        order: 1;
    }

    .header-text {
        order: 2;
        margin-bottom: 1rem;
    }

    .header-card .date-display {
        position: static;
        transform: none;
        margin-top: 0;
        order: 3;
    }

    .header-card h1 {
        font-size: 1.5em;
        margin-bottom: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .user-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-tabs {
        flex-direction: column;
    }

    .nav-tab {
        border-bottom: 1px solid #e5e7eb;
        border-right: none;
    }
}