/* Certificate Lookup Styles */

.tcc-lookup-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.tcc-lookup-header {
    text-align: center;
    margin-bottom: 30px;
}

.tcc-lookup-title {
    font-size: 28px;
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 700;
}

.tcc-lookup-subtitle {
    color: #64748b;
    font-size: 15px;
}

/* Form Styles */
.tcc-lookup-form {
    margin-bottom: 30px;
}

.tcc-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tcc-input {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
}

.tcc-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.tcc-input::placeholder {
    color: #94a3b8;
}

.tcc-button {
    /* padding: 14px 28px; */
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #107d5d 0%, #21ac96 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tcc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.tcc-button:active {
    transform: translateY(0);
}

.tcc-spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Result Card Styles */
.tcc-certificate-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.tcc-certificate-card.valid {
    border-top: 4px solid #10b981;
}

.tcc-certificate-card.expired {
    border-top: 4px solid #ef4444;
}

.tcc-certificate-status {
    padding: 15px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tcc-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tcc-status-badge.valid {
    background: #d1fae5;
    color: #065f46;
}

.tcc-status-badge.expired {
    background: #fee2e2;
    color: #991b1b;
}

.tcc-certificate-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.tcc-student-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: cover;
}

.tcc-header-info {
    flex: 1;
}

.tcc-student-name {
    font-size: 22px;
    color: #1e293b;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.tcc-course-name {
    font-size: 15px;
    color: #475569;
    margin: 0;
}

/* Details */
.tcc-certificate-details {
    padding: 20px 25px;
}

.tcc-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.tcc-detail-row:last-child {
    border-bottom: none;
}

.tcc-label {
    color: #64748b;
    font-size: 14px;
}

.tcc-value {
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    text-align: right;
}

.tcc-description .tcc-value {
    max-width: 300px;
    text-align: right;
}

/* Action Buttons */
.tcc-certificate-actions {
    display: flex;
    gap: 10px;
    padding: 20px 25px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.tcc-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tcc-btn-view {
    background: #f1f5f9;
    color: #475569;
}

.tcc-btn-view:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.tcc-btn-download {
    background: #3b82f6;
    color: #fff;
}

.tcc-btn-download:hover {
    background: #2563eb;
}

/* Error Styles */
.tcc-error-container {
    padding: 20px;
}

.tcc-error-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #991b1b;
}

.tcc-error-icon {
    font-size: 20px;
}

.tcc-error-text {
    font-size: 15px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 600px) {
    .tcc-lookup-container {
        padding: 15px;
        margin: 20px auto;
    }
    
    .tcc-lookup-title {
        font-size: 22px;
    }
    
    .tcc-input-group {
        flex-direction: column;
    }
    
    .tcc-button {
        width: 100%;
        justify-content: center;
    }
    
    .tcc-certificate-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tcc-certificate-actions {
        flex-direction: column;
    }
    
    .tcc-detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .tcc-value {
        text-align: left;
    }
    
    .tcc-description .tcc-value {
        max-width: 100%;
        text-align: left;
    }
}
