/* ============================================
   FoxiCloud V6 - Modernes CSS mit Effekten
   ============================================ */

/* CSS Variablen - Light & Dark Mode */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --secondary: #0284c7;
    --accent: #38bdf8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Light Mode */
    --bg-gradient-start: #0ea5e9;
    --bg-gradient-end: #0284c7;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --border-color: #e2e8f0;
    --input-bg: #ffffff;
    --input-border: #e2e8f0;
    --table-bg: #ffffff;
    --table-header-bg: #f8fafc;
    --table-border: #e2e8f0;
    --table-hover-bg: #f8fafc;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-color-hover: rgba(14, 165, 233, 0.15);
    --stats-card-bg: #ffffff;
    --progress-bg: #e2e8f0;
    --weight-up: #ef4444;
    --weight-down: #10b981;
    --weight-stable: #f59e0b;
    --timer-gradient-1: #0ea5e9;
    --timer-gradient-2: #0284c7;
}

[data-theme="dark"] {
    --bg-gradient-start: #1e293b;
    --bg-gradient-end: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --nav-bg: rgba(30, 41, 59, 0.95);
    --border-color: #334155;
    --input-bg: #334155;
    --input-border: #475569;
    --table-bg: #1e293b;
    --table-header-bg: #334155;
    --table-border: #475569;
    --table-hover-bg: #334155;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-color-hover: rgba(56, 189, 248, 0.2);
    --stats-card-bg: #1e293b;
    --progress-bg: #334155;
    --weight-up: #f87171;
    --weight-down: #34d399;
    --weight-stable: #fbbf24;
    --timer-gradient-1: #38bdf8;
    --timer-gradient-2: #0ea5e9;
}

/* Basis Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    padding-top: 80px;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.1) 0%, transparent 30%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* Main Container */
.main-container {
    background: var(--card-bg);
    border-radius: 30px;
    box-shadow: 0 25px 70px var(--shadow-color);
    overflow: hidden;
    margin: 20px auto 30px;
    max-width: 1400px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-container:hover {
    box-shadow: 0 30px 80px var(--shadow-color-hover);
}

/* Navigation */
.navbar-main {
    background: var(--nav-bg) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px var(--shadow-color);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 5px 0;
    position: relative;
    letter-spacing: -0.5px;
}

.navbar-brand i {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 10px;
}

.nav-link {
    font-weight: 600;
    padding: 12px 20px !important;
    border-radius: 12px;
    margin: 0 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary) !important;
    position: relative;
    font-size: 0.95rem;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-link:hover::before {
    width: 200px;
    height: 200px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link.active {
    color: var(--primary) !important;
    background: rgba(14, 165, 233, 0.1);
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1rem;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin-left: 15px;
    position: relative;
    overflow: hidden;
}

.dark-mode-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.dark-mode-toggle:hover {
    transform: rotate(180deg) scale(1.1);
    border-color: var(--primary);
    color: white;
}

.dark-mode-toggle:hover::before {
    width: 100px;
    height: 100px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.95), rgba(14, 165, 233, 0.95));
    color: white;
    padding: 80px 0;
    border-radius: 0 0 50px 50px;
    position: relative;
    overflow: hidden;
    margin-top: -20px;
    margin-bottom: 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    50% { transform: translateX(-5%); }
    100% { transform: translateX(0); }
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .glass-effect {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cards */
.feature-card {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 35px 25px;
    box-shadow: 0 15px 35px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px var(--shadow-color-hover);
    border-color: var(--primary);
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.feature-card:hover::after {
    transform: scale(2);
    opacity: 0;
}

.feature-card-highlight {
    border: 2px solid var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.feature-icon {
    width: 90px;
    height: 90px;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.4);
}

.feature-card:hover .feature-icon::before {
    opacity: 1;
}

/* Stats Cards */
.stats-card {
    background: var(--stats-card-bg);
    border-radius: 25px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 15px 35px var(--shadow-color);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stats-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px var(--shadow-color-hover);
    border-color: var(--primary);
}

.stats-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: countUp 2s ease-out;
}

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

.stats-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 15px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.stats-card:hover .stats-icon {
    transform: scale(1.2) rotate(5deg);
    opacity: 1;
}

/* Calculator Card */
.calculator-card {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 45px;
    box-shadow: 0 25px 50px var(--shadow-color);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.calculator-card:hover::before {
    opacity: 1;
    animation: rotate 20s linear infinite;
}

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

/* Buttons */
.btn-foxi {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-foxi::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-foxi:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.5);
    color: white;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.btn-foxi:hover::before {
    width: 300px;
    height: 300px;
}

.btn-foxi:active {
    transform: translateY(-2px) scale(1.02);
}

/* Result Card */
.result-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 30px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.3);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    animation: rotate 30s linear infinite;
}

.result-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.text-accent {
    color: #38bdf8;
    text-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

/* Form Elements */
.form-control, .form-select {
    background-color: var(--input-bg);
    border: 2px solid var(--input-border);
    color: var(--text-primary);
    border-radius: 15px;
    padding: 14px 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: var(--input-bg);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
    transform: translateY(-2px);
}

.input-group-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 15px 0 0 15px;
    padding: 14px 20px;
}

.input-group-foxi {
    box-shadow: 0 5px 15px var(--shadow-color);
    border-radius: 15px;
}

/* Progress Bars */
.progress {
    height: 15px;
    border-radius: 10px;
    background-color: var(--progress-bg);
    overflow: hidden;
    box-shadow: inset 0 1px 3px var(--shadow-color);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* Tables */
.table-custom {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--table-border);
    background: var(--table-bg);
}

.table-custom thead th {
    background: var(--table-header-bg);
    border-bottom: 2px solid var(--table-border);
    padding: 18px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-custom tbody td {
    padding: 18px;
    border-bottom: 1px solid var(--table-border);
    vertical-align: middle;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

.table-custom tbody tr {
    transition: all 0.3s ease;
}

.table-custom tbody tr:hover {
    background: var(--table-hover-bg);
    transform: scale(1.01);
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: 30px;
    max-width: 500px;
    background: var(--card-bg);
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    animation: slideIn 0.5s ease-out;
}

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

.cookie-content {
    display: flex;
    align-items: center;
    padding: 25px;
    gap: 20px;
}

.cookie-icon {
    font-size: 3rem;
    color: var(--primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cookie-text {
    flex: 1;
}

.cookie-text h5 {
    margin-bottom: 5px;
    color: var(--text-primary);
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Announcement Banner */
.announcement-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.3);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.announcement-icon {
    font-size: 2.5rem;
    animation: ring 2s infinite;
}

@keyframes ring {
    0% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
    50%, 100% { transform: rotate(0); }
}

.announcement-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 500;
}

.btn-close-white {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-close-white:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Weight Tracker Specific */
.weight-stat-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 25px var(--shadow-color);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.weight-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.weight-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-color-hover);
}

.weight-stat-card:hover::before {
    transform: translateX(0);
}

.weight-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
}

.weight-trend-up {
    color: var(--weight-up);
}

.weight-trend-down {
    color: var(--weight-down);
}

.weight-trend-stable {
    color: var(--weight-stable);
}

.bmi-indicator {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

.bmi-underweight { background-color: var(--info); }
.bmi-normal { background-color: var(--success); }
.bmi-overweight { background-color: var(--warning); }
.bmi-obese { background-color: var(--danger); }

/* Timer Specific */
.timer-card {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.timer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--timer-gradient-1), var(--timer-gradient-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.timer-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px var(--shadow-color-hover);
}

.timer-card:hover::before {
    transform: scaleX(1);
}

.timer-display {
    font-size: 3.8rem;
    font-weight: 800;
    text-align: center;
    margin: 25px 0;
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 20px rgba(14, 165, 233, 0.3);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.timer-unit {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timer-progress {
    height: 10px;
    border-radius: 5px;
    background: var(--progress-bg);
    margin: 25px 0;
    overflow: hidden;
}

.timer-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--timer-gradient-1), var(--timer-gradient-2));
    border-radius: 5px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.timer-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    animation: shimmer 2s infinite;
}

.timer-expired {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.timer-expired .timer-display {
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timer-urgent {
    animation: urgentPulse 1s infinite;
    border-color: var(--danger);
}

@keyframes urgentPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.timer-category {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2);
}

.timer-stats-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 25px var(--shadow-color);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    transition: all 0.4s ease;
    height: 100%;
}

.timer-stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-color-hover);
}

.timer-stats-number {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Color Picker */
.color-picker {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 5px 15px var(--shadow-color);
    position: relative;
}

.color-option::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.color-option:hover {
    transform: scale(1.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.color-option:hover::before {
    opacity: 0.5;
}

.color-option.active {
    border-color: var(--text-primary);
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 30px;
    color: var(--text-muted);
    background: var(--card-bg);
    border-radius: 25px;
    border: 3px dashed var(--border-color);
    transition: all 0.3s ease;
}

.empty-state:hover {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 25px;
    color: var(--text-muted);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.empty-state:hover i {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary);
    opacity: 1;
}

/* Floating Widget */
.floating-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.4);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.floating-widget:hover {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.6);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-color: rgba(255, 255, 255, 0.4);
}

/* Badge Foxi */
.badge-foxi {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
}

.badge-foxi:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

/* Platform Badges */
.platform-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 3px;
    background: var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.platform-badge:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.platform-badge i {
    margin-right: 6px;
}

/* Method Tabs */
.method-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
}

.method-tab {
    flex: 1;
    text-align: center;
    padding: 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.method-tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.method-tab:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-color-hover);
    border-color: var(--primary);
}

.method-tab:hover::before {
    width: 300px;
    height: 300px;
}

.method-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.3);
}

.method-tab i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.method-tab:hover i {
    transform: scale(1.2);
}

/* Upload Area */
.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 30px;
    padding: 60px 30px;
    text-align: center;
    background: var(--input-bg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.upload-area:hover::before,
.upload-area.dragover::before {
    opacity: 1;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.upload-area:hover .upload-icon {
    transform: translateY(-10px) scale(1.2);
    animation: bounce 2s infinite;
}

/* File Info */
.file-info {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin-top: 25px;
    border: 1px solid var(--border-color);
    animation: slideDown 0.4s ease-out;
}

/* Section Title */
.section-title {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
    border-radius: 2px;
    animation: widthPulse 3s infinite;
}

@keyframes widthPulse {
    0%, 100% { width: 100px; }
    50% { width: 150px; }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .nav-link {
        padding: 10px 15px !important;
    }

    .hero-section {
        padding: 50px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .calculator-card {
        padding: 25px;
    }

    .stats-number {
        font-size: 2.2rem;
    }

    .timer-display {
        font-size: 2.5rem;
    }

    .method-tabs {
        flex-direction: column;
    }

    .method-tab {
        padding: 15px;
    }

    .method-tab i {
        font-size: 2rem;
    }

    .url-input-group {
        flex-direction: column;
    }

    .cookie-consent {
        left: 15px;
        right: 15px;
        max-width: none;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .announcement-content {
        flex-direction: column;
        text-align: center;
    }

    .floating-widget {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .stats-card {
        padding: 20px;
    }

    .stats-number {
        font-size: 2rem;
    }

    .feature-card {
        padding: 25px 15px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .result-item {
        padding: 15px;
    }

    .timer-card {
        padding: 20px;
    }

    .timer-display {
        font-size: 2rem;
    }

    .table-custom {
        font-size: 0.85rem;
    }

    .table-custom th,
    .table-custom td {
        padding: 12px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    border: 3px solid var(--card-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

/* Selection Styling */
::selection {
    background: var(--primary);
    color: white;
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}