/* Authentication Pages Styles */
:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --success: #48bb78;
    --danger: #f56565;
    --warning: #ed8936;
    --info: #4299e1;
    --dark: #1a202c;
    --light: #f7fafc;
    --gray: #718096;
    --border: #e2e8f0;
    --card-bg: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: var(--text-primary);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Authentication Container */
.auth-container {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-form-wrapper {
    width: 100%;
    max-width: 500px;
}

.auth-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    background: white;
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Buttons */
.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(108, 117, 125, 0.4);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.auth-footer p {
    margin: 12px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.auth-footer a:hover {
    color: var(--secondary);
}

.auth-footer a:hover::after {
    width: 100%;
}

/* Alerts */
.alert {
    padding: 18px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
    border: none;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-error {
    background: linear-gradient(135deg, #fee 0%, #fdd 100%);
    color: #c33;
    border-left: 5px solid #f56565;
}

.alert-success {
    background: linear-gradient(135deg, #efe 0%, #dfd 100%);
    color: #363;
    border-left: 5px solid #48bb78;
}

.alert a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.alert a:hover {
    opacity: 0.8;
}

/* Dashboard Styles */
.dashboard-container {
    padding: 40px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    min-height: calc(100vh - 140px);
}

.dashboard-header {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.user-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    border: 5px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.user-details h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-details p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.dashboard-actions .btn {
    width: auto;
    padding: 12px 25px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.bg-blue {
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
}

.bg-green {
    background: linear-gradient(135deg, var(--success) 0%, #38a169 100%);
}

.bg-purple {
    background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
}

.bg-orange {
    background: linear-gradient(135deg, var(--warning) 0%, #dd6b20 100%);
}

.stat-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--dark);
}

.stat-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Dashboard Sections */
.dashboard-sections {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.section {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
}

.section-header h2 i {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 74, 162, 0.05) 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.booking-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 74, 162, 0.1) 100%);
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.booking-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.booking-date {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 8px 0;
}

.booking-status {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 15px;
    border-radius: 20px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-confirmed {
    background: rgba(237, 137, 54, 0.2);
    color: var(--warning);
    border: 1px solid rgba(237, 137, 54, 0.3);
}

.status-completed {
    background: rgba(72, 187, 120, 0.2);
    color: var(--success);
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.booking-actions .btn {
    width: auto;
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* Account Info */
.account-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 74, 162, 0.05) 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.info-row:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.info-value {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.05rem;
}

.status-active {
    color: var(--success);
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .auth-container {
        padding: 30px 15px;
    }
    
    .auth-form {
        padding: 35px 25px;
    }
    
    .auth-header h2 {
        font-size: 2rem;
    }
    
    .dashboard-header {
        padding: 30px;
    }
    
    .user-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .user-details h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .user-info {
        flex-direction: column;
        width: 100%;
    }
    
    .dashboard-actions {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        text-align: center;
    }
    
    .booking-actions {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .info-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .section-header h2 {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .auth-container {
        padding: 20px 10px;
    }
    
    .auth-form {
        padding: 25px 20px;
    }
    
    .auth-header h2 {
        font-size: 1.8rem;
    }
    
    .form-group input {
        padding: 12px 15px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .stat-card {
        padding: 25px;
    }
    
    .stat-content h3 {
        font-size: 1.8rem;
    }
    
    .dashboard-header {
        padding: 25px;
    }
    
    .section {
        padding: 25px;
    }
}




/* Provider Dashboard Additional Styles */
.provider-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.provider-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.provider-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.provider-avatar:not(:has(img)) {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
}

.provider-details h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.provider-details p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0 0 5px 0;
}

.provider-meta {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.provider-meta .rating,
.provider-meta .experience {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.provider-meta .rating {
    color: #f6e05e;
}

.provider-meta .experience {
    color: var(--text-secondary);
}

.dashboard-actions {
    display: flex;
    align-items: center;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

/* Services List */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

.service-info {
    flex: 1;
}

.service-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.service-info p {
    color: var(--text-secondary);
    margin: 0 0 10px 0;
    font-size: 0.95rem;
}

.service-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.service-meta .category {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.service-meta .duration {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.service-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.4rem;
}

/* Booking Customer */
.booking-customer {
    color: var(--text-primary);
    font-weight: 500;
    margin: 5px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }
    
    .provider-info {
        flex-direction: column;
        width: 100%;
    }
    
    .provider-meta {
        justify-content: center;
    }
    
    .dashboard-actions {
        width: 100%;
        justify-content: center;
    }
    
    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .service-price {
        align-self: flex-end;
    }
}


/* --- Footer Styling (Common) --- */
.site-footer {
    background: rgba(52, 152, 219, 0.1);;
    border-top: 1px solid #e6e6e6;
    padding: 25px 0;
    margin-top: 40px;
    text-align: center;
    width: 100%;
    bottom: 0;
    left: 0;
}

.site-footer p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
