/* admin.css - стили только для админ-панели */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Marmelad', sans-serif;
    background: #F9F7F4;
    color: #2A2A2A;
    padding: 2rem;
}

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

h1 {
    font-size: 2rem;
    color: #C4A47A;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #8A8A8A;
    border-bottom: 1px solid #EAE5DF;
    padding-bottom: 1rem;
}

.form-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #5A5A5A;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #EAE5DF;
    border-radius: 12px;
    font-family: 'Marmelad', sans-serif;
    font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #C4A47A;
}

textarea {
    resize: vertical;
    min-height: 200px;
}

textarea#description {
    min-height: 250px;
}

button {
    background: #C4A47A;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 1rem;
}

button:hover {
    background: #B08F64;
}

.btn-secondary {
    background: #EAE5DF;
    color: #5A5A5A;
}

.btn-danger {
    background: #E8DCD4;
    color: #B85C3A;
}

.login-form {
    max-width: 400px;
    margin: 100px auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logout-btn {
    background: #EAE5DF;
    color: #5A5A5A;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 40px;
}

.row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox input {
    width: auto;
}

.alert-success {
    background: #E8F0E8;
    color: #4A6A3A;
    padding: 0.75rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #E8DCD4;
    color: #B85C3A;
    padding: 0.75rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.stats-bar {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #C4A47A;
}

.stat-label {
    font-size: 0.8rem;
    color: #8A8A8A;
}

.thoughts-list {
    margin-top: 2rem;
}

.thought-item {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #EAE5DF;
}

.thought-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.thought-meta {
    font-size: 0.8rem;
    color: #8A8A8A;
}

.thought-actions button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.form-actions {
    margin-top: 1rem;
}

.footer-link {
    text-align: center;
    margin-top: 2rem;
}

.footer-link a {
    color: #C4A47A;
}

/* Стили для загрузки изображений */
.image-upload-area {
    border: 2px dashed #EAE5DF;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    background: #F9F7F4;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.image-upload-area:hover {
    border-color: #C4A47A;
    background: #F5F0E8;
}

.image-preview {
    max-width: 200px;
    margin-top: 1rem;
    border-radius: 12px;
}

.upload-progress {
    display: none;
    margin-top: 0.5rem;
    color: #C4A47A;
    font-size: 0.9rem;
}

.current-image {
    margin: 0.5rem 0;
    padding: 0.75rem;
    background: #F9F7F4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-image img {
    max-width: 60px;
    border-radius: 8px;
}

.image-path {
    font-size: 0.8rem;
    color: #8A8A8A;
}

.btn-small {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    background: #EAE5DF;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.manual-url {
    margin-top: 1rem;
}

.manual-url label {
    font-size: 0.85rem;
}

.upload-hint {
    font-size: 0.8rem;
    color: #8A8A8A;
    margin-top: 0.5rem;
}

/* Навигация */
.admin-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 0.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.admin-nav-link {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: #5A5A5A;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.admin-nav-link:hover {
    background: #F9F7F4;
}

.admin-nav-link.active {
    background: #C4A47A;
    color: white;
}

@media (max-width: 768px) {
    .row-2col {
        grid-template-columns: 1fr;
    }

    body {
        padding: 1rem;
    }
}