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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #f8f9fa;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

/* Login Screen */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #fff;
    border-right: 1px solid #e5e5e5;
}

.login-box {
    background: #fff;
    padding: 32px;
    width: 100%;
    max-width: 320px;
    border: 1px solid #e5e5e5;
}

.login-box h1 {
    font-family: 'Georgia', serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
    border-bottom: 2px solid #111;
    padding-bottom: 10px;
}

.login-box input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    margin-bottom: 12px;
    font-family: inherit;
}

.login-box input:focus {
    outline: none;
    border-color: #111;
}

.login-box button {
    width: 100%;
    padding: 10px 16px;
    background: #111;
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-box button:hover {
    background: #333;
}

.login-box .error {
    color: #c00;
    margin-top: 12px;
    font-size: 12px;
}

/* Admin Header */
.admin-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h1 {
    font-family: 'Georgia', serif;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.header-content .subtitle {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.logout-btn {
    padding: 6px 14px;
    background: #fff;
    color: #111;
    border: 1px solid #ccc;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
}

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

/* Admin Main */
.admin-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Admin Sections */
.admin-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    margin-bottom: 16px;
}

.admin-section h2 {
    font-family: 'Georgia', serif;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    padding: 10px 16px;
    border-bottom: 1px solid #e5e5e5;
    background: #fafafa;
}

.section-icon {
    margin-right: 6px;
}

.admin-section h3 {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin: 14px 16px 8px 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.field-name {
    color: #111;
}

.flex-ref {
    color: #999;
    font-style: italic;
    font-size: 10px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group textarea {
    padding: 8px 10px;
    border: 1px solid #ddd;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #111;
}

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

/* Image Preview */
.image-preview {
    max-width: 100%;
    max-height: 200px;
    margin-top: 10px;
    border: 1px solid #e5e5e5;
    display: none;
}

.image-preview.show {
    display: block;
}

.upload-status {
    font-size: 11px;
    margin-top: 6px;
    font-style: italic;
}

/* Sidebar Items */
.sidebar-item {
    background: #fafafa;
    padding: 12px 16px;
    margin: 12px 16px;
    border: 1px solid #e5e5e5;
}

.sidebar-item h4 {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.sidebar-item .remove-btn {
    background: #c00;
    color: #fff;
    border: none;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 6px;
}

.sidebar-item .remove-btn:hover {
    background: #900;
}

.add-btn {
    background: #111;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    margin: 0 16px 16px 16px;
    width: calc(100% - 32px);
}

.add-btn:hover {
    background: #333;
}

/* Action Buttons */
.admin-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-bottom: 20px;
}

.admin-actions button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.save-btn {
    background: #111;
    color: #fff;
}

.save-btn:hover {
    background: #333;
}

.reset-btn {
    background: #fff;
    color: #c00;
    border: 1px solid #c00;
}

.reset-btn:hover {
    background: #fff5f5;
}

.view-btn {
    background: #fff;
    color: #111;
    border: 1px solid #ccc;
}

.view-btn:hover {
    background: #f5f5f5;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #111;
    color: #fff;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .admin-actions {
        flex-direction: column;
    }
}
