/* CPD Course Verifier - Frontend Styles */

.cpd-verify-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cpd-verify-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.cpd-verify-header h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
}

.cpd-verify-header p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.cpd-verify-form {
    margin-bottom: 30px;
}

.cpd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.cpd-form-field {
    display: flex;
    flex-direction: column;
}

.cpd-form-field label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.cpd-form-field input[type="text"] {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.cpd-form-field input[type="text"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.cpd-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.cpd-submit-btn,
.cpd-reset-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.cpd-submit-btn {
    background: #2271b1;
    color: #ffffff;
}

.cpd-submit-btn:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.cpd-reset-btn {
    background: #f0f0f0;
    color: #333;
}

.cpd-reset-btn:hover {
    background: #e0e0e0;
}

.cpd-loading {
    text-align: center;
    padding: 40px 20px;
}

.cpd-spinner {
    margin: 0 auto 15px;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    animation: cpd-spin 1s linear infinite;
}

@keyframes cpd-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cpd-loading p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.cpd-results {
    margin-top: 30px;
}

.cpd-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
}

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

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

.cpd-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.cpd-results-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.cpd-results-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cpd-results-table thead {
    background: #28a745;
    color: #ffffff;
}

.cpd-results-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cpd-results-table th:nth-child(1) { width: 12%; } /* Provider ID */
.cpd-results-table th:nth-child(2) { width: 22%; } /* Provider Name */
.cpd-results-table th:nth-child(3) { width: 12%; } /* Activity ID */
.cpd-results-table th:nth-child(4) { width: 40%; } /* Event Name */
.cpd-results-table th:nth-child(5) { width: 14%; } /* Status */

.cpd-results-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.cpd-results-table tbody tr {
    transition: background-color 0.2s ease;
}

.cpd-results-table tbody tr:hover {
    background-color: #f8f9fa;
}

.cpd-results-table tbody tr:last-child td {
    border-bottom: none;
}

.cpd-verified-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #28a745;
    color: #ffffff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .cpd-verify-container {
        padding: 20px;
        margin: 15px;
    }
    
    .cpd-verify-header h2 {
        font-size: 24px;
    }
    
    .cpd-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cpd-form-actions {
        flex-direction: column;
    }
    
    .cpd-submit-btn,
    .cpd-reset-btn {
        width: 100%;
    }
    
    .cpd-results-table {
        font-size: 13px;
    }
    
    .cpd-results-table th,
    .cpd-results-table td {
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .cpd-verify-container {
        padding: 15px;
        margin: 10px;
    }
    
    .cpd-verify-header h2 {
        font-size: 20px;
    }
    
    .cpd-results-table th,
    .cpd-results-table td {
        padding: 8px;
        font-size: 12px;
    }
}
