/**
 * FileTrack Registry - Public Styles
 */

/* Container */
.filetrack-public-tracking {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.filetrack-tracking-title {
    text-align: center;
    margin-bottom: 30px;
    color: #1d2327;
}

/* Form styles */
.filetrack-tracking-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filetrack-form-group {
    margin-bottom: 20px;
}

.filetrack-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
}

.filetrack-form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.filetrack-form-group input[type="text"]:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.filetrack-form-hint {
    margin-top: 5px;
    font-size: 13px;
    color: #646970;
}

/* Buttons */
.filetrack-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.filetrack-btn-primary {
    background: #2271b1;
    color: #fff;
}

.filetrack-btn-primary:hover {
    background: #135e96;
    color: #fff;
}

.filetrack-btn-secondary {
    background: #f0f0f1;
    color: #1d2327;
}

.filetrack-btn-secondary:hover {
    background: #dcdcde;
    color: #1d2327;
}

/* Error message */
.filetrack-error {
    background: #fcf0f1;
    border: 1px solid #d63638;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
    color: #8b0000;
}

/* Tracking result */
.filetrack-tracking-result {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Case header */
.filetrack-case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f1;
    margin-bottom: 20px;
}

.filetrack-case-reference {
    margin: 0;
    font-size: 24px;
    color: #1d2327;
}

/* Status badges */
.filetrack-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.filetrack-status-received {
    background: #e5f5fc;
    color: #0a4b78;
}

.filetrack-status-in_progress {
    background: #fcf9e9;
    color: #7d5c00;
}

.filetrack-status-completed {
    background: #edfaef;
    color: #006400;
}

.filetrack-status-closed {
    background: #f0f0f1;
    color: #646970;
}

/* Case details */
.filetrack-case-details {
    margin-bottom: 30px;
}

.filetrack-detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f1;
}

.filetrack-detail-row:last-child {
    border-bottom: none;
}

.filetrack-detail-label {
    width: 150px;
    color: #646970;
    flex-shrink: 0;
}

.filetrack-detail-value {
    flex: 1;
    color: #1d2327;
}

/* Feedback section */
.filetrack-feedback {
    background: #edfaef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.filetrack-feedback h3 {
    margin: 0 0 10px;
    color: #006400;
}

.filetrack-feedback-content {
    color: #1d2327;
    line-height: 1.6;
}

/* Timeline section */
.filetrack-timeline-section {
    margin-bottom: 30px;
}

.filetrack-timeline-section h3 {
    margin: 0 0 20px;
    color: #1d2327;
}

.filetrack-public-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
}

.filetrack-public-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
}

.filetrack-timeline-item {
    position: relative;
    padding-left: 35px;
    padding-bottom: 25px;
}

.filetrack-timeline-item:last-child {
    padding-bottom: 0;
}

.filetrack-timeline-marker {
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #2271b1;
}

.filetrack-event-created .filetrack-timeline-marker {
    border-color: #00a32a;
    background: #00a32a;
}

.filetrack-event-sent .filetrack-timeline-marker {
    border-color: #2271b1;
}

.filetrack-event-received .filetrack-timeline-marker {
    border-color: #135e96;
    background: #135e96;
}

.filetrack-event-completed .filetrack-timeline-marker {
    border-color: #00a32a;
    background: #00a32a;
}

.filetrack-timeline-content {
    background: #f6f7f7;
    padding: 15px;
    border-radius: 6px;
}

.filetrack-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.filetrack-event-type {
    font-weight: 600;
    color: #1d2327;
}

.filetrack-event-time {
    font-size: 13px;
    color: #646970;
}

.filetrack-event-message {
    color: #3c434a;
    line-height: 1.5;
}

.filetrack-event-office {
    margin-top: 8px;
    font-size: 13px;
    color: #646970;
}

/* Transfers table */
.filetrack-transfers-section {
    margin-bottom: 30px;
}

.filetrack-transfers-section h3 {
    margin: 0 0 15px;
    color: #1d2327;
}

.filetrack-transfers-table {
    width: 100%;
    border-collapse: collapse;
}

.filetrack-transfers-table th,
.filetrack-transfers-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f1;
}

.filetrack-transfers-table th {
    background: #f6f7f7;
    font-weight: 600;
    color: #1d2327;
}

.filetrack-transfers-table td {
    color: #3c434a;
}

.filetrack-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #fcf9e9;
    color: #7d5c00;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 8px;
}

/* Pending notice */
.filetrack-pending-notice {
    background: #fcf9e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.filetrack-pending-notice p {
    margin: 0;
    color: #7d5c00;
}

/* Track again */
.filetrack-track-again {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f1;
}

/* Responsive */
@media (max-width: 600px) {
    .filetrack-public-tracking {
        padding: 15px;
    }

    .filetrack-tracking-form,
    .filetrack-tracking-result {
        padding: 20px;
    }

    .filetrack-case-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .filetrack-case-reference {
        font-size: 20px;
    }

    .filetrack-detail-row {
        flex-direction: column;
    }

    .filetrack-detail-label {
        width: auto;
        margin-bottom: 5px;
    }

    .filetrack-timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .filetrack-transfers-table {
        font-size: 14px;
    }

    .filetrack-transfers-table th,
    .filetrack-transfers-table td {
        padding: 8px;
    }
}
