/* archives.css - Styles for the Admin Panel Archives section */

/* Archives section dark theme */
.archives-section {
    background-color: #2a2a4a;
    padding: 30px;
    border-radius: 15px;
    color: #ffffff;
}

.archives-header {
    margin-bottom: 30px;
    text-align: center;
}

.archives-header h2 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 2em;
}

.archives-description {
    color: #e0e0e0;
    font-size: 1.1em;
    margin: 0;
}

.archives-filters {
    background: #3a3a5a;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #4a4a6a;
}

.filter-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: end;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.filter-group label {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9em;
}

.filter-input {
    padding: 10px;
    border: 2px solid #5a5a7a;
    border-radius: 5px;
    font-size: 1em;
    width: 200px;
    transition: border-color 0.3s ease;
    background-color: #4a4a6a;
    color: #ffffff;
}

#archives-date-filter {
    padding-right: 30px;
}

.filter-input:focus {
    outline: none;
    border-color: #007bff;
    background-color: #5a5a7a;
}

.filter-input::placeholder {
    color: #b0b0c0;
}

.clear-filter-btn {
    position: absolute;
    right: 10px;
    top: 32px;
    background: none;
    border: none;
    color: #b0b0c0;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.clear-filter-btn:hover {
    color: #ff6b6b;
}

.clear-all-filters-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.clear-all-filters-btn:hover {
    background: #5a6268;
}

.archives-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #5a5a7a;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-label {
    font-weight: 600;
    color: #ffffff;
}

.stat-value {
    background: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.export-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.export-btn:hover {
    background: #218838;
}

.danger-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.danger-btn:hover {
    background: #c82333;
}

.archives-list {
    display: grid;
    gap: 20px;
}

.archive-card {
    background: #3a3a5a;
    border: 1px solid #4a4a6a;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #ffffff;
}

.archive-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #5a5a7a;
}

.archive-timestamp {
    background: #17a2b8;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.archive-id {
    color: #b0b0c0;
    font-size: 0.8em;
    font-family: monospace;
}

.archive-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.archive-detail {
    display: flex;
    align-items: center;
    gap: 2px;
}

.archive-detail i {
    color: #007bff;
    width: 15px;
    text-align: center;
}

.archive-detail .label {
    font-weight: 600;
    color: #ffffff;
    min-width: 45px;
}

.archive-detail .value {
    color: #e0e0e0;
    flex: 1;
}

.no-archives-message {
    text-align: center;
    padding: 60px 20px;
    color: #b0b0c0;
}

.no-archives-message i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.3;
    color: #b0b0c0;
}

.no-archives-message h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #ffffff;
}

.no-archives-message p {
    font-size: 1.1em;
    margin: 0;
    color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-input {
        width: auto;
    }

    .archives-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .stat-item {
        justify-content: space-between;
    }

    .archive-details {
        grid-template-columns: 1fr;
    }
}

/* Status indicators for submission attempts */
.archive-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-failed {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-unknown {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.error-detail {
    background-color: #4a4a6a;
    border-left: 4px solid #dc3545;
    padding: 10px;
    margin-top: 10px;
    border-radius: 0 5px 5px 0;
}

.error-message {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #ff9999 !important;
    word-break: break-word;
}

.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #5a5a7a;
}

.archive-timestamp {
    font-size: 0.9em;
    color: #b0b0c0;
}

.archive-id {
    font-size: 0.8em;
    color: #9090a0;
    font-family: 'Courier New', monospace;
}
