/* Custom CSS for Univer - Glassmorphism and Advanced Effects */

/* Import Fira Sans Extra Condensed font from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Fira+Sans+Extra+Condensed:wght@400;700&display=swap");

/* Global font family and background */
body {
    font-family: "Fira Sans Extra Condensed", sans-serif;
    background: linear-gradient(135deg, #4d3004 0%, #492709 25%, #765843 50%, #6a5e3f 75%, #231401 100%);
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Glassmorphism utilities */
.glass-bg {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-bg-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-border {
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-shadow {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-highlight {
    background: rgba(255, 255, 255, 0.05);
}





/* Enhanced scrollbar */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb {
    background: #f39c12;
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: #d68910;
}

/* Firefox scrollbar */
body {
    scrollbar-width: thin;
    scrollbar-color: #f39c12 rgba(255, 255, 255, 0.1);
}

/* Floating particles animation */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float-particle 4s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-15px) scale(1.2);
        opacity: 1;
    }
}

/* Enhanced buttons with glassmorphism */
.btn-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Primary button with orange gradient */
.btn-primary {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    border: 1px solid rgba(230, 126, 34, 0.4);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d68910, #f1c40f);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
}

/* Cards with glassmorphism */
.card-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.card-glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(230, 126, 34, 0.4);
}

/* WoW Class colors as CSS variables for dynamic use */
:root {
    --wow-death-knight: #C41E3A;
    --wow-demon-hunter: #A330C9;
    --wow-druid: #FF7C0A;
    --wow-evoker: #33937F;
    --wow-hunter: #AAD372;
    --wow-mage: #3FC7EB;
    --wow-monk: #00FF98;
    --wow-paladin: #F48CBA;
    --wow-priest: #FFFFFF;
    --wow-rogue: #FFF468;
    --wow-shaman: #0070DD;
    --wow-warlock: #8788EE;
    --wow-warrior: #C69B6D;
}

/* WoW Class themed elements */
.wow-death-knight { color: var(--wow-death-knight); }
.wow-demon-hunter { color: var(--wow-demon-hunter); }
.wow-druid { color: var(--wow-druid); }
.wow-evoker { color: var(--wow-evoker); }
.wow-hunter { color: var(--wow-hunter); }
.wow-mage { color: var(--wow-mage); }
.wow-monk { color: var(--wow-monk); }
.wow-paladin { color: var(--wow-paladin); }
.wow-priest { color: var(--wow-priest); }
.wow-rogue { color: var(--wow-rogue); }
.wow-shaman { color: var(--wow-shaman); }
.wow-warlock { color: var(--wow-warlock); }
.wow-warrior { color: var(--wow-warrior); }

/* Enhanced form inputs */
.input-glass {
    background: rgba(31, 41, 55, 0.8) !important; /* Darker background for better contrast */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: #ffffff !important;
}

.input-glass:focus {
    background: rgba(55, 65, 81, 0.9) !important; /* Lighter background on focus */
    border-color: #f97316 !important; /* Orange border on focus */
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3) !important;
    color: #ffffff !important;
}

.input-glass:hover {
    background: rgba(55, 65, 81, 0.8) !important; /* Lighter background on hover */
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

.input-glass::placeholder {
    color: rgba(255, 255, 255, 0.7) !important; /* Better contrast for placeholders */
}

/* Enhanced select dropdowns */
select.input-glass {
    background: rgba(31, 41, 55, 0.8) !important; /* Darker background for better contrast */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
    color: #ffffff !important;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
    font-weight: 500;
}

select.input-glass:focus {
    background: rgba(55, 65, 81, 0.9) !important; /* Lighter background on focus */
    border-color: #f97316 !important; /* Orange border on focus */
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3) !important;
    outline: none;
    color: #ffffff !important;
}

select.input-glass:hover {
    background: rgba(55, 65, 81, 0.8) !important; /* Lighter background on hover */
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

/* Select dropdown options styling */
select.input-glass option {
    background: #1f2937 !important; /* Dark gray background for better contrast */
    color: #ffffff !important;
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 500;
}

select.input-glass option:hover {
    background: #374151 !important; /* Lighter gray on hover */
    color: #ffffff !important;
}

select.input-glass option:checked,
select.input-glass option:selected {
    background: #f97316 !important; /* Orange background for selected option */
    color: #ffffff !important;
    font-weight: 600;
}

select.input-glass option:focus {
    background: #374151 !important;
    color: #ffffff !important;
}

/* Checkbox styling for better visibility and functionality */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid #4b5563;
    border-radius: 0.25rem;
    background-color: #1f2937;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

input[type="checkbox"]:hover {
    border-color: #f97316;
    background-color: #374151;
}

input[type="checkbox"]:checked {
    background-color: #f97316;
    border-color: #f97316;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3);
}

/* Firefox specific select styling */
select.input-glass:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #ffffff;
}

select.input-glass::-ms-expand {
    display: none;
}

/* Additional browser compatibility for select dropdowns */
select.input-glass::-webkit-scrollbar {
    width: 8px;
}

select.input-glass::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 4px;
}

select.input-glass::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

select.input-glass::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Ensure consistent styling across all browsers */
select.input-glass option {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Shop-specific select styling */
.shop-card select.input-glass,
.subscription-card select.input-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
}

.shop-card select.input-glass:focus,
.subscription-card select.input-glass:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 140, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.25);
}

.shop-card select.input-glass:hover,
.subscription-card select.input-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Enhanced dropdown arrow for better visibility - Remove duplicate arrows */
.shop-card select.input-glass,
.subscription-card select.input-glass {
    /* Completely remove background-image to prevent multiple arrows */
    background-image: none !important;
    background-size: 1.2em !important;
    background-position: right 0.75rem center !important;
    padding-right: 3rem !important;
}

/* Status indicators */
.status-success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.2), rgba(39, 174, 96, 0.1));
    border: 1px solid #27ae60;
    color: #2ecc71;
}

.status-error {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(231, 76, 60, 0.1));
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

.status-warning {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.2), rgba(243, 156, 18, 0.1));
    border: 1px solid #f39c12;
    color: #f39c12;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(230, 126, 34, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(230, 126, 34, 0.8);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.3s ease-out;
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Responsive glassmorphism adjustments */
@media (max-width: 768px) {
    .glass-bg, .glass-bg-dark {
        backdrop-filter: blur(15px);
    }
    
    .card-glass {
        backdrop-filter: blur(15px);
    }
}

@media (max-width: 480px) {
    .glass-bg, .glass-bg-dark {
        backdrop-filter: blur(10px);
    }
    
    .card-glass {
        backdrop-filter: blur(10px);
    }
}

/* Shop specific styles */
.shop-card {
    position: relative;
    transition: all 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.routine-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.routine-card:hover {
    border-color: rgba(230, 126, 34, 0.4);
}

/* Line clamp for text truncation */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* WoW class background images */
.routine-card .bg-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Class colored card overlay with gradient shader */
.routine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.2) 25%, 
        transparent 100%);
    border-radius: 0.75rem 0.75rem 0 0;
    z-index: 1;
    pointer-events: none;
}

/* Class-specific colored overlays */
.routine-card[data-wow-class="death-knight"]::before {
    background: linear-gradient(180deg, 
        rgba(196, 30, 58, 0.3) 0%, 
        rgba(196, 30, 58, 0.15) 25%, 
        transparent 50%);
    border-radius: 0.75rem 0.75rem 0 0;
}

.routine-card[data-wow-class="demon-hunter"]::before {
    background: linear-gradient(180deg, 
        rgba(163, 48, 201, 0.3) 0%, 
        rgba(163, 48, 201, 0.15) 25%, 
        transparent 50%);
    border-radius: 0.75rem 0.75rem 0 0;
}

.routine-card[data-wow-class="druid"]::before {
    background: linear-gradient(180deg, 
        rgba(255, 124, 10, 0.3) 0%, 
        rgba(255, 124, 10, 0.15) 25%, 
        transparent 50%);
    border-radius: 0.75rem 0.75rem 0 0;
}

.routine-card[data-wow-class="hunter"]::before {
    background: linear-gradient(180deg, 
        rgba(170, 211, 114, 0.3) 0%, 
        rgba(170, 211, 114, 0.15) 25%, 
        transparent 50%);
    border-radius: 0.75rem 0.75rem 0 0;
}

.routine-card[data-wow-class="mage"]::before {
    background: linear-gradient(180deg, 
        rgba(63, 199, 235, 0.3) 0%, 
        rgba(63, 199, 235, 0.15) 25%, 
        transparent 50%);
    border-radius: 0.75rem 0.75rem 0 0;
}

.routine-card[data-wow-class="monk"]::before {
    background: linear-gradient(180deg, 
        rgba(0, 255, 152, 0.3) 0%, 
        rgba(0, 255, 152, 0.15) 25%, 
        transparent 50%);
    border-radius: 0.75rem 0.75rem 0 0;
}

.routine-card[data-wow-class="paladin"]::before {
    background: linear-gradient(180deg, 
        rgba(244, 140, 186, 0.3) 0%, 
        rgba(244, 140, 186, 0.15) 25%, 
        transparent 50%);
    border-radius: 0.75rem 0.75rem 0 0;
}

.routine-card[data-wow-class="priest"]::before {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.1) 25%, 
        transparent 50%);
    border-radius: 0.75rem 0.75rem 0 0;
}

.routine-card[data-wow-class="rogue"]::before {
    background: linear-gradient(180deg, 
        rgba(255, 244, 104, 0.3) 0%, 
        rgba(255, 244, 104, 0.15) 25%, 
        transparent 50%);
    border-radius: 0.75rem 0.75rem 0 0;
}

.routine-card[data-wow-class="shaman"]::before {
    background: linear-gradient(180deg, 
        rgba(0, 112, 221, 0.3) 0%, 
        rgba(0, 112, 221, 0.15) 25%, 
        transparent 50%);
    border-radius: 0.75rem 0.75rem 0 0;
}

.routine-card[data-wow-class="warlock"]::before {
    background: linear-gradient(180deg, 
        rgba(135, 136, 238, 0.3) 0%, 
        rgba(135, 136, 238, 0.15) 25%, 
        transparent 50%);
    border-radius: 0.75rem 0.75rem 0 0;
}

.routine-card[data-wow-class="warrior"]::before {
    background: linear-gradient(180deg, 
        rgba(198, 155, 109, 0.3) 0%, 
        rgba(198, 155, 109, 0.15) 25%, 
        transparent 50%);
    border-radius: 0.75rem 0.75rem 0 0;
}

/* Search input enhancements */
#routine-search {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#routine-search:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2);
}

#routine-search::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Grid layout enhancements */
.grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3.xl\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}



/* Enhanced table animations */
tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: rgba(55, 65, 81, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Status badge styling */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Notification System Styles */
#notification-overlay {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#notification-overlay .bg-white {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#notification-overlay .border-l-4 {
    border-left-width: 4px;
}

#success-notification .border-l-4 {
    border-left-color: #10b981;
}

#error-notification .border-l-4 {
    border-left-color: #ef4444;
}

#notification-overlay .text-gray-900 {
    color: #111827;
}

#notification-overlay .text-gray-400 {
    color: #9ca3af;
}

#notification-overlay .text-gray-600 {
    color: #4b5563;
}

#notification-overlay .hover\:text-gray-600:hover {
    color: #4b5563;
}

/* Progress bar animations */
#success-progress,
#error-progress {
    width: 0%;
    transition: width 0.1s linear;
}

/* Notification entrance/exit animations */
#notification-overlay {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#notification-overlay.show {
    transform: translateX(0);
    opacity: 1;
}

/* Hover effects for close button */
#notification-overlay button:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #notification-overlay {
        right: 1rem;
        left: 1rem;
        max-width: none;
        width: auto;
    }
}

/* Popup Notification System - Using site's glassmorphism style */
#popup-notification {
    backdrop-filter: blur(8px);
}

#popup-content {
    /* Uses existing .card-glass class for consistent styling */
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#popup-content.show {
    transform: scale(1);
    opacity: 1;
}

/* Icon colors - brighter for dark background */
#popup-icon .text-green-500 {
    color: #22c55e;
}

#popup-icon .text-red-500 {
    color: #f87171;
}

#popup-icon .text-blue-500 {
    color: #60a5fa;
}

/* Enhanced popup animations */
#popup-notification {
    animation: fadeIn 0.3s ease-out;
}

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

/* Popup content entrance animation */
#popup-content {
    animation: slideInUp 0.3s ease-out;
}

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

/* BBCode Support Styles */
.bb-spoiler {
    margin: 0.5rem 0;
}

.bb-spoiler summary {
    cursor: pointer;
    color: #f39c12;
    font-weight: 600;
    padding: 0.5rem;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 0.5rem;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.bb-spoiler summary:hover {
    background: rgba(243, 156, 18, 0.15);
}

.bb-spoiler summary:focus {
    outline: 2px solid #f39c12;
    outline-offset: 2px;
}

.bb-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.bb-video {
    max-width: 100%;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.bb-video iframe {
    border-radius: 0.5rem;
}

/* BBCode text formatting */
.line-clamp-3 strong,
.line-clamp-3 b {
    color: #f9fafb;
    font-weight: 700;
}

.line-clamp-3 em,
.line-clamp-3 i {
    color: #e5e7eb;
    font-style: italic;
}

.line-clamp-3 u {
    color: #d1d5db;
    text-decoration: underline;
}

.line-clamp-3 code {
    background: rgba(55, 65, 81, 0.5);
    color: #fbbf24;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875em;
}

.line-clamp-3 blockquote {
    border-left: 4px solid #f39c12;
    padding-left: 1rem;
    margin: 0.5rem 0;
    font-style: italic;
    background: rgba(55, 65, 81, 0.3);
    border-radius: 0 0.5rem 0.5rem 0;
}

.line-clamp-3 ul,
.line-clamp-3 ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.line-clamp-3 li {
    margin: 0.25rem 0;
}

.line-clamp-3 a {
    color: #f39c12;
    text-decoration: underline;
}

.line-clamp-3 a:hover {
    color: #d68910;
}

/* Country Flag Images for IP Display - Multiple aggressive selectors */
.country-flag,
.ip-display .country-flag,
img.country-flag,
.ip-display img.country-flag,
div.ip-display img.country-flag,
div.ip-display img[alt="Country Flag"] {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    border-radius: 2px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    object-fit: cover !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    vertical-align: middle !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Additional specificity for any remaining cases */
.ip-display img[src*="ipgeolocation.io"],
.ip-display img[src*="flags"],
.ip-display img[src*="ch_64.png"],
.ip-display img[src*="_64.png"] {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
}

.country-flag:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* IP Display Layout */
.ip-display {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ip-display img {
    flex-shrink: 0;
    align-self: baseline;
}

.ip-display .country-flag {
    flex-shrink: 0;
    align-self: baseline;
}

.ip-display .country-name {
    color: #f9fafb;
    font-size: 0.875rem;
    font-weight: 500;
}

.ip-display .ip-address {
    color: #f9fafb;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.75rem;
}

.ip-display .city-name {
    color: #f9fafb;
    font-size: 0.75rem;
}

/* Description Popup Modal Styles */
#description-popup {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#description-popup .bg-gray-900 {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* BBCode Content Styles in Popup */
#popup-content strong,
#popup-content b {
    color: #f9fafb;
    font-weight: 700;
}

#popup-content em,
#popup-content i {
    color: #e5e7eb;
    font-style: italic;
}

#popup-content u {
    color: #d1d5db;
    text-decoration: underline;
}

#popup-content code {
    background: rgba(55, 65, 81, 0.5);
    color: #fbbf24;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875em;
}

#popup-content blockquote {
    border-left: 4px solid #f39c12;
    padding-left: 1rem;
    margin: 0.5rem 0;
    font-style: italic;
    background: rgba(55, 65, 81, 0.3);
    border-radius: 0 0.5rem 0.5rem 0;
}

#popup-content ul,
#popup-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

#popup-content li {
    margin: 0.25rem 0;
}

#popup-content a {
    color: #f39c12;
    text-decoration: underline;
}

#popup-content a:hover {
    color: #d68910;
}

#popup-content .bb-spoiler {
    margin: 0.5rem 0;
}

#popup-content .bb-spoiler summary {
    cursor: pointer;
    color: #f39c12;
    font-weight: 600;
    padding: 0.5rem;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 0.5rem;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

#popup-content .bb-spoiler summary:hover {
    background: rgba(243, 156, 18, 0.15);
}

#popup-content .bb-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Popup Animation */
#description-popup {
    transition: opacity 0.3s ease-in-out;
}

#description-popup.hidden {
    opacity: 0;
    pointer-events: none;
}

#description-popup:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

#description-popup .bg-gray-900 {
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

#description-popup:not(.hidden) .bg-gray-900 {
    transform: scale(1);
}

/* Dashboard Active Routines Scrollable Container */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #f39c12 rgba(255, 255, 255, 0.1);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #f39c12;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #d68910;
}

/* Line clamp for descriptions */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Expiry time styling for shop cards */
.expiry-time.long {
    color: #10b981; /* green-500 */
}

.expiry-time.medium {
    color: #f59e0b; /* yellow-500 */
}

.expiry-time.short {
    color: #ef4444; /* red-500 */
}/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    /* Ensure it's above all content */
    z-index: 50;
    /* Safe area for devices with home indicators */
    padding-bottom: env(safe-area-inset-bottom);
    /* Site theme colors */
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95)) !important;
    border-top: 1px solid rgba(230, 126, 34, 0.3) !important;
}

/* Bottom navigation active state */
.mobile-bottom-nav a.active,
.mobile-bottom-nav button.active {
    color: #e67e22 !important; /* primary-500 */
}

/* Bottom navigation hover effects */
.mobile-bottom-nav a:hover,
.mobile-bottom-nav button:hover {
    transform: translateY(-2px);
}

/* Mobile nav specific color overrides */
.mobile-bottom-nav .text-gray-300 {
    color: #d1d5db !important;
}

.mobile-bottom-nav a:hover .text-gray-300,
.mobile-bottom-nav button:hover .text-gray-300 {
    color: inherit !important;
}

/* Ensure backdrop blur works properly */
.mobile-bottom-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Ensure content doesn't get hidden behind bottom nav */
@media (max-width: 768px) {
    main {
        padding-bottom: 5rem; /* 80px to account for bottom nav */
    }
}

/* Enhanced Text Visibility - Lighter Grays */
.text-gray-300 {
    color: #d1d5db !important; /* Much lighter gray */
}

.text-gray-400 {
    color: #e5e7eb !important; /* Very light gray */
}

.text-gray-500 {
    color: #f3f4f6 !important; /* Almost white */
}

/* Specific gray text improvements */
.text-gray-300,
.text-gray-400,
.text-gray-500 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Form inputs and placeholders */
.input-glass::placeholder {
    color: #e5e7eb !important; /* Light gray for placeholders */
}

/* Button text improvements */
.btn-glass {
    color: #f9fafb !important; /* Very light text */
}

/* Card text improvements */
.card-glass .text-gray-300,
.card-glass .text-gray-400,
.card-glass .text-gray-500 {
    color: #f3f4f6 !important;
}

/* Navigation text improvements */
nav .text-gray-300,
nav .text-gray-400 {
    color: #e5e7eb !important;
}

/* Table text improvements */
table .text-gray-300,
table .text-gray-400,
table .text-gray-500 {
    color: #f3f4f6 !important;
}

/* Footer text improvements */
footer .text-gray-300,
footer .text-gray-400 {
    color: #e5e7eb !important;
}

/* Enhanced Footer Styling */
.footer-section h4 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-section ul li a {
    transition: all 0.3s ease;
    position: relative;
}

.footer-section ul li a:hover {
    transform: translateX(4px);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover::before {
    width: 6px;
}

/* Footer bottom styling */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom .text-gray-200 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Social media icons enhancement */
.footer-section .fab {
    transition: all 0.3s ease;
}

.footer-section a:hover .fab {
    transform: scale(1.2);
    color: #f39c12;
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
    }
}

/* General text readability improvements */
.text-gray-300,
.text-gray-400,
.text-gray-500 {
    font-weight: 500; /* Slightly bolder for better visibility */
}

/* Hover states for better interaction */
a:hover .text-gray-300,
a:hover .text-gray-400,
a:hover .text-gray-500 {
    color: #ffffff !important;
}

/* Statistics cards styling */
.stats-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(230, 126, 34, 0.4);
}

.stats-card .icon-container {
    transition: transform 0.3s ease;
}

.stats-card:hover .icon-container {
    transform: scale(1.1);
}

/* Modern subscription card styling */
.subscription-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.subscription-card:hover {
    transform: translateY(-8px) !important;
}

/* Simple subscription button styling */
.simple-sub-btn {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
    margin: 0;
    vertical-align: middle;
}

.simple-sub-btn:hover {
    transform: translateY(-1px) !important;
    opacity: 0.9 !important;
}

/* Enhanced card glass effect */
.subscription-card .card-glass {
    backdrop-filter: blur(20px) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

.subscription-card .card-glass:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Popular card special effects */
.subscription-card.scale-105 .card-glass {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 2px solid rgba(147, 51, 234, 0.3) !important;
    box-shadow: 0 25px 50px rgba(147, 51, 234, 0.15) !important;
}

/* Enhanced feature list styling */
.subscription-card ul li {
    transition: transform 0.2s ease !important;
}

.subscription-card ul li:hover {
    transform: translateX(4px) !important;
}

/* Price animation */
.subscription-card [id^="sub-price-"] {
    transition: all 0.3s ease !important;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1) !important;
}

/* Duration selector styling */
.subscription-card select {
    transition: all 0.3s ease !important;
}

.subscription-card select:focus {
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2) !important;
}

/* Additional info section styling */
.subscription-card + * .card-glass {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .subscription-card.scale-105 {
        transform: none !important;
    }
}
