/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Login Page */
.bg-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e88e5 0%, #43a047 100%);
}

.container-login {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container-login h2 {
    color: #1e88e5;
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.container-login h4 {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
}

.container-login h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
}

/* Form Elements */
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Buttons */
button {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

button:active {
    transform: translateY(0);
}

.btn-register {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.btn-register:hover {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

/* Mading Page */
.mading-container {
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.header-mading {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.header-mading h1 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header-mading p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
}

/* Upload Form Card */
.upload-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 40px;
}

.upload-card h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-card h2::before {
    content: "✍️";
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Karya Cards Grid */
.karya-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.karya-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #667eea;
    animation: slideUp 0.5s ease;
}

.karya-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.karya-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.karya-title {
    font-size: 20px;
    color: #333;
    font-weight: 700;
    margin-bottom: 5px;
}

.karya-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pantun { background: #ffe0b2; color: #e65100; }
.badge-syair { background: #c8e6c9; color: #1b5e20; }
.badge-gurindam { background: #bbdefb; color: #0d47a1; }
.badge-puisi { background: #f8bbd9; color: #880e4f; }
.badge-cerpen { background: #e1bee7; color: #4a148c; }

.karya-author {
    color: #667eea;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 600;
}

.karya-content {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    color: #555;
    line-height: 1.8;
    font-style: italic;
    white-space: pre-line;
}

.karya-date {
    margin-top: 15px;
    font-size: 12px;
    color: #999;
    text-align: right;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.empty-state-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .karya-grid {
        grid-template-columns: 1fr;
    }
    
    .header-mading h1 {
        font-size: 24px;
    }
}

/* Utility */
hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 30px 0;
}

.back-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #757575;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #616161;
    transform: translateX(-5px);
}