/* Custom styles for RoboCup Analyzer */

/* Light mode (default) */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Dark mode styles */
[data-bs-theme="dark"] {
    color-scheme: dark;
}

[data-bs-theme="dark"] body {
    background-color: #212529;
    color: #dee2e6;
}

[data-bs-theme="dark"] .navbar {
    background-color: #343a40 !important;
}

[data-bs-theme="dark"] .card {
    background-color: #2b3035;
    color: #dee2e6;
}

[data-bs-theme="dark"] .card-header {
    background-color: #343a40;
    color: #dee2e6;
    border-bottom: 2px solid #495057;
}

[data-bs-theme="dark"] .table {
    color: #dee2e6;
}

[data-bs-theme="dark"] .table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.075);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #343a40;
    border-color: #495057;
    color: #dee2e6;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #343a40;
    border-color: #86b7fe;
    color: #dee2e6;
}

[data-bs-theme="dark"] footer {
    background-color: #343a40;
    color: #adb5bd;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: #343a40;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #6c757d;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

[data-bs-theme="dark"] .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

.card-header {
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 0, 0, 0.125);
}

.table {
    margin-bottom: 0;
}

.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.form-control, .form-select {
    border-radius: 0.375rem;
}

footer {
    margin-top: auto;
}

/* Login page */
.login-card {
    border-radius: 1rem;
}

.theme-toggle-login {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle-login:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .theme-toggle-login {
    background-color: #343a40;
    border-color: #495057;
    color: #ffc107;
}

/* Dashboard cards */
.dashboard-card {
    transition: transform 0.2s;
}

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

/* Stats cards with colored left border */
.stat-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.stat-card .card-body {
    padding: 1.25rem 1.5rem;
    border-left: 4px solid transparent;
}

.stat-card.stat-primary .card-body { border-left-color: #0d6efd; }
.stat-card.stat-success .card-body { border-left-color: #198754; }
.stat-card.stat-warning .card-body { border-left-color: #ffc107; }
.stat-card.stat-info .card-body { border-left-color: #0dcaf0; }
.stat-card.stat-danger .card-body { border-left-color: #dc3545; }

.stat-card .stat-icon {
    font-size: 2rem;
    opacity: 0.7;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0;
}

[data-bs-theme="dark"] .stat-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Quick action items */
.quick-action-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 8px;
}

.quick-action-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: inherit;
    text-decoration: none;
}

.quick-action-item .action-icon {
    font-size: 1.5rem;
    margin-right: 14px;
    width: 40px;
    text-align: center;
}

.quick-action-item .action-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.quick-action-item .action-desc {
    font-size: 0.8rem;
    opacity: 0.6;
}

[data-bs-theme="dark"] .quick-action-item {
    border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .quick-action-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Table hover effect */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
    cursor: pointer;
}

/* Badge styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Button group */
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
}

/* Alert styles */
.alert {
    border-radius: 0.5rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1040;  /* Sotto modale Bootstrap (1055) */
    justify-content: center;
    align-items: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
}

