* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #e2e3ea 100%,#0e05be 100%);
    min-height: 100vh;
}

/* Login & Registration Container */
.login-container, .reg-container {
    width: 400px;
    margin: 30px auto;
    background: #130acd;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0e07a4;
}

.school-name {
    color: #152bd2;
    font-size: 18px;
    font-weight: bold;
    margin-top: 8px;
}

.system-title {
    color: #2004f3;
    font-size: 15px;
    margin-bottom: 20px;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

button {
    width: 100%;
    padding: 11px;
    background: #0f4d2c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

button:hover {
    background: #19663c;
}

/* Sidebar Layout */
.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #0f4d2c 0%, #0a361f 100%);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    box-shadow: 3px 0 10px rgba(0,0,0,0.15);
}

.sidebar-logo {
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.sidebar-logo img {
    max-width: 70px;
    border-radius: 50%;
}

.sidebar a {
    color: #ffffff;
    padding: 12px 20px;
    margin: 4px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.25s ease;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.15);
    padding-left: 24px;
}

.sidebar a.active {
    background: #ffffff;
    color: #0f4d2c;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card h3 {
    color: #0f4d2c;
    margin-bottom: 15px;
    border-bottom: 2px solid #e8f3ed;
    padding-bottom: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background: #f0f9f4;
    color: #0f4d2c;
}

.btn-sm {
    width: auto;
    padding: 5px 10px;
    font-size: 13px;
    margin: 2px;
}

.btn-del {
    background: #c0392b;
}

.btn-del:hover {
    background: #a02f22;
}

.candidate-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2d8f5e;
}

.alert {
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
}

.alert.success {
    background: #d4edda;
    color: #155724;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
}

.vote-card {
    display: flex;
    align-items: center;
    background: #f8fef9;
    padding: 15px;
    border-radius: 8px;
    margin: 8px 0;
    border: 1px solid #cfecdc;
}

.vote-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid #0f4d2c;
}

.vote-info h4 {
    color: #0f4d2c;
    font-size: 16px;
}

.vote-info p {
    color: #555;
    font-size: 13px;
}

.top-bar {
    background: rgb(11, 4, 226);
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.top-bar h2 {
    color: #0f4d2c;
    font-size: 20px;
}

@media(max-width:768px) {
    .sidebar { width: 100%; position: relative; height: auto; }
    .main-content { margin-left: 0; }
    .login-container, .reg-container { width: 90%; }
}