/* =====================================================
   DASHBOARDS - Estilos unificados para Dashboard Cliente y Dashboard Owner
   Sección 1: Dashboard Cliente
   Sección 2: Dashboard Owner
   ===================================================== */

/* =====================================================
   SECCIÓN 1: DASHBOARD CLIENTE
   ===================================================== */
.dashboard-container {
    background: linear-gradient(135deg, #0038A8 0%, #1a55c0 100%);
    min-height: 100vh;
    padding: 2rem 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.dashboard-header {
    text-align: center;
    color: white;
    margin-bottom: 2.5rem;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.dashboard-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.modern-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-title {
    color: #0038A8;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.appointments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.appointment-item {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #0038A8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.appointment-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 56, 168, 0.2);
}

.appointment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #0038A8, #4a7fd4);
    transition: width 0.3s ease;
}

.appointment-item:hover::before {
    width: 8px;
}

.appointment-info {
    flex: 1;
}

.appointment-info a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.appointment-info a:hover {
    color: #0038A8;
}

.commerce-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 0.3rem;
}

.appointment-details {
    color: #4a5568;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.appointment-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

.appointment-service {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #0038A8;
    font-weight: 500;
}

.cancel-btn {
    background: linear-gradient(135deg, #e53e3e, #fc8181);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 62, 62, 0.3);
}

.cancel-btn:active {
    transform: translateY(0);
}

.cancel-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
}

.cancel-btn:active::before {
    width: 300px;
    height: 300px;
}

.no-appointments {
    text-align: center;
    color: #718096;
    font-style: italic;
    padding: 2rem;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 12px;
    border: 2px dashed #cbd5e0;
}

.actions-grid {
    display: grid;
    gap: 1rem;
}

.action-btn {
    background: linear-gradient(135deg, #0038A8, #4a7fd4);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-btn.secondary {
    background: linear-gradient(135deg, #718096, #a0aec0);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 56, 168, 0.3);
}

.action-btn.secondary:hover {
    box-shadow: 0 12px 25px rgba(113, 128, 150, 0.3);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
}

.action-btn:active::before {
    width: 300px;
    height: 300px;
}

.stats-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #4a5568;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.history-section {
    margin-top: 2.5rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.history-subtitle {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.85;
    color:white !important;
}

.history-filter {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.history-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.history-date-input {
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    color: #2d3748;
}

.history-date-input:focus {
    outline: 2px solid #4a7fd4;
}

.history-clear-btn {
    background: linear-gradient(135deg, #a0aec0, #cbd5e0);
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #1a202c;
    transition: all 0.3s ease;
}

.history-clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(160, 174, 192, 0.4);
}

.history-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.summary-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #0038A8;
    font-size: 1.1rem;
}

.summary-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.summary-card li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #2d3748;
}

.summary-card span {
    color: #4a5568;
}

.history-results {
    margin-top: 1rem;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.history-item {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    border-radius: 15px;
    padding: 1.2rem 1.5rem;
    border-left: 4px solid #4a7fd4;
    box-shadow: 0 10px 25px rgba(0, 56, 168, 0.15);
    display: grid;
    gap: 0.8rem;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: #0038A8;
    font-weight: 600;
    text-transform: capitalize;
}

.history-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.history-main {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: #2d3748;
}

.history-commerce {
    font-size: 0.9rem;
    color: #4a5568;
}

.history-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-tag {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.history-tag.status {
    background: rgba(0, 56, 168, 0.15);
    color: #4c51bf;
}

.history-tag.price {
    background: rgba(72, 187, 120, 0.15);
    color: #2f855a;
}

.history-footer {
    background: rgba(229, 62, 62, 0.1);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    color: #c53030;
    font-size: 0.85rem;
}

.history-note {
    display: block;
}

.history-empty {
    text-align: center;
    color: #2d3748;
}

.history-empty-detail {
    font-size: 0.85rem;
    color: #4a5568;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-title {
        font-size: 2rem;
    }
    
    .appointment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cancel-btn {
        align-self: stretch;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .history-summary-grid {
        grid-template-columns: 1fr;
    }

    .history-body {
        flex-direction: column;
        align-items: flex-start;
    }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0038A8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ============================================
   SECCIÓN DE ESTADÍSTICAS
   ============================================ */

.stats-section {
    margin-bottom: 2.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #0038A8 0%, #1a55c0 100%);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 56, 168, 0.3);
    transition: all 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 56, 168, 0.4);
    }

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   SECCIÓN DE HISTORIAL
   ============================================ */

.history-section {
    margin-top: 2.5rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.history-subtitle {
    color: #718096;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.history-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.history-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
}

.history-date-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #2d3748;
    background: white;
    transition: all 0.3s ease;
    min-width: 160px;
}

    .history-date-input:focus {
        outline: none;
        border-color: #0038A8;
        box-shadow: 0 0 0 3px rgba(0, 56, 168, 0.1);
    }

.history-clear-btn {
    padding: 0.75rem 1.5rem;
    background: #f56565;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .history-clear-btn:hover {
        background: #e53e3e;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
    }

/* ============================================
   RESUMEN Y TARJETAS DE ESTADÍSTICAS
   ============================================ */

.history-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: white;
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

    .summary-card:hover {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

    .summary-card h3 {
        font-size: 1.1rem;
        font-weight: 700;
        color: #2d3748;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #0038A8;
    }

    .summary-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .summary-card li {
        display: flex;
        justify-content: space-between;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f7fafc;
        font-size: 0.95rem;
    }

        .summary-card li:last-child {
            border-bottom: none;
        }

        .summary-card li span {
            color: #718096;
        }

        .summary-card li strong {
            color: #2d3748;
            font-weight: 700;
        }

/* ============================================
   RESULTADOS DEL HISTORIAL
   ============================================ */

.history-results {
    margin-top: 2rem;
}

.modern-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-item {
    padding: 1.5rem;
    border-bottom: 1px solid #f7fafc;
    transition: all 0.3s ease;
}

    .history-item:last-child {
        border-bottom: none;
    }

    .history-item:hover {
        background: #f7fafc;
        transform: translateX(5px);
    }

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.history-date {
    font-size: 0.9rem;
    color: #0038A8;
    font-weight: 600;
    text-transform: capitalize;
}

.history-hour {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
}

.history-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.history-main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .history-main strong {
        font-size: 1.1rem;
        color: #2d3748;
        font-weight: 700;
    }

.history-commerce {
    font-size: 0.9rem;
    color: #718096;
}

.history-tags {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.history-tag {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

    .history-tag.status {
        background: #e6fffa;
        color: #047857;
        border: 1px solid #a7f3d0;
    }

    .history-tag.price {
        background: #fef3c7;
        color: #92400e;
        border: 1px solid #fcd34d;
    }

.history-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.history-note {
    font-size: 0.9rem;
    color: #f56565;
    font-style: italic;
}

/* ============================================
   ESTADO VACÍO
   ============================================ */

.history-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #718096;
}

    .history-empty p {
        margin: 0.5rem 0;
        font-size: 1.1rem;
        color: #4a5568;
    }

.history-empty-detail {
    font-size: 0.9rem !important;
    color: #a0aec0 !important;
}

/* ============================================
   PAGINACIÓN
   ============================================ */

.history-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    margin-top: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    gap: 1rem;
    flex-wrap: wrap;
}

.history-page-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #0038A8 0%, #1a55c0 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 56, 168, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .history-page-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 56, 168, 0.4);
    }

    .history-page-btn:active:not(:disabled) {
        transform: translateY(0);
    }

    .history-page-btn:disabled {
        background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
        cursor: not-allowed;
        opacity: 0.6;
        box-shadow: none;
    }

.history-page-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.history-page-range {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
    background: #f7fafc;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

/* ============================================
   ANIMACIONES
   ============================================ */

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .history-header {
        flex-direction: column;
        align-items: stretch;
    }

    .history-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .history-date-input,
    .history-clear-btn {
        width: 100%;
    }

    .history-summary-grid {
        grid-template-columns: 1fr;
    }

    .history-body {
        flex-direction: column;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .card-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .summary-card {
        padding: 1.25rem;
    }

    .history-item {
        padding: 1.25rem;
    }
}

/* ===== FIX: Forzar estilos de HISTORIAL con mayor especificidad ===== */

.dashboard-container .history-section {
    margin-top: 2.5rem;
}

.dashboard-container .history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
    color: inherit;
}

.dashboard-container .card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: .5rem;
}

.dashboard-container .history-subtitle {
    color: #718096;
    font-size: .95rem;
    margin-top: .25rem;
}

.dashboard-container .history-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-container .history-label {
    font-size: .9rem;
    font-weight: 600;
    color: #4a5568;
}

.dashboard-container .history-date-input {
    padding: .75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: .95rem;
    color: #2d3748;
    background: #fff;
    transition: all .3s ease;
    min-width: 160px;
    box-shadow: none;
}

    .dashboard-container .history-date-input:focus {
        outline: none;
        border-color: #0038A8;
        box-shadow: 0 0 0 3px rgba(0, 56, 168,.1);
    }

.dashboard-container .history-clear-btn {
    padding: .75rem 1.5rem;
    background: #f56565;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: all .3s ease;
}

    .dashboard-container .history-clear-btn:hover {
        background: #e53e3e;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(245,101,101,.3);
    }

/* Tarjetas de resumen */
.dashboard-container .history-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-container .summary-card {
    background: #fff;
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    border: 1px solid #e2e8f0;
    transition: all .3s ease;
}

    .dashboard-container .summary-card:hover {
        box-shadow: 0 8px 30px rgba(0,0,0,.12);
        transform: translateY(-2px);
    }

    .dashboard-container .summary-card h3 {
        font-size: 1.1rem;
        font-weight: 700;
        color: #2d3748;
        margin-bottom: 1.25rem;
        padding-bottom: .75rem;
        border-bottom: 2px solid #0038A8;
    }

    .dashboard-container .summary-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .dashboard-container .summary-card li {
        display: flex;
        justify-content: space-between;
        padding: .75rem 0;
        border-bottom: 1px solid #f7fafc;
        font-size: .95rem;
    }

        .dashboard-container .summary-card li:last-child {
            border-bottom: none;
        }

        .dashboard-container .summary-card li span {
            color: #718096;
        }

        .dashboard-container .summary-card li strong {
            color: #2d3748;
            font-weight: 700;
        }

/* Resultados */
.dashboard-container .history-results {
    margin-top: 2rem;
}

    .dashboard-container .history-results.modern-card {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,.08);
        border: 1px solid #e2e8f0;
        overflow: hidden;
    }

.dashboard-container .history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-container .history-item {
    padding: 1.5rem;
    border-bottom: 1px solid #f7fafc;
    transition: all .3s ease;
}

    .dashboard-container .history-item:last-child {
        border-bottom: none;
    }

    .dashboard-container .history-item:hover {
        background: #f7fafc;
        transform: translateX(5px);
    }

.dashboard-container .history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: .5rem;
}

.dashboard-container .history-date {
    font-size: .9rem;
    color: #0038A8;
    font-weight: 600;
    text-transform: capitalize;
}

.dashboard-container .history-hour {
    font-size: .85rem;
    color: #718096;
    font-weight: 500;
}

.dashboard-container .history-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-container .history-main {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

    .dashboard-container .history-main strong {
        font-size: 1.1rem;
        color: #2d3748;
        font-weight: 700;
    }

.dashboard-container .history-commerce {
    font-size: .9rem;
    color: #718096;
}

.dashboard-container .history-tags {
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
}

.dashboard-container .history-tag {
    padding: .4rem 1rem;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
}

    .dashboard-container .history-tag.status {
        background: #e6fffa;
        color: #047857;
        border: 1px solid #a7f3d0;
    }

    .dashboard-container .history-tag.price {
        background: #fef3c7;
        color: #92400e;
        border: 1px solid #fcd34d;
    }

.dashboard-container .history-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.dashboard-container .history-note {
    font-size: .9rem;
    color: #f56565;
    font-style: italic;
}

/* Vacío */
.dashboard-container .history-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #718096;
}

    .dashboard-container .history-empty p {
        margin: .5rem 0;
        font-size: 1.1rem;
        color: #4a5568;
    }

.dashboard-container .history-empty-detail {
    font-size: .9rem;
    color: #a0aec0;
}

/* Paginación */
.dashboard-container .history-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    margin-top: 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    border: 1px solid #e2e8f0;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-container .history-page-btn {
    padding: .75rem 1.5rem;
    background: linear-gradient(135deg,#0038A8,#1a55c0);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(0, 56, 168,.3);
    display: flex;
    align-items: center;
    gap: .5rem;
}

    .dashboard-container .history-page-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 56, 168,.4);
    }

    .dashboard-container .history-page-btn:disabled {
        background: linear-gradient(135deg,#cbd5e0,#a0aec0);
        cursor: not-allowed;
        opacity: .6;
        box-shadow: none;
    }

.dashboard-container .history-page-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.dashboard-container .history-page-range {
    font-size: .85rem;
    color: #718096;
    font-weight: 500;
    background: #f7fafc;
    padding: .4rem 1rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

/* Responsive específico del historial */
@media (max-width: 768px) {
    .dashboard-container .history-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-container .history-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-container .history-date-input,
    .dashboard-container .history-clear-btn {
        width: 100%;
    }

    .dashboard-container .history-summary-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-container .history-body {
        flex-direction: column;
    }
}

/* =====================================================
   SECCIÓN 2: DASHBOARD OWNER
   ===================================================== */
.owner-dashboard-container {
    background: linear-gradient(135deg, #0038A8 0%, #1a55c0 100%);
    min-height: 100vh;
    padding: 2rem 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dashboard-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.dashboard-header {
    text-align: center;
    color: white;
    margin-bottom: 2.5rem;
}

.dashboard-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.dashboard-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
}

.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.modern-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-title {
    color: #0038A8;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.commerce-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    border-radius: 15px;
    border-left: 5px solid #0038A8;
    transition: all 0.3s ease;
}

.commerce-section:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 56, 168, 0.15);
}

.commerce-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.commerce-name {
    font-weight: 700;
    font-size: 1.3rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.commerce-location {
    color: #718096;
    font-size: 0.95rem;
    margin-left: 0.5rem;
}

.edit-btn {
    background: linear-gradient(135deg, #38a169, #68d391);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 161, 105, 0.3);
}

.appointment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.appointment-item {
    background: white;
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-left: 4px solid #0038A8;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.appointment-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 56, 168, 0.15);
}

.appointment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #0038A8, #1a55c0);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.appointment-item:hover::before {
    width: 8px;
}

.appointment-detail {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-size: 0.95rem;
}

.appointment-detail:last-child {
    margin-bottom: 0;
}

.appointment-detail strong {
    color: #2d3748;
    margin-right: 0.5rem;
    min-width: 80px;
}

.appointment-detail .icon {
    margin-right: 0.3rem;
}

.no-appointments {
    text-align: center;
    color: #718096;
    font-style: italic;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 2px dashed #cbd5e0;
}

.view-agenda-btn {
    background: linear-gradient(135deg, #718096, #a0aec0);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.view-agenda-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(113, 128, 150, 0.3);
}

.actions-card {
    height: fit-content;
}

.actions-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-btn {
    background: linear-gradient(135deg, #0038A8, #4a7fd4);
    color: white;
    border: none;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.action-btn.primary {
    background: linear-gradient(135deg, #0038A8, #1a55c0);
}

.action-btn.secondary {
    background: linear-gradient(135deg, #38a169, #68d391);
}

.action-btn.tertiary {
    background: linear-gradient(135deg, #718096, #a0aec0);
}

.action-btn:hover {
    transform: translateY(-3px);
}

.action-btn.primary:hover {
    box-shadow: 0 12px 25px rgba(0, 56, 168, 0.3);
}

.action-btn.secondary:hover {
    box-shadow: 0 12px 25px rgba(56, 161, 105, 0.3);
}

.action-btn.tertiary:hover {
    box-shadow: 0 12px 25px rgba(113, 128, 150, 0.3);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
}

.action-btn:active::before {
    width: 300px;
    height: 300px;
}

.no-commerce-card {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.no-commerce-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.no-commerce-text {
    font-size: 1.3rem;
    color: #4a5568;
    margin-bottom: 2rem;
    font-weight: 500;
}

.create-commerce-btn {
    background: linear-gradient(135deg, #0038A8, #1a55c0);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.create-commerce-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 56, 168, 0.4);
}

.stats-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0038A8;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #4a5568;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-title {
        font-size: 2.2rem;
    }
    
    .commerce-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.price-highlight {
    color: #38a169;
    font-weight: 700;
}

.client-name {
    color: #0038A8;
    font-weight: 600;
}

/* =====================================================
   SECCIÓN 2: DASHBOARD OWNER — Hero
   Mismo lenguaje visual que mp-hero del marketplace
   ===================================================== */

.dbo-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #1d4ed8 100%);
    border-radius: 1.5rem;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem);
    position: relative;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 12px 40px rgba(15,23,42,.15);
    border: 1px solid rgba(147,197,253,.12);
}

.dbo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(139,92,246,.25), transparent 50%),
        radial-gradient(ellipse at 10% 90%, rgba(14,165,233,.20), transparent 45%);
    pointer-events: none;
}

.dbo-hero__eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #93c5fd;
    background: rgba(59,130,246,.18);
    border: 1px solid rgba(147,197,253,.3);
    padding: .28rem .72rem;
    border-radius: 999px;
    margin-bottom: .75rem;
}

.dbo-hero__title {
    position: relative;
    z-index: 1;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 .5rem;
    letter-spacing: -.02em;
    color: #ffffff;
}

.dbo-hero__sub {
    position: relative;
    z-index: 1;
    font-size: clamp(.9rem, 1.5vw, 1rem);
    color: rgba(219,234,254,.88);
    margin: 0;
    line-height: 1.55;
    max-width: 65ch;
}
