/* Customer Dashboard Styles */
:root {
    --primary-color: #4CAF50;
    --primary-color-dark: #388E3C;
    --secondary-color: #2196F3;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --warning-color: #FFC107;
    --text-color: #333;
    --text-color-light: #666;
    --border-color: #ddd;
    --light-bg: #f5f5f5;
    --white: #fff;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.header h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Dashboard Container */
.dashboard-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Dashboard Sections */
.dashboard-section {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.dashboard-section h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Profile Card */
.profile-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
}

.profile-card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.profile-card p {
    margin: 0.5rem 0;
    color: var(--text-color-light);
}

/* Service List */
.service-list {
    display: grid;
    gap: 1rem;
}

.service-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.service-card h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.service-card p {
    margin: 0.5rem 0;
    color: var(--text-color-light);
}

/* Invoice List */
.invoice-list {
    display: grid;
    gap: 1rem;
}

.invoice-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--warning-color);
}

.invoice-card h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.invoice-card p {
    margin: 0.5rem 0;
    color: var(--text-color-light);
}

/* Appointment List */
.appointment-list {
    display: grid;
    gap: 1rem;
}

.appointment-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.appointment-card h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.appointment-card p {
    margin: 0.5rem 0;
    color: var(--text-color-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn i {
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-color-dark);
}

.btn-secondary {
    background: var(--light-bg);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.btn-success:hover {
    background: #43a047;
}

.btn-danger {
    background: var(--error-color);
    color: var(--white);
}

.btn-danger:hover {
    background: #e53935;
}

/* Section Actions */
.section-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem;
    border-radius: 4px;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Mobile Navigation Menu */
.nav-menu {
    display: none;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

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

    .dashboard-section {
        padding: 1rem;
    }

    .section-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-menu {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 0.8rem;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-menu ul {
        display: flex;
        justify-content: space-around;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .nav-menu a {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--text-color);
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .nav-menu i {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }
}

/* Additional breakpoint for very small devices */
@media screen and (max-width: 480px) {
    .header h1 {
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.7rem;
        font-size: 0.8rem;
    }

    .nav-menu {
        padding: 0.5rem;
    }

    .nav-menu a {
        font-size: 0.7rem;
    }

    .nav-menu i {
        font-size: 1rem;
    }
} 