/* Modern Mobile-friendly styles for Sideline League */

/* Modern Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    /*padding: 1rem 1.5rem;*/
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Modern Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: 1;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Modern Form Styles */
.form-control {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    /*padding: 12px 16px;*/
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    outline: none;
}

/* Mobile Menu Styles */
.navbar-toggler {
    background: none;
    border: none;
    padding: 8px;
    margin-right: 10px;
    cursor: pointer;
    display: none;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.navbar-toggler-icon {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #ffffff;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    bottom: -8px;
}

.navbar-toggler.active .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler.active .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler.active .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Mobile Navigation - Simplified to avoid conflicts */
@media (max-width: 767px) {
    /* Header adjustments for mobile */
    #header {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }
    
    #logo, #banner {
        flex: 1;
    }
    
    .navbar-toggler {
        display: block !important;
        order: 2;
        z-index: 1001;
    }
}

/* Desktop Navigation */
@media (min-width: 768px) {
    #menu {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        padding: 0;
    }
    
    .navbar-nav {
        flex-direction: row;
        align-items: center;
    }
    
    .nav-item {
        width: auto;
        border: none;
    }
    
    .nav-link {
        padding: 8px 15px;
        color: #ffffff !important;
        text-decoration: none;
        border-radius: 5px;
        margin: 0 2px;
        transition: background-color 0.3s;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: #D0A852;
        color: #000000 !important;
    }
    
    .navbar-toggler {
        display: none;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    /* Make radio buttons and checkboxes easier to tap */
    input[type="radio"], input[type="checkbox"] {
        min-width: 20px;
        min-height: 20px;
    }
    
    /* Improve form controls */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 8px 12px;
    }
    
    /* Better button sizing */
    .btn {
        min-height: 44px; /* Apple's recommended minimum touch target */
        padding: 12px 20px;
    }
    
    /* Card improvements */
    .card {
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .card-header {
        background-color: #f8f9fa;
        border-bottom: 1px solid #dee2e6;
    }
    
    /* Better spacing for mobile */
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Improve text readability */
    body {
        line-height: 1.5;
    }
    
    /* Better table responsiveness */
    .table-responsive {
        border: none;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    /* Stack cards in single column */
    .col-12.col-md-6.col-lg-4 {
        width: 100%;
    }
    
    /* Improve form layout */
    .form-check {
        margin-bottom: 8px;
    }
    
    .form-check-label {
        padding-left: 5px;
    }
    
    /* Better button layout */
    .btn-lg {
        font-size: 16px;
        padding: 12px 24px;
    }
    
    /* Improve navigation */
    #menu ul {
        flex-direction: column;
        align-items: center;
    }
    
    li.menuButton, li.menuButtonSelected {
        width: 100%;
        text-align: center;
        margin: 2px 0;
    }
}

/* Landscape orientation improvements */
@media (max-width: 768px) and (orientation: landscape) {
    .card {
        margin-bottom: 8px;
    }
    
    .card-body {
        padding: 8px;
    }
    
    .btn {
        padding: 8px 16px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card {
        border-width: 0.5px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #343a40;
        color: #ffffff;
    }
    
    .card-header {
        background-color: #495057;
        color: #ffffff;
    }
}

/* Mobile menu additional improvements - Simplified */
@media (max-width: 767px) {
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
} 

#banner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 70px;
    margin: 10px 0;
    background: transparent;
    overflow: hidden;
}
#banner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-width: 100%;
    max-height: 100%;
}
@media (max-width: 600px) {
    #banner {
        height: 48px;
        margin: 6px 0;
    }
} 
.modal a.close-modal {
    top: 1px !important;
    right: 1px !important;

}