/* ------------------- GENERAL ------------------- */
body {
    background: #f5f7fa;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
    margin: 0;
}

/* ------------------- SIDEBAR ------------------- */
.sidebar {
    height: 100vh;
    width: 250px;
    position: fixed;
    left: 0;
    top: 0;
    background: #0d6efd;
    padding-top: 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: width 0.3s;
}

.sidebar .logo {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    padding: 0 10px;
    color: #fff;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
    border-radius: 8px;
    margin: 3px 10px;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.2);
    padding-left: 25px;
}

/* Add icons effect */
.sidebar a i {
    min-width: 20px;
    text-align: center;
}

/* Responsive sidebar collapse */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding-top: 10px;
    }

    .sidebar .logo {
        font-size: 18px;
        text-align: center;
    }

    .sidebar a span {
        display: none;
    }
}

/* ------------------- MAIN CONTENT ------------------- */
.main-content {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s;
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 60px;
    }
}

/* ------------------- HEADER ------------------- */
.header {
    background: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e2e2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.header .lang-select a {
    margin-left: 10px;
    text-decoration: none;
    color: #0d6efd;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.3s;
}

.header .lang-select a:hover {
    background-color: #0d6efd;
    color: #fff;
}

.header .user {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ------------------- CARDS ------------------- */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ------------------- TABLES ------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
}

table th {
    background-color: #0d6efd;
    color: #fff;
}

table tr:nth-child(even) {
    background-color: #f5f7fa;
}

/* ------------------- BUTTONS ------------------- */
.btn-primary {
    background-color: #0d6efd;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}

/* ------------------- FOOTER ------------------- */
footer {
    text-align: center;
    padding: 15px 20px;
    margin-top: 30px;
    font-size: 14px;
    color: #888;
}

/* ------------------- RESPONSIVE ------------------- */
@media (max-width: 576px) {
    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .sidebar {
        display: none;
    }
}
