:root {
    --sls-red: #e01e1e;
    --sls-red-dark: #b71c1c;
    --sls-yellow: #ffc107;
    --sls-yellow-light: #fff3cd;
    --sls-red-light: #fdeaea;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Header / Branding */
.brand-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 3px solid var(--sls-red);
}

.brand-header img {
    width: 80px;
    height: 80px;
    margin-bottom: 0.5rem;
}

.brand-header h1 {
    font-size: 1.5rem;
    color: var(--sls-red);
    margin-bottom: 0.25rem;
}

.brand-header .subtitle {
    color: #666;
    margin-bottom: 0;
}

.field {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.required {
    color: var(--sls-red);
}

.hint {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.35rem;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--sls-red);
    box-shadow: 0 0 0 2px rgba(224, 30, 30, 0.15);
}

.error {
    display: block;
    color: var(--sls-red);
    font-size: 0.85rem;
    min-height: 1.2em;
}

/* Drop zone */
.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

.drop-zone:hover {
    border-color: var(--sls-red);
    background: var(--sls-red-light);
}

.drop-zone.drag-over {
    border-color: var(--sls-red);
    background: var(--sls-red-light);
    border-style: solid;
}

.drop-zone-text {
    color: #888;
    font-size: 0.95rem;
}

.drop-zone-text strong {
    color: var(--sls-red);
}

.drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Preview thumbnails */
.preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.preview-item .remove-btn:hover {
    background: var(--sls-red);
}

/* Buttons */
button[type="submit"],
.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: var(--sls-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button[type="submit"]:hover,
.btn-primary:hover {
    background: var(--sls-red-dark);
}

button[type="submit"]:disabled,
.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Messages */
.form-message {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.form-message.success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #c6f6d5;
}

.form-message.error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

/* Admin styles */
.admin-container {
    max-width: 900px;
}

.login-form {
    max-width: 350px;
    margin: 0 auto;
}

.login-form input[type="password"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.login-form input[type="password"]:focus {
    outline: none;
    border-color: var(--sls-red);
    box-shadow: 0 0 0 2px rgba(224, 30, 30, 0.15);
}

.feedback-list {
    list-style: none;
}

.feedback-item {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--sls-red);
    border-radius: 6px;
    margin-bottom: 1rem;
    background: #fafafa;
}

.feedback-item h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--sls-red-dark);
}

.feedback-meta {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.feedback-description {
    white-space: pre-wrap;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.feedback-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feedback-images a {
    display: block;
    width: 120px;
    height: 90px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.feedback-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.pagination button {
    padding: 0.4rem 1rem;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.pagination button:hover:not(:disabled) {
    border-color: var(--sls-red);
    color: var(--sls-red);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.empty-state {
    text-align: center;
    color: #888;
    padding: 2rem;
}

.logout-btn {
    float: right;
    background: none;
    border: 1px solid #ccc;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #666;
}

.logout-btn:hover {
    border-color: var(--sls-red);
    color: var(--sls-red);
}
