/* assets/css/style.css */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header & Navigation */
.navbar-brand {
    font-weight: bold;
}

.bg-success {
    background-color: #198754 !important;
}

/* Tables */
.table th {
    text-align: center;
    vertical-align: middle;
}

.table td {
    vertical-align: middle;
}

.has-score {
    font-weight: bold;
    background-color: rgba(25, 135, 84, 0.1);
}

.team-logo {
    max-height: 30px;
    max-width: 30px;
}

.total-score {
    font-weight: bold;
    color: #198754;
}

/* Cards */
.card {
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
    font-weight: bold;
}

/* Tabs */
.nav-tabs .nav-link {
    color: #495057;
    border: 1px solid transparent;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #198754;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: bold;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
}

/* Sections */
section {
    margin-bottom: 3rem;
}

/* Footer */
footer {
    background-color: #343a40;
    color: white;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 767px) {
    .table-responsive {
        font-size: 0.85rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
}

/* Custom Table Headers */
.table-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.table-primary {
    background-color: #cfe2ff;
    color: #084298;
}

.table-danger {
    background-color: #f8d7da;
    color: #842029;
}

.table-warning {
    background-color: #fff3cd;
    color: #664d03;
}

.table-info {
    background-color: #cff4fc;
    color: #055160;
}

/* Highlight scores */
.highlight-score {
    background-color: rgba(25, 135, 84, 0.15);
    font-weight: bold;
}

/* Animations */
.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Search box */
.search-container {
    margin-bottom: 20px;
}

/* Criteria section */
#kriteria .card {
    transition: all 0.3s ease;
}

#kriteria .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
}

#kriteria .card-header {
    font-weight: bold;
}

#kriteria .list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.75rem 1.25rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #198754;
    color: white;
    text-align: center;
    line-height: 40px;
    z-index: 99;
    cursor: pointer;
    transition: background-color 0.3s;
}

.back-to-top:hover {
    background-color: #146c43;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    .table {
        width: 100% !important;
    }
    
    body {
        padding: 0;
        margin: 0;
    }
    
    h1 {
        font-size: 18pt;
    }
    
    h3 {
        font-size: 14pt;
    }
}
