/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 300;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.user-info {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.user-info span {
    opacity: 0.9;
}

/* Actions */
.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.search-container {
    display: flex;
    gap: 10px;
}

.search-container input,
.search-container select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.search-container input {
    width: 300px;
}

.search-container select {
    width: 150px;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px;
    background: #f8f9fa;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.stat-card h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card p {
    font-size: 2em;
    font-weight: bold;
    color: #333;
}

/* Main Content */
.main-content {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.landing-section {
    flex: 1;
    min-width: 0;
}

.landing-actions {
    margin-top: 20px;
    text-align: center;
}

.dashboard-section {
    flex: 2;
    min-width: 0;
}

.dashboard-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

/* Dashboard */
.dashboard {
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-number {
    font-size: 3em;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.stat-number.lulus {
    color: #28a745;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Login Page Styles */
body.login {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    animation: fadeIn 1s ease-in;
}

body.login .container {
    max-width: 400px;
    width: 90%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: bounceIn 1s ease-out 0.5s both;
}

body.login header {
    background: transparent;
    color: #333;
    text-align: center;
    padding: 30px 20px 20px;
}

body.login header h1 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 5px;
    font-weight: 400;
    animation: slideDown 0.8s ease-out 0.3s both;
}

body.login header p {
    color: #666;
    font-size: 1em;
}

body.login .alert {
    margin: 0 30px;
    padding: 10px;
    background: #ffebee;
    color: #c62828;
    border-radius: 5px;
    text-align: center;
}

body.login .form {
    padding: 20px 30px 30px;
}

body.login .form-group {
    margin-bottom: 20px;
}

body.login .input-container {
    position: relative;
}

body.login .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    color: #999;
    font-size: 18px;
}

body.login .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

body.login .form-group input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
body.login .btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

body.login .btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
}

body.login .btn:active {
    transform: translateY(0);
}

body.login small {
    display: block;
    text-align: center;
    color: #aaa;
    margin-top: 20px;
    padding: 0 20px 20px;
}
