:root {
    --gold-color: #FFD700;
    --silver-color: #C0C0C0;
    --bronze-color: #CD7F32;
}

body {
    background-color: #f8f9fa;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    border-bottom: none;
    padding: 1rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body .card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-body .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-body .card .bi-trophy-fill {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.card-body .card .btn {
    transition: all 0.2s;
}

.card-body .card .btn:hover {
    transform: scale(1.05);
}

/* Accordion Styles */
.accordion-item {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,.125);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-button {
    padding: 0.8rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    background-color: #fff;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #0d6efd;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.accordion-button::after {
    width: 1rem;
    height: 1rem;
    background-size: 1rem;
}

.accordion-body {
    padding: 0;
    background-color: #fff;
}

/* Table Styles */
.table {
    margin-bottom: 0;
    border-radius: 15px;
    overflow: hidden;
}

.table th {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem;
}

.table td {
    padding: 0.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #f2f2f2;
}

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

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Medal Colors */
.medal-gold {
    color: #ffc107;
    font-weight: 600;
}

.medal-silver {
    color: #6c757d;
    font-weight: 600;
}

.medal-bronze {
    color: #cd7f32;
    font-weight: 600;
}

/* Medal Management Cards */
.card-body .card .btn-warning {
    color: #fff;
    background-color: #ffc107;
    border-color: #ffc107;
}

.card-body .card .btn-warning:hover {
    color: #fff;
    background-color: #e0a800;
    border-color: #d39e00;
}

.card-body .card .btn-light {
    background-color: #f8f9fa;
    border-color: #ddd;
}

.card-body .card .btn-light:hover {
    background-color: #e2e6ea;
    border-color: #ccc;
}

.card-body .card .btn-secondary {
    color: #fff;
}

.card-body .card .border-warning {
    border-width: 2px !important;
}

.card-body .card .border-light {
    border-width: 2px !important;
}

.card-body .card .border-secondary {
    border-width: 2px !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .accordion-button {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .table th, .table td {
        padding: 0.4rem;
        font-size: 0.85rem;
    }
    
    .card-header {
        padding: 0.75rem;
    }
    
    .card-header h3 {
        font-size: 1.1rem;
    }
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background-color: #0d6efd;
    color: white;
    border-radius: 15px 15px 0 0;
}

.btn-close {
    filter: brightness(0) invert(1);
}

/* Form Styles */
.form-select, .form-control {
    border-radius: 10px;
    border: 2px solid #dee2e6;
    padding: 10px;
    transition: all 0.3s;
}

.form-select:focus, .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Button Styles */
.btn {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #0d6efd;
    border: none;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

/* Highlight Styles */
@keyframes highlight {
    0% { background-color: rgba(13, 110, 253, 0.1); }
    100% { background-color: transparent; }
}

.highlight {
    animation: highlight 1s ease-out;
}

/* Page Title Styles */
.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

/* Medal Count Styles */
.medal-count {
    font-size: 1.4rem;
    font-weight: 500;
}

/* Unit Name Styles */
.unit-name {
    font-size: 1.3rem;
    font-weight: 500;
}

/* Total Column Styles */
.total-column {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Clickable Medal Styles */
.clickable-medal {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border-radius: 4px;
    padding: 2px 4px;
}

.clickable-medal:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.8;
}

.clickable-medal.gold:hover {
    background-color: rgba(255, 215, 0, 0.3);
}

.clickable-medal.silver:hover {
    background-color: rgba(192, 192, 192, 0.3);
}

.clickable-medal.bronze:hover {
    background-color: rgba(205, 127, 50, 0.3);
}

