/* Main styles */

/* Sponsor styles */
.sponsor-link {
    text-decoration: none;
    color: inherit;
}

.sponsor-link:hover {
    text-decoration: none;
    color: inherit;
}

.sponsor-card {
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.sponsor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: white;
}

.sponsor-logo {
    filter: brightness(1);
    transition: all 0.3s ease;
}

.sponsor-card:hover .sponsor-logo {
    filter: brightness(1.1);
}
.flag-submission-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.flag-input {
    border: 2px solid #007bff;
    border-radius: 20px;
    padding: 8px 15px;
    margin-right: 10px;
    outline: none;
    transition: all 0.3s ease;
}

.flag-input:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.event-feed-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-width: 90vw;
    z-index: 1000;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.event-feed-header {
    padding: 10px 15px;
    background: #343a40;
    color: white;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-feed-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    transition: max-height 0.3s ease-out;
}

.event-feed-body.collapsed {
    max-height: 0;
    padding: 0;
    overflow: hidden;
}

.event-item {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
}

.leaderboard-container {
    margin-bottom: 100px;
}

/* Leaderboard animations */
.team-row {
    transition: all 0.5s ease;
    background-color: transparent;
}

.team-row:hover {
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1;
    position: relative;
}

.score {
    font-weight: bold;
    font-size: 1.1em;
    color: #2c3e50;
}

.rank {
    font-weight: bold;
    color: #95a5a6;
    text-align: center;
}

/* Navigation styling */
.navbar {
    background: linear-gradient(90deg, #1a1a1a, #2c3e50) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

.navbar-brand span {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    position: relative;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: #3498db;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Main content styling */
.container {
    padding: 2rem;
}

/* Table styling */
.table {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    color: #2c3e50;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

/* Card styling */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Form styling */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52,152,219,0.25);
}

/* Button styling */
.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #2980b9, #27ae60);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(45deg, #c0392b, #962d22);
    transform: translateY(-2px);
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alert-info {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
}

.alert-success {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
}

.alert-warning {
    background: linear-gradient(45deg, #f1c40f, #f39c12);
    color: white;
}

.alert-danger {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

/* Page title styling */
h2 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    border-radius: 3px;
}

/* Background styling */
body {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .table thead th {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
    
    .table tbody td {
        padding: 0.75rem;
    }
}

/* Auth pages styling */
.auth-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: 2rem;
    transition: transform 0.3s ease;
}

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

.auth-container h2 {
    margin-bottom: 2rem;
    text-align: center;
    color: #2c3e50;
}

.auth-container .form-group {
    margin-bottom: 1.5rem;
}

.auth-container label {
    font-weight: 500;
    color: #34495e;
    margin-bottom: 0.5rem;
}

.auth-container .form-control {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.auth-container .form-control:focus {
    background: white;
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52,152,219,0.25);
}

/* Team management styling */
.team-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.team-container h2, .team-container h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.team-table {
    margin-top: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.team-table th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 1rem;
}

.team-table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Button variations */
.btn-block {
    padding: 0.75rem 0;
    font-size: 1.1rem;
}

.btn-secondary {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    border: none;
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #7f8c8d, #6c7a7d);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    border: none;
    color: white;
}

.btn-success:hover {
    background: linear-gradient(45deg, #27ae60, #219a52);
    transform: translateY(-2px);
}

/* Form select styling */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

/* Flash messages styling */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: rgba(255,255,255,0.3);
} 