/* AdminArchive Specific Styles */

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

/* Admin Navigation */
.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.admin-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.admin-nav-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #212529;
    text-decoration: none;
}

.admin-nav-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.admin-nav-btn.active:hover {
    background: #0056b3;
    border-color: #0056b3;
    color: white;
}

.admin-nav-btn svg {
    fill: currentColor;
    flex-shrink: 0;
}

/* Section Headers */
.section-header {
    margin-bottom: 2rem;
}

.section-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}

.section-header p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

/* Archives List */
.archives-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.loading-message {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-style: italic;
}

.no-archives-message {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-archives-message h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.archive-item {
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
    transition: background-color 0.2s ease;
}

.archive-item:last-child {
    border-bottom: none;
}

.archive-item:hover {
    background-color: #f8f9fa;
}

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

.archive-title {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.archive-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.archive-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    background: none;
    font-family: inherit;
}

.archive-btn-view {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

.archive-btn-view:hover {
    background: #bbdefb;
    border-color: #90caf9;
}

.archive-btn-edit {
    background: #fff3e0;
    color: #f57c00;
    border-color: #ffcc02;
}

.archive-btn-edit:hover {
    background: #ffcc02;
    border-color: #ffb300;
}

.archive-btn-delete {
    background: #ffebee;
    color: #d32f2f;
    border-color: #ffcdd2;
}

.archive-btn-delete:hover {
    background: #ffcdd2;
    border-color: #ef9a9a;
}

.archive-description {
    margin: 0 0 0.75rem 0;
    color: #666;
    line-height: 1.4;
    font-size: 0.9rem;
}

.archive-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
}

.archive-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.archive-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #007bff;
    text-decoration: none;
}

.archive-link:hover {
    text-decoration: underline;
}

/* Admin Form Styles */
.admin-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

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

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Button Styles */
.btn-primary {
    background: #007bff;
    color: white;
    border: 1px solid #007bff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: inherit;
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-family: inherit;
}

.btn-secondary:hover {
    background: #6c757d;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-family: inherit;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

.confirmation-modal .modal-content {
    max-width: 400px;
}

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

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #dee2e6;
    color: #333;
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

/* Archive Modal Content */
#modal-archive-content {
    max-width: 600px;
}

.modal-archive-field {
    margin-bottom: 1.5rem;
}

.modal-archive-field:last-child {
    margin-bottom: 0;
}

.modal-field-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.modal-field-value {
    color: #666;
    line-height: 1.4;
}

.modal-field-link {
    color: #007bff;
    text-decoration: none;
    word-break: break-all;
}

.modal-field-link:hover {
    text-decoration: underline;
}

/* Success/Error Messages */
.message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-page-container {
        flex-direction: column;
        gap: 1rem;
        margin: 1rem auto;
    }

    .admin-sidebar {
        flex: none;
        width: 100%;
    }

    .admin-content {
        width: 100%;
    }

    .admin-form {
        max-width: 100%;
        margin: 0;
    }

    .admin-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.25rem;
    }

    .admin-nav-btn {
        min-width: 150px;
        flex-shrink: 0;
        padding: 0.75rem;
        font-size: 0.8rem;
    }

    .archive-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .archive-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .archive-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

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

    .modal-content {
        max-width: 95vw;
        margin: 1rem;
    }

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

@media (max-width: 480px) {
    .admin-form {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .archive-item {
        padding: 1rem;
    }

    .admin-nav-btn {
        min-width: 120px;
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .section-header h1 {
        font-size: 1.5rem;
    }
} 