/* Table Dashboard Component Styles */

/* ============================================
   NATIVE APP LAYOUT - iOS Style
   ============================================ */

/* Container provides consistent margins like iOS */
.container {
    position: relative;
    z-index: 1;
    padding: 0 16px !important; /* Force unified horizontal padding */
    max-width: 100% !important;
    margin: 0 auto !important;
}

/* Premium page header - Clean style matching waitlist */
.page-header {
    background: transparent !important; /* No card background */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important; /* No padding */
    margin: 0 !important;
    margin-bottom: 32px !important; /* More breathing room */
    box-shadow: none !important;
    border-bottom: none !important;
    text-align: center;
}

/* Page title - Elegant gradient like waitlist */
.page-title {
    font-size: 36px !important;
    font-weight: 900 !important;
    letter-spacing: -0.5px !important;
    text-transform: none !important; /* No uppercase */
    margin: 16px 0 !important;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Page subtitle - Matching waitlist */
.page-subtitle {
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 500 !important;
}

/* Logo wrapper - Neutralize theme.css */
.page-header .logo {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    text-align: center !important;
}

/* Logo styling - Matching waitlist exactly */
.logo-img {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain !important; /* Prevents squishing */
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.05) !important; /* Subtle square */
    padding: 12px !important;
    margin: 0 auto 24px !important;
    display: block !important;
    opacity: 1 !important; /* Override theme.css opacity: 0 */
    max-width: none !important; /* Remove theme.css max-width constraint */
    transition: opacity 0.3s ease-in-out;
}

/* Keep loaded state for smooth appearance */
.logo-img.loaded {
    opacity: 1 !important;
}

/* Premium card styling - No extra border radius */
.card {
    background: transparent; /* Let gradient background show through */
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/* Page content - No padding, container handles margins */
.page-content {
    padding: 0 !important; /* Force override theme.css 16px */
    padding-bottom: 100px !important; /* Space for tab bar */
    margin: 0 !important; /* Reset margins */
    min-height: 200px !important; /* Keep minimum height */
}

/* Player grid enhancements */
.players-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 16px; /* Consistent gap */
}

/* Player detail list container */
.player-details-list {
    margin-bottom: 16px;
}

/* Player detail rows with glassmorphism - Aligned to container */
.player-detail-row {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 8px; /* Tighter spacing within list */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Bell Icon Button Pulse Animation */
.bell-icon-button {
    animation: bellPulse 2s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Bell Icon Button Hover Effects */
.bell-icon-button:hover {
    transform: scale(1.05) translateY(-2px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.12);
}

.bell-icon-button:active {
    transform: scale(0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.bell-icon-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    animation: none; /* Stop animation when disabled */
}

@keyframes bellPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Note Modal - Full screen overlay */
.note-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important; /* Above everything */
    animation: fadeIn 0.2s ease-out;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.note-modal-content {
    position: relative;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease-out;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Input fields with glassmorphism */
.input,
input[type="text"],
input[type="number"],
select,
textarea {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.input:focus,
input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    border-bottom-width: 3px;
    background: rgba(255, 255, 255, 0.08);
}

/* Section styling - iOS card style */
.section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px; /* Consistent gap */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Loading state enhancement */
.loading-state {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 48px 16px;
    text-align: center;
    margin-bottom: 16px;
}

/* Order items section - Aligned to container */
.order-items-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px; /* Consistent gap */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ============================================
   MOBILE RESPONSIVE ENHANCEMENTS - Native iOS Style
   ============================================ */

/* Small phones (< 400px) - Tighter margins */
@media (max-width: 399px) {
    .container {
        padding: 0 12px !important; /* Force tighter on very small screens */
    }
    
    .page-header {
        padding: 0 !important;
        margin: 0 !important;
        margin-bottom: 24px !important;
    }
    
    .page-title {
        font-size: 28px !important;
    }
    
    .page-subtitle {
        font-size: 16px !important;
    }
    
    .logo-img {
        width: 80px !important;
        height: 80px !important;
        object-fit: contain !important;
    }
    
    .section {
        padding: 12px !important;
        margin-bottom: 12px !important;
        border-radius: 12px;
    }
    
    .player-detail-row {
        padding: 12px !important;
        margin-bottom: 6px !important;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .logo-img {
        width: 60px !important;
        height: 60px !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain !important;
    }
    
    .input,
    input[type="text"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    /* Reduce blur on very small screens */
    .page-header,
    .section,
    .note-modal-content {
        backdrop-filter: blur(15px) saturate(160%);
        -webkit-backdrop-filter: blur(15px) saturate(160%);
    }
}

/* All mobile devices (< 600px) - Standard 16px margins */
@media (max-width: 599px) {
    .page-header {
        backdrop-filter: blur(20px) saturate(170%);
        -webkit-backdrop-filter: blur(20px) saturate(170%);
    }
    
    .page-title {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
    }
    
    .page-subtitle {
        font-size: clamp(0.875rem, 3.5vw, 1rem);
    }
    
    .logo-img {
        width: 70px !important;
        height: 70px !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain !important;
    }
    
    /* Better input styling */
    .input,
    input[type="text"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    /* Button improvements */
    .submit-btn,
    .btn-primary,
    .btn-secondary {
        min-height: 48px; /* Better touch target */
    }
    
    .bell-icon-button {
        width: 56px;
        height: 56px; /* Bigger touch target */
    }
    
    /* Reduce background blur for performance */
    .gradient-bg::before,
    .gradient-bg::after {
        width: 400px;
        height: 400px;
        filter: blur(80px);
    }
}

/* Larger phones and small tablets (600px - 767px) - More generous spacing */
@media (min-width: 600px) and (max-width: 767px) {
    .container {
        padding: 0 20px !important;
    }
    
    .page-header {
        padding: 0 !important;
        margin: 0 !important;
        margin-bottom: 36px !important;
    }
    
    .page-title {
        font-size: 38px !important;
    }
    
    .logo-img {
        width: 110px !important;
        height: 110px !important;
        object-fit: contain !important;
    }
    
    .section {
        padding: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .logo-img {
        max-width: 80px;
        max-height: 80px;
    }
}

/* Tablets (768px - 1023px) - iPad sizing */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 24px !important;
        max-width: 800px !important; /* Comfortable reading width on tablets */
        margin: 0 auto !important;
    }
    
    .page-header {
        padding: 0 !important;
        margin: 0 !important;
        margin-bottom: 40px !important;
    }
    
    .page-title {
        font-size: 40px !important;
    }
    
    .logo-img {
        width: 120px !important;
        height: 120px !important;
        object-fit: contain !important;
    }
    
    .section {
        padding: 24px !important;
        margin-bottom: 24px !important;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .logo-img {
        max-width: 90px;
        max-height: 90px;
    }
}

/* Desktop (1024px+) - Maximum width container */
@media (min-width: 1024px) {
    .container {
        padding: 0 32px !important;
        max-width: 900px !important; /* Comfortable width on large screens */
        margin: 0 auto !important;
    }
    
    .page-header {
        padding: 0 !important;
        margin: 0 !important;
        margin-bottom: 48px !important;
    }
    
    .page-title {
        font-size: 42px !important;
    }
    
    .logo-img {
        width: 120px !important;
        height: 120px !important;
        object-fit: contain !important;
    }
    
    .section {
        padding: 28px !important;
        margin-bottom: 28px !important;
    }
}



















