/* OneAndDone Fantasy Football App Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

* {
    font-family: 'Chakra Petch', monospace;
}

body {
    background-color: #f8f9fa;
    font-family: 'Chakra Petch', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

.logo {
    color: white !important;
    text-decoration: none !important;
    font-family: 'Bitcount Prop Single', monospace;
    font-weight: 400;
    font-size: 2rem;
}

.logo:hover {
    color: #f8f9fa !important;
    text-decoration: none !important;
}

.jumbotron {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    border: none;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.table-responsive {
    border-radius: 0.375rem;
    overflow: hidden;
}

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

.table td {
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.alert {
    border-radius: 0.375rem;
    border: none;
}

.form-control, .form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-group .btn {
    border-radius: 0 0.375rem 0.375rem 0;
}

.input-group .form-control {
    border-radius: 0.375rem 0 0 0.375rem;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-in-out;
}

/* Table highlighting for top positions */
.table-success {
    background-color: rgba(40, 167, 69, 0.1);
}

.table-danger {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Badge styling */
.badge {
    font-size: 0.75em;
}

/* Card statistics styling */
.card-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Navigation hover effects */
.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Form styling */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Alert dismissible styling */
.alert-dismissible {
    padding-right: 3rem;
}

/* List group styling */
.list-group-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
}

/* Week selection button group */
.btn-group .btn {
    margin-right: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem 1rem;
    }
    
    .jumbotron h1 {
        font-size: 2rem;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        margin-bottom: 0.5rem;
        border-radius: 0.375rem !important;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Small screen table adjustments */
@media (max-width: 576px) {
    .table td, .table th {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .badge {
        font-size: 0.6em;
    }
}

/* Progress bars */
.progress {
    height: 20px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Custom badge sizes */
.fs-6 {
    font-size: 1rem !important;
}

/* Dropdown menu styling */
.dropdown-menu {
    border-radius: 0.375rem;
    border: 1px solid rgba(0, 0, 0, 0.125);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* User breakdown specific styles */
.text-decoration-line-through {
    text-decoration: line-through;
}

/* Field analysis table styling */
.table td, .table th {
    vertical-align: middle;
}

/* Progress bars in tables */
.table .progress {
    height: 15px;
}

/* Print styles */
@media print {
    .navbar, .btn, .alert {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
    
    body {
        background-color: white;
    }
}

.font-bitcount {
    font-family: 'Bitcount Prop Single', monospace !important;
}

.font-chakra {
    font-family: 'Chakra Petch', monospace !important;
}
