/**
 * Public styles for File Checks plugin
 */

/* General styles */
.fc-public-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.fc-public-header {
    text-align: center;
    margin-bottom: 30px;
}

.fc-public-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.fc-public-subtitle {
    color: #666;
    font-size: 16px;
}

/* Registration form */
.fc-registration-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fc-form-group {
    margin-bottom: 20px;
}

.fc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.fc-form-group input,
.fc-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.fc-form-group input:focus,
.fc-form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.fc-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

.fc-submit-btn {
    width: 100%;
    padding: 15px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.fc-submit-btn:hover {
    background: #005a87;
}

.fc-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Messages */
.fc-form-messages {
    margin-top: 20px;
}

.fc-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    margin-bottom: 10px;
}

.fc-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin-bottom: 10px;
}

.fc-error p {
    margin: 0 0 5px 0;
}

.fc-error p:last-child {
    margin-bottom: 0;
}

/* Public notices */
.fc-public-notices {
    margin-bottom: 20px;
}

.fc-notice {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    border-left: 4px solid;
}

.fc-notice-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.fc-notice-error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.fc-notice-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.fc-notice-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

/* Dashboard */
.fc-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.fc-dashboard-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.fc-dashboard-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.fc-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.fc-stat-item:last-child {
    border-bottom: none;
}

.fc-stat-label {
    color: #666;
}

.fc-stat-value {
    font-weight: bold;
    color: #0073aa;
}

/* Requests list */
.fc-requests-list {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.fc-requests-header {
    background: #f9f9f9;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.fc-requests-title {
    margin: 0;
    font-size: 18px;
}

.fc-request-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.fc-request-item:hover {
    background: #f9f9f9;
}

.fc-request-item:last-child {
    border-bottom: none;
}

.fc-request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.fc-request-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.fc-request-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.fc-request-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.fc-action-btn {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.fc-action-btn:hover {
    background: #005a87;
    color: white;
}

.fc-action-btn-primary {
    background: #0073aa;
}

.fc-action-btn-success {
    background: #28a745;
}

.fc-action-btn-warning {
    background: #ffc107;
    color: #333;
}

.fc-action-btn-danger {
    background: #dc3545;
}

/* Status badges */
.fc-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.fc-status-new {
    background: #e3f2fd;
    color: #1976d2;
}

.fc-status-in-progress {
    background: #fff3e0;
    color: #f57c00;
}

.fc-status-ready {
    background: #e8f5e8;
    color: #388e3c;
}

.fc-status-completed {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Work type badges */
.fc-work-type-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #f0f0f0;
    color: #333;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

/* File upload */
.fc-file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
    transition: all 0.3s ease;
    cursor: pointer;
}

.fc-file-upload-area:hover,
.fc-file-upload-area.dragover {
    border-color: #0073aa;
    background: #e3f2fd;
}

.fc-file-upload-icon {
    font-size: 48px;
    color: #666;
    margin-bottom: 15px;
}

.fc-file-upload-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.fc-file-upload-hint {
    font-size: 14px;
    color: #999;
}

.fc-file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-top: 15px;
}

.fc-file-icon {
    font-size: 24px;
}

.fc-file-details {
    flex: 1;
}

.fc-file-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.fc-file-size {
    color: #666;
    font-size: 14px;
}

.fc-file-remove {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
}

.fc-file-remove:hover {
    background: #c82333;
}

/* Progress bars */
.fc-progress {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.fc-progress-bar {
    height: 100%;
    background: #0073aa;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

/* Loading states */
.fc-loading {
    opacity: 0.6;
    pointer-events: none;
}

.fc-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: fc-spin 1s linear infinite;
}

@keyframes fc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .fc-public-container {
        padding: 10px;
    }
    
    .fc-registration-form {
        padding: 20px;
    }
    
    .fc-dashboard {
        grid-template-columns: 1fr;
    }
    
    .fc-request-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fc-request-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .fc-request-actions {
        flex-direction: column;
    }
    
    .fc-action-btn {
        text-align: center;
    }
}

/* Print styles */
@media print {
    .fc-action-btn,
    .fc-submit-btn,
    .fc-file-upload-area {
        display: none !important;
    }
    
    .fc-request-item {
        border: 1px solid #000;
        margin-bottom: 10px;
        page-break-inside: avoid;
    }
}
