:root {
    --deep-navy: #1a2332;
    --emerald-green: #10b981;
    --emerald-hover: #059669;
    --emerald-light: #d1fae5;
    --light-bg: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --success: #10b981;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --border-color: #dee2e6;
    --shadow: 0 2px 8px rgba(26, 35, 50, 0.1);
    --shadow-lg: 0 4px 16px rgba(26, 35, 50, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.navbar {
    background-color: var(--deep-navy);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-brand a {
    text-decoration: none;
    color: white;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.logo-accent {
    color: var(--emerald-green);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-menu a:hover {
    color: var(--emerald-green);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-icon {
    position: relative;
}

.notification-icon .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
}

.btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning, .btn-info {
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--emerald-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--deep-navy);
}

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

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

.btn-warning {
    background-color: var(--warning);
    color: var(--deep-navy);
}

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

.btn-logout {
    background-color: transparent;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-logout:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--info);
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    border-bottom: 2px solid var(--emerald-green);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.card-header h2, .card-header h3 {
    color: var(--deep-navy);
    font-weight: 700;
}

.card-body {
    padding: 1rem 0;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--deep-navy);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--emerald-green);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.form-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

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

.badge-warning {
    background-color: var(--warning);
    color: var(--deep-navy);
}

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

.badge-info {
    background-color: var(--info);
    color: white;
}

.badge-secondary {
    background-color: var(--dark-gray);
    color: white;
}

.badge-emerald {
    background-color: var(--emerald-green);
    color: white;
}

.badge-gold {
    background-color: var(--emerald-green);
    color: white;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table thead {
    background-color: var(--deep-navy);
    color: white;
}

.table th, .table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background-color: var(--light-gray);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

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

.stat-card {
    background: linear-gradient(135deg, var(--deep-navy) 0%, #2c3e50 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.stat-card.emerald {
    background: linear-gradient(135deg, var(--emerald-green) 0%, var(--emerald-hover) 100%);
    color: white;
}

.stat-card.gold {
    background: linear-gradient(135deg, var(--emerald-green) 0%, var(--emerald-hover) 100%);
    color: white;
}

.stat-card.success {
    background: linear-gradient(135deg, var(--success) 0%, #218838 100%);
}

.stat-card.info {
    background: linear-gradient(135deg, var(--info) 0%, #138496 100%);
}

.stat-card h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.hero {
    background: linear-gradient(135deg, var(--deep-navy) 0%, #2c3e50 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero .hero-accent {
    color: var(--emerald-green);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card-body {
    padding: 1.5rem;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
}

.service-card-category {
    color: var(--emerald-green);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.service-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-top: 1rem;
}

.provider-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.provider-card:hover {
    transform: translateY(-5px);
}

.provider-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--emerald-green);
}

.provider-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
}

.provider-rating {
    color: var(--emerald-green);
    margin-bottom: 0.5rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.footer {
    background-color: var(--deep-navy);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

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

.footer-section h3, .footer-section h4 {
    color: var(--emerald-green);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--emerald-green);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--emerald-green);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-gray);
}

.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.tab.active {
    color: var(--emerald-green);
    border-bottom: 3px solid var(--emerald-green);
    margin-bottom: -2px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--medium-gray);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--emerald-green);
    transition: width 0.3s;
}

.message-thread {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    max-width: 70%;
}

.message.sent {
    background-color: var(--deep-navy);
    color: white;
    margin-left: auto;
}

.message.received {
    background-color: var(--light-gray);
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .navbar-menu {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .navbar-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0;
        background-color: var(--deep-navy);
        padding: 1rem 0;
        margin-top: 1rem;
        border-radius: 8px;
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-menu a {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-menu a:last-child {
        border-bottom: none;
    }
    
    .navbar-user {
        flex-direction: column;
        width: 100%;
        gap: 0;
        border-top: 2px solid var(--emerald-green);
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .navbar-user a {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    .btn-logout {
        background-color: rgba(239, 68, 68, 0.1);
        color: #ef4444;
        border-radius: 6px;
        margin-top: 0.5rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 3rem 0;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Grids */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Cards */
    .card {
        padding: 1.5rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    /* Forms */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Buttons */
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
    }
    
    /* Tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    table th, table td {
        padding: 0.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Stat Cards */
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    /* Provider Cards */
    .provider-card {
        text-align: center;
    }
    
    /* Messages */
    .message {
        max-width: 85%;
    }
    
    /* Tabs */
    .tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .tab {
        flex: 1;
        min-width: 120px;
        font-size: 0.875rem;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        margin: 1rem;
        padding: 1.5rem;
    }
    
    /* Service Detail */
    .service-card-body {
        padding: 1rem;
    }
    
    .service-card-price {
        font-size: 1.25rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .navbar-menu a {
        font-size: 0.9rem;
    }
    
    table {
        font-size: 0.75rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}
