/* public/css/login_style.css */
body {
    margin: 0;
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('../images/background.svg');
    background-size: cover;
}

.login-container {
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.login-header .logo {
    width: 80px;
    margin-bottom: 15px;
}

.login-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #d9251a;
    /* Màu đỏ của khăn quàng */
}

.login-header p {
    margin: 5px 0 25px 0;
    color: #555;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #007bff;
}

.login-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #0056b3;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.footer-text {
    margin-top: 20px;
    color: #666;
    font-size: 0.9em;
}


body {
    margin: 0;
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: #f4f7fa;
    color: #333;
}

.wrapper {
    display: flex;
}

/* --- Sidebar --- */
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: #ecf0f1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #34495e;
}

.sidebar-header img {
    width: 50px;
    margin-bottom: 10px;
}

.sidebar-header h3 {
    margin: 0;
    font-weight: 700;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: background-color 0.3s, padding-left 0.3s;
}

.sidebar-menu li a:hover,
.sidebar-menu li.active a {
    background-color: #34495e;
    padding-left: 25px;
}

.sidebar-menu li a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

/* --- Main Content --- */
.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 20px;
}

.header {
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    text-align: right;
}

/* --- Summary Cards --- */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.card .icon {
    font-size: 2.5em;
    margin-right: 20px;
    padding: 15px;
    border-radius: 50%;
    color: #fff;
}

.card.blue .icon {
    background-color: #3498db;
}

.card.green .icon {
    background-color: #2ecc71;
}

.card.orange .icon {
    background-color: #f39c12;
}

.card .info h4 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
}

.card .info p {
    margin: 0;
    color: #7f8c8d;
}

/* --- Data Table --- */
.content-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-box h3 {
    margin-top: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table thead th {
    background-color: #f4f7fa;
    font-weight: 700;
}

.data-table tbody tr:hover {
    background-color: #f9f9f9;
}

.rank {
    font-weight: bold;
    font-size: 1.1em;
}

.rank-1 {
    color: #f1c40f;
}

/* Gold */
.rank-2 {
    color: #bdc3c7;
}

/* Silver */
.rank-3 {
    color: #cd7f32;
}

/* Bronze */