:root {
    --primary-dark: #1a1a1a;
    --primary-gray: #2d2d2d;
    --primary-light: #3d3d3d;
    --accent: #0d6efd;
    --text-light: #f8f9fa;
    --text-muted: #6c757d;
}

body {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-gray) 100%);
    color: var(--text-light);
    min-height: 100vh;
}

.metallic-gradient {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.9) 0%, rgba(61, 61, 61, 0.9) 50%, rgba(45, 45, 45, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metallic-button {
    background: linear-gradient(135deg, #4e54c8 0%, #8f94fb 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.metallic-button:hover {
    background: linear-gradient(135deg, #8f94fb 0%, #4e54c8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(142, 148, 251, 0.4);
}

.navbar {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 700;
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--text-light) !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #8f94fb !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
}

.table-dark {
    background: rgba(45, 45, 45, 0.7) !important;
}

.table-dark th,
.table-dark td {
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #4e54c8 0%, #8f94fb 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8f94fb 0%, #4e54c8 100%);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.ranking-badge {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    color: white;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    margin-right: 10px;
}

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.95) 0%, rgba(61, 61, 61, 0.95) 100%);
    border-left: 4px solid #4e54c8;
    color: white;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s forwards, fadeOut 0.5s forwards 4.5s;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 10px;
    }
    
    .card-body {
        padding: 15px;
    }
}

/* style.css - tema oscuro metálico, minimal y mobile-first */
:root{
  --bg:#08080a;
  --card:#0f1113;
  --muted:#9aa0a6;
  --accent1:#a6afb8;
  --accent2:#6b7280;
  --glass: rgba(255,255,255,0.03);
  --glass-2: rgba(255,255,255,0.02);
}

*{box-sizing:border-box}
html,body{height:100%}
body.app-dark{
  background: linear-gradient(180deg, #060607 0%, #0b0f12 50%, #101214 100%);
  color:#e6eef6;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Header */
.app-header .navbar {
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-bottom: 1px solid rgba(255,255,255,0.02);
  backdrop-filter: blur(6px);
}

.brand-text{ font-weight:700; letter-spacing:0.2px; color:#f8fafc }

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(2,6,23,0.6);
}

/* Buttons */
.btn-outline-light {
  border: 1px solid rgba(255,255,255,0.08);
  color: #eef2f7;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 10px;
}

/* Offline screen */
.offline-screen {
  max-width: 520px;
  margin: 6rem auto;
  text-align: center;
  padding: 2.5rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.005));
  border: 1px solid rgba(255,255,255,0.02);
}

.offline-screen h1 { font-size: 1.75rem; margin: 1rem 0; color:#fff }
.offline-screen p { color:var(--muted); }

/* Small responsive tweaks */
@media (max-width:576px){
  .brand-text{ display:none }
  .offline-screen{ margin:3rem 1rem; padding:1.5rem }
}
