/* Reset dan Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Warna Tema */
:root {
    --merah-muda: #e74c3c;
    --merah-gelap: #c0392b;
    --biru-muda: #3498db;
    --biru-gelap: #2980b9;
    --putih: #ffffff;
    --kelabu-muda: #ecf0f1;
    --kelabu-gelap: #7f8c8d;
    --hijau: #27ae60;
    --kuning: #f39c12;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--merah-muda), var(--merah-gelap));
    color: var(--putih);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.header h1 {
    font-size: 24px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInDown 0.8s ease;
}

/* Navigation */
.nav {
    background: var(--biru-gelap);
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav li {
    position: relative;
}

.nav a {
    display: block;
    color: var(--putih);
    padding: 15px 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav a:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transition: left 0.3s ease;
}

.nav a:hover:before {
    left: 0;
}

.nav a:hover {
    background: var(--biru-muda);
    transform: translateY(-2px);
}

/* Content Area */
.content {
    padding: 30px 0;
    animation: fadeIn 1s ease;
}

/* Card */
.card {
    background: var(--putih);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-header {
    border-bottom: 2px solid var(--merah-muda);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 18px;
    color: var(--merah-gelap);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--biru-gelap);
    font-size: 13px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    transition: all 0.3s ease;
    background: var(--putih);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--biru-muda);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover:before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--biru-muda), var(--biru-gelap));
    color: var(--putih);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--merah-muda), var(--merah-gelap));
    color: var(--putih);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: var(--putih);
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--putih);
    margin-top: 20px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.table th {
    background: linear-gradient(135deg, var(--biru-muda), var(--biru-gelap));
    color: var(--putih);
    font-weight: 600;
}

.table tr:hover {
    background: var(--kelabu-muda);
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    animation: slideInRight 0.5s ease;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--hijau);
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--merah-muda);
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--biru-muda);
}

/* Digital Clock */
.digital-clock {
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--putih);
    border-radius: 10px;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

/* Star Rating */
.star-rating {
    display: inline-flex;
    gap: 5px;
}

.star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
}

.star.filled {
    color: var(--kuning);
}

.star:hover {
    transform: scale(1.2);
}

/* Emoji Status */
.emoji-status {
    display: inline-flex;
    gap: 15px;
    margin: 10px 0;
}

.emoji-btn {
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.emoji-btn.selected {
    opacity: 1;
    transform: scale(1.3);
}

.emoji-btn:hover {
    transform: scale(1.2);
    opacity: 1;
}

/* Image Slider */
.slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: var(--putih);
    background: rgba(0,0,0,0.7);
    padding: 20px;
    border-radius: 5px;
    animation: slideInLeft 1s ease;
}

.slide-text h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
    }
    
    .nav a {
        text-align: center;
    }
    
    .digital-clock {
        font-size: 32px;
    }
    
    .table {
        font-size: 12px;
    }
    
    .card {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }
    
    .btn {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .digital-clock {
        font-size: 24px;
    }
    
    .slider {
        height: 250px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255,255,255,0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(255,255,255,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255,255,255,0);
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--kelabu-muda);
    border-top: 3px solid var(--biru-muda);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.col {
    flex: 1;
    padding: 10px;
    min-width: 250px;
}

.col-2 {
    flex: 0 0 50%;
    padding: 10px;
}

.col-3 {
    flex: 0 0 33.333%;
    padding: 10px;
}

.col-4 {
    flex: 0 0 25%;
    padding: 10px;
}

@media (max-width: 768px) {
    .col-2, .col-3, .col-4 {
        flex: 0 0 100%;
    }
}