/* ========================================
   MODERN THEME - MET-TON-LIEN
   ======================================== */

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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border: #334155;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1f36 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ========================================
   LAYOUT
   ======================================== */
.wrapper {
    min-height: calc(100vh - 70px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 2rem;
}

.container-simple {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.main-content {
    animation: fadeIn 0.6s ease;
}

.main-content-full {
    animation: fadeIn 0.6s ease;
    width: 100%;
}

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

/* ========================================
   CARDS
   ======================================== */
.card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* Page cards (for full-width pages) */
.login-page,
.contact-page,
.aide-page {
    max-width: 800px;
    margin: 2rem auto;
}

/* Centered content wrapper */
#content {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

#content.float_r {
    float: none;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

#content * {
    max-width: 100%;
}

#content img {
    max-width: 100% !important;
    height: auto !important;
}

/* Login and form specific styles */
.login, .pass, .email, .input {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 250px;
}

.login:focus, .pass:focus, .email:focus, .input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ========================================
   FORMS
   ======================================== */
.login-form, .form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
select,
textarea {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
}

/* Form containers */
form {
    max-width: 600px;
    margin: 0 auto;
}

fieldset {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem auto;
    background: rgba(30, 41, 59, 0.3);
    max-width: 700px;
}

legend {
    color: var(--text-primary);
    padding: 0 0.5rem;
    font-weight: bold;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn, button[type="submit"] {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover, button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
}

/* ========================================
   STATS
   ======================================== */
.stats-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-badge {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 150px;
    transition: all 0.3s ease;
}

.stat-badge:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.stat-badge.online {
    border-color: var(--success);
}

.stat-icon {
    font-size: 2rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.user-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    background: rgba(15, 23, 42, 0.5);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

/* ========================================
   MENU LIST
   ======================================== */
.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.menu-list a::before {
    content: '→';
    color: var(--primary);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.menu-list a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
    border-color: var(--primary);
    transform: translateX(5px);
}

.menu-list a:hover::before {
    transform: translateX(5px);
}

/* ========================================
   NEWS & ARTICLES
   ======================================== */
article, .news-item {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

article:hover, .news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.topart {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px 16px 0 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    max-width: 100%;
}

.topart h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0;
}

.sidehead2 {
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    margin-top: 0.5rem;
    max-width: 100%;
}

.sidehead3 {
    height: 100%;
}

.padding {
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 1.5rem;
    overflow: hidden;
    max-width: 100%;
}

.padding * {
    max-width: 100%;
}

.padding a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.padding a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.center {
    text-align: center;
}

/* ========================================
   SERVER STATUS
   ======================================== */
.server-status {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
}

.server-status h3 {
    color: var(--success);
}

.server-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
}

.online-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   TOP LIST
   ======================================== */
.top-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.top-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.top-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.top-value {
    color: var(--primary);
    font-weight: bold;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: rgba(30, 41, 59, 0.8);
    border-top: 1px solid var(--border);
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-secondary);
}

footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent);
}

/* ========================================
   TABLES
   ======================================== */
.table, table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: rgba(30, 41, 59, 0.6) !important;
    border-radius: 12px;
    overflow: hidden;
}

.table th, table th,
.table td, table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary) !important;
    background: transparent !important;
}

.table th, table th {
    background: rgba(99, 102, 241, 0.1) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
}

.table tr, table tr {
    background: transparent !important;
}

.table tr:hover, table tr:hover {
    background: rgba(99, 102, 241, 0.05) !important;
}

/* Fix white backgrounds */
table[style*="background:white"],
table[style*="background:#fff"],
table[style*="background: white"],
table[style*="background: #fff"],
tr[style*="background:white"],
tr[style*="background:#fff"] {
    background: rgba(30, 41, 59, 0.6) !important;
}

td[style*="background:white"],
td[style*="background:#fff"] {
    background: transparent !important;
}

/* Liste noire specific */
.table tbody tr,
table tbody tr {
    background: rgba(15, 23, 42, 0.3) !important;
}

.table tbody tr:nth-child(even),
table tbody tr:nth-child(even) {
    background: rgba(30, 41, 59, 0.3) !important;
}

/* ========================================
   ALERTS
   ======================================== */
#valid, #warning, #error, #info {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid;
}

#valid {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success);
    color: var(--success);
}

#warning {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: var(--warning);
    color: var(--warning);
}

#error {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: var(--danger);
    color: var(--danger);
}

#info {
    background: rgba(99, 102, 241, 0.1);
    border-left-color: var(--primary);
    color: var(--primary);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar-left, .sidebar-right {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .stats-header {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .container {
        padding: 1rem;
        gap: 1rem;
    }
    
    .stats-header {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   UTILITIES
   ======================================== */
.cleaner {
    clear: both;
}

.float_r {
    float: right;
}

.float_l {
    float: left;
}

/* Prevent overflow */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.wrapper {
    overflow-x: hidden;
    width: 100%;
}

.container,
.container-simple {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Force dark backgrounds */
[style*="background:white"],
[style*="background:#fff"],
[style*="background: white"],
[style*="background: #fff"],
[style*="background:#FFF"],
[style*="background: #FFF"] {
    background: rgba(30, 41, 59, 0.6) !important;
    color: var(--text-primary) !important;
}

/* Fix specific white backgrounds */
div[style*="background:#fff"],
div[style*="background:white"],
span[style*="background:#fff"],
span[style*="background:white"] {
    background: transparent !important;
}

h2 {
    color: var(--text-primary);
    margin: 1.5rem 0;
    font-size: 2rem;
    text-align: center;
}

h3 {
    color: var(--text-primary);
    margin: 1rem 0;
}

h4 {
    color: var(--text-secondary);
    margin: 0.75rem 0;
}

p {
    margin: 0.5rem 0;
}

a {
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

fieldset {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    background: rgba(30, 41, 59, 0.3);
}

legend {
    color: var(--text-primary);
    padding: 0 0.5rem;
    font-weight: bold;
}

.label {
    display: block;
    width: 100%;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Label style for inline forms */
fieldset .label {
    display: inline-block;
    width: 200px;
    color: var(--text-secondary);
}

/* Adjust input alignment in fieldsets */
fieldset p {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

fieldset input:not([type="submit"]):not([type="checkbox"]),
fieldset select,
fieldset textarea {
    flex: 1;
    min-width: 250px;
}

.vertical {
    vertical-align: middle;
}

.robot {
    position: absolute;
    left: -5000px;
}

/* Sprite icons compatibility */
[class^="sprite-"] {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* ========================================
   WELCOME BANNER
   ======================================== */
.welcome-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-banner h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-banner p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ========================================
   NEWS ITEMS
   ======================================== */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0;
}

.news-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.news-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.news-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.news-content a:hover {
    border-bottom-color: var(--primary);
}

/* ========================================
   PTS CARD
   ======================================== */
.pts-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
    border-color: var(--warning);
}

.pts-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.pts-banner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pts-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.pub-card {
    background: rgba(30, 41, 59, 0.3);
}

/* ========================================
   USER CARD
   ======================================== */
.user-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border-color: var(--primary);
}

/* ========================================
   PAGINATION
   ======================================== */
nav.center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

nav.center button {
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 1rem;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    .pts-content {
        grid-template-columns: 1fr;
    }
    
    .news-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   CHAT & IFRAMES
   ======================================== */
iframe {
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
}

/* Surf frames - special handling */
frame,
frameset {
    border: none;
    background: var(--bg-dark);
}

body[bgcolor="#FFFFFF"],
body[bgcolor="white"] {
    background: var(--bg-dark) !important;
}

/* Chat container */
.chat-container,
#chat {
    max-width: 100%;
    overflow: hidden;
}

/* Mini chat styling */
#minichat {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
}

#minichat * {
    max-width: 100% !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

#minichat img {
    max-width: 40px !important;
    max-height: 40px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Smileys in chat - keep them small */
#minichat img[src*="smiley"],
#minichat img[src*="smileys"],
#minichat img[alt*=":"],
.smiley img {
    max-width: 20px !important;
    max-height: 20px !important;
    border-radius: 0 !important;
    margin: 0 0.25rem !important;
}

#minichat a {
    word-break: break-all !important;
}

#minichat::-webkit-scrollbar {
    width: 8px;
}

#minichat::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

#minichat::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

#minichat::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Chat message input */
#message {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

#message:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Smiley container */
.smiley {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.smiley img {
    margin: 0.25rem;
    transition: transform 0.2s ease;
}

.smiley img:hover {
    transform: scale(1.2);
}

/* Ensure chat iframe fits */
iframe[src*="chat"],
iframe[src*="tchat"] {
    width: 100% !important;
    max-width: 100%;
    height: 500px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.6);
}

/* ========================================
   PROGRESS BAR - SURF TIMER
   ======================================== */
progress {
    border: 2px solid var(--primary);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8) !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

progress::-webkit-progress-bar {
    background: rgba(15, 23, 42, 0.8) !important;
    border-radius: 6px;
}

progress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--success), var(--primary)) !important;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    transition: width 0.1s linear;
}

progress::-moz-progress-bar {
    background: linear-gradient(90deg, var(--success), var(--primary)) !important;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    transition: width 0.1s linear;
}

/* Specific timer styling */
#timer,
#progress_bar {
    width: 100%;
    max-width: 600px;
    height: 30px;
    border: 2px solid var(--primary) !important;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    display: block;
    margin: 1rem auto;
}

#timer::-webkit-progress-bar,
#progress_bar::-webkit-progress-bar {
    background: rgba(15, 23, 42, 0.8) !important;
    border-radius: 6px;
}

#timer::-webkit-progress-value,
#progress_bar::-webkit-progress-value {
    background: linear-gradient(90deg, var(--success), var(--primary)) !important;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    transition: width 0.1s linear;
    animation: progressGlow 2s ease-in-out infinite;
}

#timer::-moz-progress-bar,
#progress_bar::-moz-progress-bar {
    background: linear-gradient(90deg, var(--success), var(--primary)) !important;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    transition: width 0.1s linear;
}

@keyframes progressGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    }
}

/* Container for timer */
#timesurf {
    margin: 2rem auto;
    text-align: center;
    display: none;
}

#affprogress {
    margin-top: 1rem;
    color: var(--text-secondary);
}
