﻿/**
 * Consolidated Tab Styles
 * This file contains all tab-related styles from individual Razor components
 */

/* ==================== Tab Container (UsersPresentation/Components/TabContainer) ==================== */
.profile-tabs {
    background: white;
    padding: 0 24px;
    border-bottom: 1px solid #e9ecef;
}

.profile-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 16px;
    background: transparent;
    font-size: 0.875rem;
}

.profile-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    background: transparent;
}

.tab-content {
    padding: 24px;
    min-height: 300px;
}

/* ==================== Generic Tab Pane (UsersPresentation/Components/GenericTabPane) ==================== */
.tab-pane {
    display: none;
}

.tab-pane.show.active {
    display: block;
    margin-left: 2%;
    margin-right: 2%;
}

/* ==================== Overview Tab Content (UsersPresentation/Components/OverviewTabContent) ==================== */
.contact-info-grid {
    display: grid;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 18px;
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 2px;
}

.contact-value {
    font-weight: 500;
    color: #2d3748;
}

.contact-value a {
    color: #0d6efd;
    text-decoration: none;
}

.contact-value a:hover {
    text-decoration: underline;
}

.status-section {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: auto;
}

.status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.status-badges .badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Edit Mode Styles */
.contact-info-item .form-control-sm {
    margin-top: 2px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.contact-info-item .form-control-sm:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: 0;
}

.contact-info-item .row {
    margin: 0;
}

.contact-info-item .row .col-md-6 {
    padding: 0 0.25rem;
}

.contact-info-item .row .col-md-6:first-child {
    padding-left: 0;
}

.contact-info-item .row .col-md-6:last-child {
    padding-right: 0;
}

/* Alert messages */
.alert-sm {
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Button animations */
.btn-group .btn {
    transition: all 0.2s ease-in-out;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
}

/* ==================== Booking Tab Content (UsersPresentation/Components/BookingTabContent) ==================== */
/* Navigation Tabs */
.booking-tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
}

.booking-tab-btn {
    background: none;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.booking-tab-btn:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.booking-tab-btn.active {
    background-color: #28a745;
    color: #6c757d;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.booking-tab-btn.active:hover {
    background-color: #218838;
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Booking Section */
.booking-section {
    min-height: 300px;
}

/* Appointment Cards */
.appointment-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.appointment-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.appointment-card.upcoming {
    border-left: 4px solid #28a745;
}

.appointment-card.history {
    border-left: 4px solid #6c757d;
}

/* Appointment Header */
.appointment-header {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
}

.appointment-date {
    flex-shrink: 0;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 8px;
    min-width: 60px;
}

.appointment-date .date-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
}

.appointment-date .date-month {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.appointment-date .date-year {
    font-size: 0.7rem;
    color: #adb5bd;
    margin-top: 2px;
}

.appointment-details {
    flex: 1;
    min-width: 0;
}

.appointment-service {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.3;
}

.appointment-time,
.appointment-operator {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.appointment-time i,
.appointment-operator i {
    width: 16px;
    color: #0d6efd;
}

.appointment-status {
    flex-shrink: 0;
    text-align: right;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-align: center;
    line-height: 1;
}

.status-badge.status-scheduled {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.status-confirmed {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-badge.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.status-noshow {
    background-color: #f1f3f4;
    color: #5f6368;
}

.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #8b6914;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 4px;
}

/* Appointment Footer */
.appointment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.appointment-price {
    font-size: 1.1rem;
    color: #2d3748;
}

.appointment-actions {
    display: flex;
    gap: 8px;
}

.appointment-actions .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
}

/* Appointment Notes */
.appointment-notes {
    padding: 12px 20px;
    background-color: #f1f3f4;
    border-top: 1px solid #e9ecef;
    color: #5f6368;
    font-style: italic;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.appointment-notes i {
    color: #0d6efd;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-tabs-nav {
        flex-direction: column;
        gap: 4px;
    }

    .booking-tab-btn {
        justify-content: center;
        text-align: center;
    }

    .appointment-header {
        flex-direction: column;
        gap: 12px;
    }

    .appointment-date {
        align-self: flex-start;
    }

    .appointment-status {
        text-align: left;
    }

    .appointment-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .appointment-actions {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .appointment-card {
        margin: 0 -8px 16px -8px;
        border-radius: 0;
    }

    .appointment-header,
    .appointment-footer {
        padding: 16px;
    }

    .appointment-notes {
        padding: 12px 16px;
    }
}

/* Hover and Focus States */
.appointment-card .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.booking-tab-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Animation for new content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.appointment-card {
    animation: fadeInUp 0.3s ease;
}

/* Treatwell-style accent colors */
:root {
    --treatwell-primary: #ff6b6b;
    --treatwell-secondary: #4ecdc4;
    --treatwell-success: #45b7d1;
    --treatwell-warning: #f9ca24;
    --treatwell-danger: #f0932b;
}

/* Optional: Use Treatwell colors for specific elements */
.appointment-card.upcoming {
    border-left-color: var(--treatwell-secondary);
}

.booking-tab-btn.active {
    background-color: var(--treatwell-primary);
}

.booking-tab-btn.active:hover {
    background-color: #ff5252;
}

/* ==================== Security Tab Content (UsersPresentation/Components/SecurityTabContent) ==================== */
.security-info {
    padding: 0;
}

.security-info .row {
    align-items: center;
}

.security-info strong {
    color: #495057;
    font-weight: 600;
}

.security-info .badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* ==================== Statistics Tab Content (UsersPresentation/Components/StatisticsTabContent) ==================== */
.statistics-container {
    background: white;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.09);
}

.statistics-container .row {
    padding: 10px 15px 10px 15px;
}

.statistcs-title {
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    line-height: 1.3;
    margin-top: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.statistics-container-title {
    font-size: 10px;
    font-weight: 500;
    color: #adb5bd;
    line-height: 1.3;
    margin-top: 5px;
    margin-bottom: 15px;
}

.statistics-container-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.statistics-container-icon i {
    font-size: 16px;
}

.statistics-container-text {
    font-size: 22px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.3;
    margin-top: 5px;
    margin-bottom: 5px;
}

.statistics-container-booking-title {
    font-size: 10px;
    font-weight: 500;
    color: #adb5bd;
    line-height: 1.3;
    margin-top: 5px;
    margin-bottom: 10px;
}

.statistics-container-booking-text {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 10px;
}
