/* Admin Panel Styles */

/* Admin Login Modal */
.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-modal.active {
    display: flex;
    opacity: 1;
}

.admin-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.admin-modal-content {
    position: relative;
    margin: auto;
    background: var(--bg-color, #1a1a1a);
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color, #333);
    z-index: 10001;
}

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

.admin-modal-header h2 {
    color: var(--text-color, #fff);
    font-size: 1.5rem;
    margin: 0;
}

.admin-modal-close {
    background: none;
    border: none;
    color: var(--text-color, #fff);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s ease;
}

.admin-modal-close:hover {
    color: var(--accent-color, #ff4444);
}

.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group label {
    color: var(--text-color, #fff);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    padding: 0.75rem;
    background: var(--input-bg, #2a2a2a);
    border: 1px solid var(--border-color, #333);
    border-radius: 6px;
    color: var(--text-color, #fff);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color, #ff4444);
}

.admin-login-btn {
    padding: 0.75rem 1.5rem;
    background: var(--accent-color, #ff4444);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.admin-login-btn:hover {
    background: var(--accent-hover, #ff6666);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

.admin-error {
    display: none;
    padding: 0.75rem;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--accent-color, #ff4444);
    border-radius: 6px;
    color: var(--accent-color, #ff4444);
    font-size: 0.9rem;
    text-align: center;
}

/* Floating Admin Panel */
.floating-admin-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    background: rgba(26, 26, 26, 0.95);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    backdrop-filter: blur(10px);
}

.admin-panel-header {
    color: white;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-logout-btn {
    padding: 0.5rem 1rem;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    transition: background 0.3s ease;
}

.admin-logout-btn:hover {
    background: #ff6666;
}

/* Admin Edit Buttons */
.admin-edit-buttons {
    display: none;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 8px;
    border: 1px solid var(--border-color, #333);
}

.admin-edit-buttons.show {
    display: flex !important;
}

.admin-edit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color, #ff4444);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-edit-btn:hover {
    background: var(--accent-hover, #ff6666);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

.admin-edit-btn span:first-child {
    font-size: 1.25rem;
}

/* Admin Edit Modals */
.admin-edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-edit-modal.active {
    display: flex;
    opacity: 1;
}

.admin-edit-modal .admin-modal-content {
    max-width: 600px;
}

.admin-edit-modal textarea {
    width: 100%;
    min-height: 150px;
    padding: 0.75rem;
    background: var(--input-bg, #2a2a2a);
    border: 1px solid var(--border-color, #333);
    border-radius: 6px;
    color: var(--text-color, #fff);
    font-size: 0.9rem;
    font-family: monospace;
    resize: vertical;
}

.admin-edit-modal textarea:focus {
    outline: none;
    border-color: var(--accent-color, #ff4444);
}

.admin-edit-modal .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-edit-modal .form-actions button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-edit-modal .btn-save {
    background: var(--accent-color, #ff4444);
    color: white;
}

.admin-edit-modal .btn-save:hover {
    background: var(--accent-hover, #ff6666);
}

.admin-edit-modal .btn-clear {
    background: #666;
    color: white;
}

.admin-edit-modal .btn-clear:hover {
    background: #888;
}

.admin-thumbnail-preview {
    margin-top: 1rem;
    text-align: center;
}

.admin-thumbnail-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    margin-top: 0.5rem;
}

/* Notification */
.admin-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: rgba(26, 26, 26, 0.95);
    border-radius: 8px;
    color: white;
    z-index: 10002;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.admin-notification.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.admin-notification.success {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.2);
}

.admin-notification.error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-edit-buttons {
        flex-direction: column;
    }
    
    .floating-admin-panel {
        top: auto;
        bottom: 20px;
        right: 20px;
    }
}


