:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5f7fa;
    --text-color: #333;
    --text-light: #777;
    --card-bg: white;
    --sidebar-bg: white;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
h1 {
    color: var(--primary-color);
}
.btn-disabled {
    background: gray;
    cursor: not-allowed;
}
.login-form, .search-form {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}
input, button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
}
button:hover {
    opacity: 0.9;
}
.candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.candidate-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 20px;
}
.candidate-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}
.error-message {
    color: red;
    margin-bottom: 10px;
}
.messages {
    list-style-type: none;
    padding: 0;
}
.messages li {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}
.messages .error {
    background-color: #ffebee;
    color: #c62828;
}
.messages .success {
    background-color: #e8f5e9;
    color: #2e7d32;
}
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.sidebar-content {
    padding: 2rem;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar .logo {
    text-align: center;
    margin-bottom: 2rem;
}

.sidebar .logo img {
    max-width: 80%;
    height: auto;
}

.sidebar nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.sidebar nav a:hover, .sidebar nav a.active {
    background-color: var(--primary-color);
    color: var(--card-bg);
}

.sidebar nav i {
    margin-right: 10px;
}

.sidebar-footer {
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    border-top: 1px solid var(--text-light);
}

.language-toggle {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.language-toggle button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.language-toggle button:hover {
    background-color: #3a7bc8;
}

#menuToggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
}

@media screen and (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        transform: translateY(-100%);
        position: fixed;
        z-index: 1000;
    }

    .content {
        margin-left: 0;
        padding-top: 4rem;
    }

    #menuToggle {
        display: block;
    }

    .sidebar.active {
        transform: translateY(0);
    }
}
