:root {
    --primary-color: #c41e3a;
    --secondary-color: #3a3e42;
    --success-color: #28a745;
    --warning-color: #d4850a;
    --danger-color: #a01829;
    --dark-color: #1a1a1a;
    --accent-gold: #d4af37;
    --bg-dark: #0d0d0d;
    --text-light: #f8f9fa;
    --accent-blue: #3b82f6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%);
    color: var(--text-light);
    min-height: 100vh;
}

.hero-section {
    background: radial-gradient(ellipse at center, var(--primary-color) 0%, var(--danger-color) 50%, var(--dark-color) 100%);
    border: none !important;
    box-shadow: 0 8px 32px rgba(196, 30, 58, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 20%, rgba(212, 175, 55, 0.1) 50%, transparent 80%);
    pointer-events: none;
}

.hero-section img {
    max-height: 200px;
    border-radius: 15px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease-in-out;
}

.hero-section img:hover {
    transform: scale(1.05);
    border-color: rgba(212, 175, 55, 0.6);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

.card {
    border: 1px solid rgba(196, 30, 58, 0.2);
    background: rgba(26, 26, 26, 0.9);
    color: var(--text-light);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.3);
    border-color: rgba(196, 30, 58, 0.4);
    /*text: white;*/
}

.navbar-brand img {
    border-radius: 4px;
}

.rank-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.rank-requirement {
    padding: 10px;
    border-left: 4px solid var(--primary-color);
    background-color: #f8f9fa;
    border-radius: 0 4px 4px 0;
}

.step-number {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--dark-color);
}

.badge {
    font-size: 0.75rem;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.btn-group .btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

footer {
    margin-top: auto;
}

/* Custom scrollbar for tables */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* Loading animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .hero-section .col-lg-4 {
        margin-top: 2rem;
    }

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

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        border-radius: 0.375rem !important;
        margin-bottom: 0.25rem;
    }
}

/* Status colors */
.status-pending {
    color: var(--warning-color);
}

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

.status-rejected {
    color: var(--danger-color);
}

/* Card hover effects */
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Custom alert styles */
.alert {
    border: none;
    border-radius: 8px;
}

/* Form improvements */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Button improvements */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Navigation improvements */
.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Override Bootstrap primary color classes */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Red accent for links */
a {
    color: var(--primary-color);
}

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

/* Gold accents */
.text-warning {
    color: var(--accent-gold) !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
}

/* Enhanced table styling */
.table-dark {
    background-color: rgba(13, 13, 13, 0.98);
    border-color: rgba(196, 30, 58, 0.2);
    color: var(--text-light);
}

.table-dark th {
    background-color: var(--primary-color);
    border-color: rgba(196, 30, 58, 0.3);
    color: white;
}

.table-dark td {
    color: var(--text-light);
    border-color: rgba(196, 30, 58, 0.1);
    background-color: rgba(13, 13, 13, 0.95);
}

.table {
    color: var(--text-light);
}

.table th {
    color: var(--text-light);
    border-color: rgba(196, 30, 58, 0.2);
}

.table td {
    color: var(--text-light);
    border-color: rgba(196, 30, 58, 0.1);
}

.table-hover tbody tr:hover {
    background-color: rgba(196, 30, 58, 0.15) !important;
    color: var(--text-light);
}

.table-dark .table-hover tbody tr:hover td {
    background-color: rgba(196, 30, 58, 0.15) !important;
}

/* Navigation enhancements */
.navbar-brand {
    font-weight: bold;
    text-shadow: 0 0 10px rgba(196, 30, 58, 0.5);
}

.navbar-nav .nav-link:hover {
    color: var(--accent-gold) !important;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

/* Recent Activity Styling */
.list-group {
    background: transparent;
}

.list-group-item {
    background-color: rgba(26, 26, 26, 0.9) !important;
    border: 1px solid rgba(196, 30, 58, 0.3) !important;
    color: var(--text-light) !important;
    margin-bottom: 8px;
    border-radius: 8px !important;
    transition: all 0.2s ease-in-out;
}

.list-group-item:hover {
    background-color: rgba(26, 26, 26, 1) !important;
    border-color: rgba(196, 30, 58, 0.6) !important;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.2);
    transform: translateY(-2px);
}

.list-group-item .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
}

.list-group-item p {
    margin-bottom: 0.25rem !important;
    color: var(--text-light);
}

.list-group-item small {
    color: rgba(248, 249, 250, 0.7) !important;
}

.list-group-item h6 {
    color: var(--accent-gold);
    font-weight: 600;
}

.list-group-item .player-link {
    color: var(--accent-gold) !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.list-group-item .player-link:hover {
    color: var(--accent-gold) !important;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
    text-decoration: none;
}

.list-group-item .player-link:visited {
    color: var(--accent-gold) !important;
}

/* Discord Button Styling */
.discord-btn {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease-in-out;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

/* Discord-Themed Button Styling */
.wom-btn {
    background: rgba(26, 26, 26, 0.8); /* Dark background to match the section */
    border: 2px solid var(--accent-blue); /* Bright blue accent */
    color: var(--accent-blue); /* Accent text color */
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease-in-out;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.discord-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    text-shadow: none;
}

.wom-btn:hover {
    background: var(--accent-blue); /* Fill with accent blue */
    border-color: var(--accent-blue);
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    text-shadow: none;
}

.discord-btn:focus {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--dark-color);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.3);
}

.wom-btn:focus {
    outline: none;
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--dark-color);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.3);
}

/* Logo Images */
.discord-logo {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
    filter: brightness(1.2);
    transition: all 0.3s ease-in-out;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
}

.wom-logo {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
    filter: brightness(1.2);
    transition: all 0.3s ease-in-out;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
}

/* Logo hover effects */
.discord-btn:hover .discord-logo {
    filter: brightness(0.8);
    transform: scale(1.1);
}

.wom-btn:hover .wom-logo {
    filter: brightness(0.8);
    transform: scale(1.1);
}

/* Alternative logo styles for different sizes */
.logo-sm {
    width: 20px;
    height: 20px;
}

.logo-md {
    width: 24px;
    height: 24px;
}

.logo-lg {
    width: 32px;
    height: 32px;
}
