/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Color Variables - Nuansa Partai Demokrat */
:root {
    --primary-blue: #004D99;
    --light-blue: #87CEEB;
    --red: #e74c3c;
    --dark-red: #DC143C;
    --white: #FFFFFF;
    --maroon: #8B0000;
    --gray-light: #f8f9fa;
    --gray-dark: #6c757d;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Navigation */
.navbar {
    background-color: var(--primary-blue);
    padding: 0.5rem 0;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.navbar li {
    margin: 0 1rem;
}

.navbar a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.navbar a:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

/* Sidebar Admin */
.sidebar {
    background-color: var(--primary-blue);
    min-height: 100vh;
    width: 250px;
    position: fixed;
    left: 0;
    top: 0;
    padding-top: 2rem;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar h3 {
    color: var(--white);
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
    font-size: 1.2rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    color: var(--white);
    text-decoration: none;
    display: block;
    padding: 1rem 1.5rem;
    transition: background-color 0.3s;
}

.sidebar a:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

.sidebar a.active {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    font-weight: bold;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 2rem;
    min-height: 100vh;
}

.content-wrapper {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-blue);
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

.btn-success {
    background-color: #28a745;
    color: var(--white);
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: var(--red);
    color: var(--white);
}

.btn-danger:hover {
    background-color: var(--dark-red);
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 5px rgba(0, 77, 153, 0.3);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.table th {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: bold;
}

.table tr:hover {
    background-color: #f8f9fa;
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: var(--red);
}

.alert-info {
    background-color: #cce7ff;
    color: var(--primary-blue);
    border-left-color: var(--light-blue);
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        min-height: auto;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .navbar ul {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar li {
        margin: 0.25rem 0;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .card {
        padding: 1rem;
    }
}

/* Landing Page Styles */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 3rem 0;
}

.section h2 {
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* QR Code Display */
.qr-code {
    text-align: center;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.qr-code img {
    max-width: 200px;
    height: auto;
    border: 2px solid var(--primary-blue);
    border-radius: 10px;
}