* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2d5016 0%, #1a4d2e 25%, #4a4a8a 50%, #6b4a8e 75%, #8a5a9e 100%);
    min-height: 100vh;
    padding: 20px;
    color: #fff;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.header-text {
    flex-grow: 1;
    text-align: center;
    padding: 0 20px;
}

.header-text h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 18px;
    margin: 5px 0;
    font-weight: 500;
}

.subtitle-small {
    font-size: 16px;
    opacity: 0.9;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.auth-input {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    width: 120px;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-registrasi, .btn-login {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.auth-status {
    display: none;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.auth-status span {
    font-size: 14px;
}

.btn-logout {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    background: #f44336;
    color: #fff;
}

.btn-logout:hover {
    background: #d32f2f;
}

.btn-registrasi {
    background: #4CAF50;
    color: white;
}

.btn-registrasi:hover {
    background: #45a049;
}

.btn-login {
    background: #2196F3;
    color: white;
}

.btn-login:hover {
    background: #0b7dda;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 20px;
}

.main-content.locked {
    filter: blur(2px);
    pointer-events: none;
    opacity: 0.5;
}

.input-section, .preview-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lock-message {
    margin-bottom: 15px;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 14px;
    display: none;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-select option {
    background: #2d5016;
    color: #fff;
    padding: 8px;
}

.form-select[multiple] {
    height: auto;
    min-height: 80px;
    padding: 0;
}

.form-select[multiple] option {
    padding: 10px;
    margin: 2px;
    background-color: #2d5016;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.form-select[multiple] option:checked {
    background: linear-gradient(#4CAF50, #4CAF50);
    background-color: #4CAF50 !important;
}

/* Checkbox styling */
.dimensi-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2196F3;
}

.dimensi-checkbox:checked {
    accent-color: #4CAF50;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Preview Section */
.preview-content {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 10px;
    padding: 20px;
    min-height: 400px;
    margin-bottom: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.preview-placeholder {
    text-align: center;
    color: #666;
    padding: 50px 20px;
    font-style: italic;
}

.preview-content h3 {
    color: #104E8B;
    margin-top: 15px;
    margin-bottom: 8px;
}

.preview-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-info, .btn-generate, .btn-download {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    text-align: center;
}

.btn-info {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: default;
}

.btn-generate {
    background: #2196F3;
    color: white;
}

.btn-generate:hover {
    background: #0b7dda;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-download {
    background: #4CAF50;
    color: white;
}

.btn-download:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-download:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Scrollbar */
.preview-content::-webkit-scrollbar {
    width: 8px;
}

.preview-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.preview-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.preview-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

.page-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.9;
}

.page-footer span {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 999px;
}

/* Responsive */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .header-text h1 {
        font-size: 24px;
    }
}
