/* TribalWars Custom Styles */

/* Ensure full height layout */
html, body {
    height: 100%;
}

/* Custom card styling */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.375rem;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(98, 105, 118, 0.16);
}

/* Page header spacing */
.page-header {
    padding: 1.5rem 0;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(98, 105, 118, 0.16);
}

[data-bs-theme="dark"] .page-header {
    background-color: #1a202c;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Page body */
.page-body {
    padding: 0;
    flex: 1;
}

/* Dark mode enhancements */
[data-bs-theme="dark"] {
    color-scheme: dark;
}

[data-bs-theme="dark"] .card {
    background-color: #2d3748;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .list-group-item {
    background-color: #2d3748;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .text-secondary {
    color: #a0aec0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header {
        padding: 1rem 0;
    }

    .page-body {
        padding: 0;
    }
}

/* Animation for cards */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Navbar enhancements */
.navbar {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    background-color: #ffffff;
}

[data-bs-theme="dark"] .navbar {
    background-color: #1a202c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Icon colors */
.ti {
    color: inherit;
}

/* List group hover effect */
.list-group-item {
    transition: background-color 0.15s ease-in-out;
}

.list-group-item:hover {
    background-color: rgba(98, 105, 118, 0.04);
}

[data-bs-theme="dark"] .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Badge variants with white text */
.badge-success {
    background-color: #2fb344;
    color: white;
}

.badge-danger {
    background-color: #d63939;
    color: white;
}

/* Additional badge color variants with white text */
.bg-blue {
    background-color: #206bc4 !important;
    color: white !important;
}

.bg-green {
    background-color: #2fb344 !important;
    color: white !important;
}

.bg-orange {
    background-color: #f76707 !important;
    color: white !important;
}
