/* ===================================
   STUDIO.Z - Admin Panel CSS
   Modern, clean interface
   =================================== */

:root {
    --admin-primary: #c9a961;
    --admin-primary-dark: #a68946;
    --admin-secondary: #5a5a5a;
    --admin-success: #4caf50;
    --admin-danger: #f44336;
    --admin-warning: #ff9800;
    --admin-bg: #f5f5f5;
    --admin-white: #ffffff;
    --admin-border: #e0e0e0;
    --admin-text: #2c2c2c;
    --admin-text-light: #757575;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--admin-bg);
    color: var(--admin-text);
    line-height: 1.6;
}

/* === LOGIN SCREEN === */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f4eed4 0%, #d4c5a0 100%);
}

.login-box {
    background: var(--admin-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    color: var(--admin-primary);
    margin-bottom: 0.5rem;
}

.login-box h2 {
    font-size: 1.2rem;
    color: var(--admin-text-light);
    font-weight: 400;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--admin-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--admin-border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--admin-primary);
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--admin-text-light);
}

.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--admin-primary);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--admin-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

.btn-secondary {
    background-color: var(--admin-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #404040;
}

.btn-danger {
    background-color: var(--admin-danger);
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

.error-message {
    background-color: #ffebee;
    color: var(--admin-danger);
    padding: 0.8rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--admin-text-light);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--admin-primary);
}

/* === DASHBOARD === */
.admin-header {
    background-color: var(--admin-white);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.8rem;
    color: var(--admin-primary);
}

.header-right {
    display: flex;
    gap: 1rem;
}

.header-right .btn-secondary {
    width: auto;
}

/* === ADMIN CONTENT === */
.admin-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* === TABS === */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--admin-border);
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: none;
    color: var(--admin-text-light);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.tab-btn:hover {
    color: var(--admin-primary);
}

.tab-btn.active {
    color: var(--admin-primary);
    border-bottom-color: var(--admin-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === CONTENT HEADER === */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.content-header h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    color: var(--admin-text);
}

.content-header .btn-primary {
    width: auto;
}

/* === ITEMS LIST === */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item-card {
    background-color: var(--admin-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.item-date {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--admin-primary);
    margin-bottom: 0.3rem;
}

.item-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--admin-text);
    margin-bottom: 0.5rem;
}

.item-info {
    font-size: 0.95rem;
    color: var(--admin-text-light);
    margin-bottom: 0.3rem;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 4px;
}

/* === FORM CONTAINER === */
.form-container {
    background-color: var(--admin-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    color: var(--admin-text);
    margin-bottom: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions button {
    width: auto;
}

/* === INFO BOX === */
.info-box {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.info-box p {
    margin-bottom: 0.5rem;
    color: #1976d2;
}

/* === IMAGE PREVIEW === */
.image-preview {
    margin: 1rem 0;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* === IMAGES GALLERY === */
.images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    background-color: var(--admin-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-item-info {
    padding: 1rem;
}

.gallery-item-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--admin-text-light);
}

.gallery-item-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem 1rem 1rem;
}

/* === ANLEITUNG === */
.anleitung-content {
    background-color: var(--admin-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.anleitung-content h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    color: var(--admin-primary);
    margin-bottom: 2rem;
}

.anleitung-section {
    background-color: #fafafa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--admin-primary);
}

.anleitung-section.danger {
    background-color: #ffebee;
    border-left-color: var(--admin-danger);
}

.anleitung-section h3 {
    font-size: 1.3rem;
    color: var(--admin-text);
    margin-bottom: 1rem;
}

.anleitung-section ol,
.anleitung-section ul {
    margin-left: 1.5rem;
}

.anleitung-section li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* === TOAST NOTIFICATION === */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--admin-success);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: none;
    animation: slideInUp 0.3s ease;
    z-index: 1000;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.show {
    display: block;
}

.toast.error {
    background-color: var(--admin-danger);
}

.toast.warning {
    background-color: var(--admin-warning);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 1rem;
    }

    .header-right {
        width: 100%;
        justify-content: stretch;
    }

    .header-right button {
        flex: 1;
    }

    .admin-content {
        padding: 1rem;
    }

    .admin-tabs {
        overflow-x: auto;
    }

    .tab-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .content-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .content-header .btn-primary {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

    .item-header {
        flex-direction: column;
    }

    .item-actions {
        width: 100%;
        margin-top: 1rem;
    }

    .item-actions button {
        flex: 1;
    }

    .images-gallery {
        grid-template-columns: 1fr;
    }

    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 2rem 1.5rem;
    }

    .login-box h1 {
        font-size: 2.5rem;
    }
}
