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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #4A5FBD 0%, #5FBEAA 100%);
    min-height: 100vh;
    color: #2C3E50;
}

/* Top Navigation */
.top-nav {
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #2C3E50;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF6B5A;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #FF6B5A;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #2C3E50;
    padding: 0.5rem;
}

.mobile-menu-toggle:hover {
    color: #FF6B5A;
}

.nav-user-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-greeting {
    color: #2C3E50;
    font-weight: 600;
    font-size: 1rem;
}

.logout-btn {
    background: transparent;
    border: 2px solid #FF6B5A;
    color: #FF6B5A;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #FF6B5A;
    color: white;
    transform: translateY(-2px);
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Dashboard Header */
.dashboard-header {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.dashboard-header h1 {
    color: #4A5FBD;
    font-size: 2.5rem;
    font-weight: 700;
}

.create-new-btn {
    background: linear-gradient(135deg, #FF6B5A 0%, #FF5544 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 90, 0.3);
}

.create-new-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 90, 0.4);
}

.btn-icon {
    font-size: 1.3rem;
}

/* Loading State */
.loading-state {
    background: white;
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #4A5FBD;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

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

.loading-state p {
    color: #666;
    font-size: 1.1rem;
}

/* Dashboard Main */
.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Dashboard Section */
.dashboard-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #E8E9EA;
}

.section-header h2 {
    color: #2C3E50;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-icon {
    font-size: 2rem;
}

.section-count {
    background: linear-gradient(135deg, #4A5FBD 0%, #5FBEAA 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 50px;
    text-align: center;
}

/* Submissions Grid */
.submissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Submission Card */
.submission-card {
    background: #F8F9FA;
    border: 2px solid #E8E9EA;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.submission-card:hover {
    border-color: #4A5FBD;
    box-shadow: 0 5px 20px rgba(74, 95, 189, 0.2);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.card-title {
    flex: 1;
}

.card-title h3 {
    color: #2C3E50;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.card-title p {
    color: #666;
    font-size: 0.9rem;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.draft {
    background: #FFF3CD;
    color: #856404;
}

.status-badge.submitted {
    background: #D1ECF1;
    color: #0C5460;
}

.status-badge.approved {
    background: #D4EDDA;
    color: #155724;
}

.status-badge.rejected {
    background: #F8D7DA;
    color: #721C24;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.95rem;
}

.card-detail-item strong {
    color: #2C3E50;
    font-weight: 600;
}

.card-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4A5FBD;
    margin-bottom: 1rem;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #E8E9EA;
}

.card-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.card-btn.primary {
    background: #4A5FBD;
    color: white;
}

.card-btn.primary:hover {
    background: #3A4F9D;
    transform: translateY(-1px);
}

.card-btn.secondary {
    background: transparent;
    border: 2px solid #4A5FBD;
    color: #4A5FBD;
}

.card-btn.secondary:hover {
    background: #4A5FBD;
    color: white;
}

.card-btn.danger {
    background: transparent;
    border: 2px solid #FF6B5A;
    color: #FF6B5A;
}

.card-btn.danger:hover {
    background: #FF6B5A;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    display: none;
}

.empty-state.show {
    display: block;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: #2C3E50;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #666;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #FFFFFF;
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid #F8F9FA;
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 0.5rem 2rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .dashboard-container {
        padding: 1rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }

    .create-new-btn {
        justify-content: center;
    }

    .submissions-grid {
        grid-template-columns: 1fr;
    }

    .nav-user-section {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }

    .user-greeting {
        font-size: 0.9rem;
    }
}
