/* Mobile-specific component styles for Dental Net */

/* Mobile Dashboard Cards */
@media (max-width: 576px) {
    .stat-card {
        background: linear-gradient(135deg, white 0%, #f8fafc 100%);
        border: 1px solid var(--gray-200);
        border-radius: 1rem;
        padding: 1.25rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--primary);
        border-radius: 1rem 1rem 0 0;
    }
    
    .stat-card:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    }
    
    .stat-card .stat-icon {
        width: 3rem;
        height: 3rem;
        border-radius: 0.75rem;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        color: white;
        margin-right: 1rem;
        flex-shrink: 0;
    }
    
    .stat-card .stat-content {
        flex: 1;
    }
    
    .stat-card .stat-number {
        font-size: 1.75rem;
        font-weight: 700;
        color: var(--gray-900);
        line-height: 1;
        margin-bottom: 0.25rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.875rem;
        color: var(--gray-600);
        font-weight: 500;
    }
}

/* Mobile Quick Actions */
@media (max-width: 576px) {
    .quick-actions-section {
        margin-bottom: 2rem;
    }
    
    .quick-actions-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .quick-action {
        background: white;
        border: 1px solid var(--gray-200);
        border-radius: 1rem;
        padding: 1.25rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        text-decoration: none;
        color: inherit;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        position: relative;
        overflow: hidden;
    }
    
    .quick-action::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--primary);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }
    
    .quick-action:hover,
    .quick-action:active {
        transform: translateX(4px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        color: inherit;
        text-decoration: none;
    }
    
    .quick-action:hover::before,
    .quick-action:active::before {
        transform: scaleY(1);
    }
    
    .quick-action .action-icon {
        width: 3rem;
        height: 3rem;
        border-radius: 0.75rem;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        flex-shrink: 0;
    }
    
    .quick-action .action-content {
        flex: 1;
        text-align: left;
    }
    
    .quick-action .action-content h4 {
        font-size: 1rem;
        font-weight: 600;
        color: var(--gray-900);
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }
    
    .quick-action .action-content p {
        font-size: 0.875rem;
        color: var(--gray-600);
        margin: 0;
        line-height: 1.3;
    }
}

/* Mobile Appointment Items */
@media (max-width: 576px) {
    .appointment-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .appointment-item {
        background: white;
        border: 1px solid var(--gray-200);
        border-radius: 1rem;
        padding: 1.25rem;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        position: relative;
    }
    
    .appointment-item:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    }
    
    .appointment-time {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .appointment-time .time {
        font-size: 1rem;
        font-weight: 600;
        color: var(--primary);
        background: var(--primary-light);
        background-opacity: 0.1;
        padding: 0.25rem 0.75rem;
        border-radius: 0.5rem;
    }
    
    .appointment-info {
        margin-bottom: 1rem;
    }
    
    .appointment-info .patient-name {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--gray-900);
        margin-bottom: 0.5rem;
    }
    
    .appointment-details {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        font-size: 0.875rem;
        color: var(--gray-600);
        margin-bottom: 0.75rem;
    }
    
    .appointment-details span {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
    
    .appointment-details span::before {
        content: '•';
        color: var(--gray-400);
    }
    
    .appointment-details span:first-child::before {
        display: none;
    }
    
    .appointment-status {
        margin-bottom: 1rem;
    }
    
    .status-badge {
        padding: 0.375rem 0.75rem;
        border-radius: 0.5rem;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .appointment-actions {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .appointment-actions .btn {
        flex: 1;
        min-width: 0;
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
        border-radius: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.375rem;
    }
    
    .appointment-actions .btn i {
        font-size: 0.875rem;
    }
}

/* Mobile Booking Section */
@media (max-width: 576px) {
    .booking-section {
        padding: 3rem 0;
        background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    }
    
    .booking-card {
        background: white;
        border-radius: 1.5rem;
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        border: 1px solid var(--gray-200);
        overflow: hidden;
        margin: 0 1rem;
    }
    
    .booking-content {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .booking-icon {
        width: 4rem;
        height: 4rem;
        border-radius: 1rem;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        margin: 0 auto 1.5rem;
    }
    
    .booking-content h3 {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--gray-900);
        margin-bottom: 1rem;
    }
    
    .booking-content p {
        font-size: 1rem;
        color: var(--gray-600);
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .booking-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .booking-features .feature {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
        color: var(--gray-700);
        text-align: left;
    }
    
    .booking-features .feature i {
        color: var(--success);
        font-size: 1rem;
    }
    
    .booking-content .btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.125rem;
        font-weight: 600;
        border-radius: 0.75rem;
        box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    }
}

/* Mobile Hero Section */
@media (max-width: 576px) {
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        position: relative;
        overflow: hidden;
    }
    
    .hero-content {
        padding: 0 1rem;
        text-align: center;
    }
    
    .hero-text {
        color: white;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .title-highlight {
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        display: block;
    }
    
    .hero-description {
        font-size: 1.125rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        opacity: 0.95;
    }
    
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .btn-hero {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.125rem;
        font-weight: 600;
        border-radius: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        transition: all 0.3s ease;
    }
    
    .btn-hero:active {
        transform: scale(0.98);
    }
    
    .hero-stats {
        display: flex;
        justify-content: space-around;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .hero-stats .stat {
        flex: 1;
        text-align: center;
    }
    
    .hero-stats .stat-number {
        display: block;
        font-size: 1.75rem;
        font-weight: 700;
        color: white;
        line-height: 1;
        margin-bottom: 0.25rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.875rem;
        opacity: 0.9;
        line-height: 1.2;
    }
}

/* Mobile Features Section */
@media (max-width: 576px) {
    .features-section {
        padding: 4rem 0;
        background: white;
    }
    
    .features-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        background: white;
        border: 1px solid var(--gray-200);
        border-radius: 1.5rem;
        padding: 2rem 1.5rem;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        position: relative;
        overflow: hidden;
    }
    
    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
        border-radius: 1.5rem 1.5rem 0 0;
    }
    
    .feature-card:active {
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(0,0,0,0.16);
    }
    
    .feature-icon {
        width: 4rem;
        height: 4rem;
        border-radius: 1rem;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        margin: 0 auto 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--gray-900);
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .feature-card p {
        font-size: 1rem;
        color: var(--gray-600);
        line-height: 1.6;
        margin: 0;
    }
}

/* Mobile CTA Section */
@media (max-width: 576px) {
    .cta-section {
        padding: 4rem 0;
        background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
        color: white;
        text-align: center;
    }
    
    .cta-content {
        padding: 0 1rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: white;
        line-height: 1.2;
    }
    
    .cta-content p {
        font-size: 1.125rem;
        margin-bottom: 2rem;
        opacity: 0.95;
        line-height: 1.6;
    }
    
    .cta-content .btn-large {
        width: 100%;
        padding: 1.25rem 2rem;
        font-size: 1.125rem;
        font-weight: 600;
        border-radius: 0.75rem;
        box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    }
}

/* Mobile Empty States */
@media (max-width: 576px) {
    .empty-state {
        text-align: center;
        padding: 3rem 1rem;
        color: var(--gray-500);
    }
    
    .empty-state i {
        font-size: 3rem;
        margin-bottom: 1.5rem;
        opacity: 0.6;
        color: var(--gray-400);
    }
    
    .empty-state h4 {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--gray-700);
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
    
    .empty-state p {
        font-size: 1rem;
        color: var(--gray-500);
        margin-bottom: 2rem;
        line-height: 1.5;
    }
    
    .empty-state .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Mobile Loading States */
@media (max-width: 576px) {
    .loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        backdrop-filter: blur(4px);
    }
    
    .loading-spinner {
        background: white;
        border-radius: 1rem;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        box-shadow: 0 8px 32px rgba(0,0,0,0.2);
        margin: 0 1rem;
        max-width: 280px;
        width: 100%;
    }
    
    .spinner {
        width: 3rem;
        height: 3rem;
        border: 3px solid var(--gray-200);
        border-top: 3px solid var(--primary);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
    
    .loading-spinner p {
        margin: 0;
        font-size: 1rem;
        color: var(--gray-700);
        text-align: center;
    }
}