/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
}

body {
    background: url('ebonscale_pond.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.4); /* Dark overlay with opacity */
    z-index: -1;
}

/* Logout Button Style */
.btn-logout {
    background-color: transparent !important;
    color: #28a745 !important; /* Green text color */
    border: 2px solid #28a745 !important; /* Green border */
    padding: 0.375rem 0.75rem; /* Bootstrap button padding */
    font-size: 1rem;
    border-radius: 0.25rem; /* Bootstrap border radius */
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
}

.btn-logout:hover {
    background-color: #28a745 !important; /* Green background on hover */
    color: white !important; /* White text on hover */
    text-decoration: none;
}

/* Scoped Header Styles */
.top-bar {
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent */
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: fixed; /* Keep the header fixed at the top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays above other elements */
}

.top-bar .logo a {
    color: #4CAF50;
    text-decoration: none;
}

.top-bar .logo h1 {
    font-size: 1.5rem;
    margin: 0;
}

.top-bar .header-buttons a.btn {
    color: #ffffff;
    background-color: #4CAF50;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
    margin-left: 10px; /* Space between buttons */
}

.top-bar .header-buttons a.btn:hover {
    background-color: #45a049;
}

/* Scoped Footer Styles */
.bottom-bar {
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent */
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    position: fixed; /* Keep the footer fixed at the bottom */
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays above other elements */
}

.bottom-bar .social-icons a svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    transition: fill 0.3s;
}

.bottom-bar .social-icons a:hover svg {
    fill: #4CAF50;
}

/* Main Content Adjustments */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically centers the content */
    align-items: center;     /* Horizontally centers the content */
    padding-top: 80px; /* To avoid overlap with fixed header */
    padding-bottom: 80px; /* To avoid overlap with fixed footer */
}

.container h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1050; /* Above header and footer */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(18, 18, 18, 0.9);
}

.modal-content {
    background-color: #1e1e1e;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #333;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
    position: relative;
}

.close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    color: #ffffff;
    margin-bottom: 20px;
}

.modal-content label {
    display: block;
    font-weight: bold;
    color: #b3b3b3;
    max-width: 300px;
    margin: 0 auto 5px auto;
    text-align: left;
}

.modal-content input[type="text"],
.modal-content input[type="password"] {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    margin: 0 auto 15px auto;
    display: block;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.modal-content p {
    text-align: center;
    margin-top: 20px;
}

.modal-content a {
    color: #4CAF50;
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: block;
}

.submit-btn:hover {
    background-color: #45a049;
}

/* Button Style */
#loginBtn {
    background-color: #4CAF50;
    color: #ffffff;
    padding: 15px 30px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#loginBtn:hover {
    background-color: #45a049;
}

/* Hyperlinks */
a {
    color: #4CAF50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    header h1 {
        font-size: 3em;
    }
    .container h2 {
        font-size: 2em;
    }
    .modal-content {
        margin: 10% auto;
    }
}

/* Stats Heading */
.stats-heading {
    color: #4CAF50; /* Set 'Your Stats' heading to green */
    margin-bottom: 30px;
}

/* User Stats Form */
.user-stats-form {
    max-width: 800px;
    margin: 0 auto;
}

.user-stats-form .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.user-stats-form label {
    display: block;
    font-weight: bold;
    color: #b3b3b3;
    margin-bottom: 5px;
}

.user-stats-form input[type="text"],
.user-stats-form input[type="password"],
.user-stats-form select,
.user-stats-form input[type="checkbox"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.user-stats-form input[disabled],
.user-stats-form select[disabled],
.user-stats-form input[type="checkbox"][disabled] {
    background-color: #444444;
    color: #888888;
}

.user-stats-form .submit-btn {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.user-stats-form .submit-btn:hover {
    background-color: #45a049;
}

/* Dashboard Content */
.dashboard-content {
    padding: 20px;
}

/* Row and Column Adjustments */
.user-stats-form .row {
    display: flex;
    flex-wrap: wrap;
}

.user-stats-form .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Adjust select and checkbox styles */
.user-stats-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.user-stats-form input[type="checkbox"] {
    width: auto;
    margin-top: 10px;
}

/* Style for multi-select */
.user-stats-form select[multiple] {
    height: auto;
}

/* Small text */
.user-stats-form small {
    color: #888888;
    font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .user-stats-form .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Adjust table styles for consistency */
table.table {
    color: #ffffff;
}

table.table thead th {
    color: #ffffff;
    background-color: #1e1e1e;
}

table.table tbody td {
    color: #e0e0e0;
}

table.table-striped tbody tr:nth-of-type(odd) {
    background-color: #2c2c2c;
}

table.table-striped tbody tr:nth-of-type(even) {
    background-color: #1e1e1e;
}

.btn-outline-light {
    color: #ffffff;
    border-color: #4CAF50;
}

.btn-outline-light:hover {
    background-color: #4CAF50;
    color: #ffffff;
    border-color: #4CAF50;
}


/* Stats Container */
.stats-container {
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    padding: 15px; /* Approximately 15px padding */
    border-radius: 10px;
    position: relative; /* To position the access level absolutely within */
    color: #ffffff;
}

/* Adjust form elements inside stats-container */
.stats-container .user-stats-form .form-group label {
    color: #ffffff;
}

.stats-container .user-stats-form input[type="text"],
.stats-container .user-stats-form input[type="number"],
.stats-container .user-stats-form select,
.stats-container .user-stats-form input[type="checkbox"] {
    background-color: #1e1e1e;
    border: 1px solid #4CAF50;
    color: #e0e0e0;
    padding: 10px;
    border-radius: 4px;
    width: 100%;
}

.stats-container .user-stats-form input[type="text"]:focus,
.stats-container .user-stats-form input[type="number"]:focus,
.stats-container .user-stats-form select:focus {
    border-color: #45a049;
    outline: none;
}

.stats-container .user-stats-form input[disabled],
.stats-container .user-stats-form select[disabled],
.stats-container .user-stats-form input[type="checkbox"][disabled] {
    background-color: #444444;
    color: #888888;
}

/* Adjust select and checkbox styles */
.stats-container .user-stats-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.stats-container .user-stats-form select[multiple] {
    height: auto;
}

.stats-container .user-stats-form .form-check-inline {
    display: inline-flex;
    align-items: center;
    padding-left: 0;
}

.stats-container .user-stats-form .form-check-inline .form-check-input {
    width: auto;
    margin-left: 0;
    margin-right: 5px;
}

.stats-container .user-stats-form .form-check-inline .form-check-label {
    margin-bottom: 0;
}

.stats-container .user-stats-form small {
    color: #888888;
    font-size: 12px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.submit-btn:hover {
    background-color: #45a049;
}

/* Access Level Display */
.access-level {
    position: absolute;
    bottom: 15px; /* 15px from the bottom padding */
    right: 15px;  /* 15px from the right padding */
    color: #ffffff;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5); /* Slightly more transparent background */
    padding: 5px 10px;
    border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .user-stats-form .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .access-level {
        position: static;
        margin-top: 10px;
    }
}



/* Adjust the shot caller checkbox */
.shot-caller-checkbox {
    width: auto;
    margin-right: 5px;
}

.form-group .form-check-inline {
    display: inline-flex;
    align-items: center;
    padding-left: 0;
}

.form-group .form-check-inline .form-check-input {
    width: auto;
    margin-top: 0;
    margin-right: 5px;
}

.form-group .form-check-inline .form-check-label {
    margin-bottom: 0;
}


/* Table Styles */
table.dataTable thead th {
    background-color: #343a40;
    color: white;
}

table.dataTable tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

table.dataTable tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Modal Styles - Ensure consistency with register modal */
.modal-content {
    background-color: #1e1e1e;
    color: #ffffff;
}

.modal-header {
    border-bottom: 1px solid #4CAF50;
}

.modal-footer {
    border-top: 1px solid #4CAF50;
}

.modal-title {
    color: #ffffff;
}

.modal-body .form-label {
    color: #ffffff;
}

.modal-body .form-control,
.modal-body .form-select {
    background-color: #2c2c2c;
    border: 1px solid #4CAF50;
    color: #e0e0e0;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: #45a049;
    box-shadow: none;
}

.modal-body .form-check-label {
    color: #ffffff;
}

/* Additional Styles for Modal */
.form-control,
.form-select {
    width: 100%;
}

.form-check-input {
    margin-right: 10px;
}
