/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #ffffff;
    margin: 0;
    display: flex;
}

a {
    color: #ffffff;
    text-decoration: none;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: #1f1f1f;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.sidebar h1 {
    text-align: center;
    font-size: 22px;
    color: #ff5722;
    margin-bottom: 30px;
}

.sidebar a {
    padding: 15px 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.sidebar a:hover {
    background: #333333;
}

.sidebar a.active {
    background: #ff5722;
}

/* Main Content Area */
.main-content {
    margin-left: 250px;
    padding: 20px;
    flex-grow: 1;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.card i {
    font-size: 40px;
    margin-bottom: 10px;
    color: #ff5722;
}

/* Chart Container */
.chart-container {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.charts-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.charts-row .chart-container {
    flex: 1;
    min-width: 300px;
}

/* Table Styling */
.table-container {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #333333;
}

table th {
    background-color: #333333;
    color: #ffffff;
}

table tbody tr:nth-child(odd) {
    background-color: #252525;
}

table tbody tr:nth-child(even) {
    background-color: #2a2a2a;
}

table tbody tr:hover {
    background-color: #444444;
}

button[data-feather="trash-2"] {
    background: none;
    border: none;
    color: #ff5722;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

button[data-feather="trash-2"]:hover {
    color: #e64a19;
}



/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}



.modal-content {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
   
    width: 100%;
}

.modal-content select {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    color: #ffffff;
    background: #555555;
    border: 1px solid #555555;
    border-radius: 5px;
}

.modal-content .btn {
    margin-top: 20px;
}
/* Form Container */
.form-container {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    width: 100%;
    
    margin-left: auto;
    margin-right: auto;
}

.form-container h2 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #ff5722;
    text-align: center;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    color: #cccccc;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    padding: 10px;
    font-size: 14px;
    color: #ffffff;
    background-color: #2a2a2a;
    border: 1px solid #444444;
    border-radius: 5px;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff5722;
    box-shadow: 0 0 5px rgba(255, 87, 34, 0.5);
}

/* Button Styling */
.btn {
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff;
    background-color: #ff5722;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: center; /* Center the button */
    width: fit-content;
}

.btn:hover {
    background-color: #e64a19;
}

.btn:active {
    background-color: #d84315;
}


/* Modal Updates */
.modal-content .actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.action-btn {
    padding: 10px 15px;
    background-color: #ff5722;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.action-btn:hover {
    background-color: #e64a19;
}

/* Statistics Table */
.stats-container {
    margin-top: 20px;
    background: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.stats-container h3 {
    margin-bottom: 10px;
    color: #ff5722;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    color: #fff;
}

table th, table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #444;
}

table th {
    background: #333;
}

table tbody tr:nth-child(odd) {
    background: #252525;
}

table tbody tr:nth-child(even) {
    background: #2a2a2a;
}

/* Timer Button */
#adjust-time {
    background-color: #ffb74d;
    color: #000;
    margin-top: 10px;
}
/*  ------------------------------------------- */



/* Overlay Styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.overlay-content {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    width: 60%;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.team-selection-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.team-selection-left,
.team-selection-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

.vs {
    font-size: 36px;
    font-weight: bold;
    color: #ff5722;
}

label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

select {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 80%;
}

button.btn {
    background-color: #ff5722;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
}

button.btn:hover {
    background-color: #e64a19;
}

/* Modal Hidden */
.hidden {
    display: none;
}



