/* ========================================
   SURGICARE MOBILE VIEW CSS
   Centralized mobile styling with ripple animations
   ======================================== */

/* ========================================
   MOBILE CONTAINER & LAYOUT
   ======================================== */
.mobile-app-container {
    display: none;
    min-height: 100vh;
    background: #f5f7f9;
    position: relative;
    overflow-x: hidden;
}

@media (max-width: 991px) {
    .mobile-app-container {
        display: block;
    }
    .desktop-content {
        display: none !important;
    }
}

/* ========================================
   MOBILE PAGE HEADER WITH RIPPLE ANIMATIONS
   ======================================== */
.mobile-page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 20px 20px 60px;
    position: relative;
    overflow: hidden;
}

.mobile-page-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.mobile-back-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.mobile-page-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.mobile-page-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin: 4px 0 0;
}

/* ========================================
   RIPPLE CIRCLE ANIMATIONS
   ======================================== */
.mobile-page-header .background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.static-circle {
    position: absolute;
    background: transparent;
    border-radius: 50%;
    animation: gentle-breathe 6s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}

.static-1 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation-delay: 0s;
}

.static-2 {
    width: 500px;
    height: 500px;
    bottom: -200px;
    left: -200px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation-delay: 1s;
}

.static-3 {
    width: 700px;
    height: 700px;
    bottom: -300px;
    left: -300px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation-delay: 2s;
}

.ripple-center {
    position: absolute;
    bottom: -50px;
    left: -50px;
}

.circle {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
}

.circle-1 {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    animation: ripple-weighted 8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    animation-delay: 0s;
}

.circle-2 {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    animation: ripple-weighted 8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    animation-delay: 0.7s;
}

.circle-3 {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    animation: ripple-weighted 8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    animation-delay: 1.4s;
}

@keyframes ripple-weighted {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    15% {
        transform: scale(2);
        opacity: 0.9;
    }
    40% {
        transform: scale(8);
        opacity: 0.6;
    }
    70% {
        transform: scale(18);
        opacity: 0.25;
    }
    100% {
        transform: scale(28);
        opacity: 0;
    }
}

@keyframes gentle-breathe {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.03);
        opacity: 1;
    }
}

/* ========================================
   MOBILE MAIN CONTENT
   ======================================== */
.mobile-main-content {
    background: #f5f7f9;
    border-radius: 28px 28px 0 0;
    margin-top: -36px;
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 150px);
    padding: 24px 16px 100px;
}

/* Hide scrollbar but keep functionality */
.mobile-main-content::-webkit-scrollbar {
    display: none;
}
.mobile-main-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ========================================
   MOBILE CARDS
   ======================================== */
.mobile-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.mobile-card:hover {
    box-shadow: 0 4px 20px rgba(6, 24, 54, 0.15);
    transform: translateY(-2px);
}

.mobile-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a2233;
    margin: 0 0 16px;
}

.mobile-section-subtitle {
    font-size: 0.875rem;
    color: #5a6370;
    margin: 0 0 20px;
}

/* ========================================
   MOBILE ANIMATIONS
   ======================================== */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeSlideUp 0.5s ease forwards;
}

.delay-1 {
    animation-delay: 0.05s;
    opacity: 0;
}

.delay-2 {
    animation-delay: 0.1s;
    opacity: 0;
}

.delay-3 {
    animation-delay: 0.15s;
    opacity: 0;
}

.delay-4 {
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-5 {
    animation-delay: 0.25s;
    opacity: 0;
}

/* ========================================
   MOBILE BUTTONS
   ======================================== */
.mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.938rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.mobile-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(6, 24, 54, 0.3);
}

.mobile-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 24, 54, 0.4);
    color: white;
}

.mobile-btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.mobile-btn-secondary:hover {
    background: var(--primary-lightest);
    color: var(--primary-color);
}

.mobile-btn-block {
    width: 100%;
}

/* ========================================
   MOBILE FORMS
   ======================================== */
.mobile-form-group {
    margin-bottom: 20px;
}

.mobile-form-label {
    display: block;
    font-size: 0.938rem;
    font-weight: 600;
    color: #1a2233;
    margin-bottom: 8px;
}

.mobile-form-input,
.mobile-form-select,
.mobile-form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.mobile-form-input:focus,
.mobile-form-select:focus,
.mobile-form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(6, 24, 54, 0.1);
}

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

.mobile-form-help {
    font-size: 0.813rem;
    color: #5a6370;
    margin-top: 6px;
}

/* ========================================
   MOBILE LISTS
   ======================================== */
.mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-list-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.mobile-list-item:hover {
    box-shadow: 0 4px 16px rgba(6, 24, 54, 0.15);
    transform: translateX(4px);
}

.mobile-list-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #061836 0%, #0c3857 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.mobile-list-content {
    flex: 1;
}

.mobile-list-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2233;
    margin: 0 0 4px;
}

.mobile-list-subtitle {
    font-size: 0.875rem;
    color: #5a6370;
    margin: 0;
}

/* ========================================
   MOBILE BADGES & TAGS
   ======================================== */
.mobile-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.813rem;
    font-weight: 600;
}

.mobile-badge-primary {
    background: var(--primary-lightest);
    color: var(--primary-color);
}

.mobile-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.mobile-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.mobile-badge-danger {
    background: #fdeaea;
    color: #dc2626;
}

/* ========================================
   MOBILE DIVIDERS
   ======================================== */
.mobile-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 24px 0;
}

.mobile-divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
}

.mobile-divider-text::before,
.mobile-divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.mobile-divider-text span {
    padding: 0 16px;
    font-size: 0.875rem;
    color: #5a6370;
    font-weight: 500;
}

/* ========================================
   MOBILE EMPTY STATES
   ======================================== */
.mobile-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.mobile-empty-icon {
    font-size: 4rem;
    color: #9ca3af;
    margin-bottom: 20px;
}

.mobile-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a2233;
    margin: 0 0 8px;
}

.mobile-empty-text {
    font-size: 0.938rem;
    color: #5a6370;
    margin: 0 0 24px;
}

/* ========================================
   MOBILE ALERTS
   ======================================== */
.mobile-alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
}

.mobile-alert-icon {
    font-size: 1.5rem;
    min-width: 24px;
}

.mobile-alert-content {
    flex: 1;
}

.mobile-alert-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.mobile-alert-text {
    font-size: 0.875rem;
    margin: 0;
}

.mobile-alert-success {
    background: #d1fae5;
    color: #065f46;
}

.mobile-alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.mobile-alert-danger {
    background: #fdeaea;
    color: #dc2626;
}

.mobile-alert-info {
    background: #dbeafe;
    color: #1e40af;
}

/* ========================================
   MOBILE GRIDS
   ======================================== */
.mobile-grid {
    display: grid;
    gap: 16px;
}

.mobile-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.mobile-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ========================================
   MOBILE IMAGES
   ======================================== */
.mobile-image-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}

.mobile-image {
    width: 100%;
    height: auto;
    display: block;
}

.mobile-image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* ========================================
   MOBILE LOADING
   ======================================== */
.mobile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.mobile-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.mobile-loading-text {
    margin-top: 16px;
    font-size: 0.938rem;
    color: #5a6370;
}

/* ========================================
   MOBILE UTILITIES
   ======================================== */
.mobile-text-center {
    text-align: center;
}

.mobile-text-left {
    text-align: left;
}

.mobile-text-right {
    text-align: right;
}

.mobile-mt-1 { margin-top: 8px; }
.mobile-mt-2 { margin-top: 16px; }
.mobile-mt-3 { margin-top: 24px; }
.mobile-mt-4 { margin-top: 32px; }

.mobile-mb-1 { margin-bottom: 8px; }
.mobile-mb-2 { margin-bottom: 16px; }
.mobile-mb-3 { margin-bottom: 24px; }
.mobile-mb-4 { margin-bottom: 32px; }

.mobile-pt-1 { padding-top: 8px; }
.mobile-pt-2 { padding-top: 16px; }
.mobile-pt-3 { padding-top: 24px; }
.mobile-pt-4 { padding-top: 32px; }

.mobile-pb-1 { padding-bottom: 8px; }
.mobile-pb-2 { padding-bottom: 16px; }
.mobile-pb-3 { padding-bottom: 24px; }
.mobile-pb-4 { padding-bottom: 32px; }

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 375px) {
    .mobile-page-title {
        font-size: 1.25rem;
    }
    
    .mobile-btn {
        padding: 12px 20px;
        font-size: 0.875rem;
    }
    
    .mobile-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .mobile-grid-2 {
        grid-template-columns: repeat(3, 1fr);
    }
}
