/* Umar CV Public - Professional & Modern Design */
.umar-cv-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.umar-cv-search-form {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.umar-cv-search-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.umar-cv-search-form label {
    display: block;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.umar-cv-input-group {
    display: flex;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.umar-cv-input-group input {
    flex: 1;
    padding: 20px 24px;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: #2d3748;
}

.umar-cv-input-group input:focus {
    outline: none;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.umar-cv-input-group input::placeholder {
    color: #a0aec0;
    font-style: italic;
}

.umar-cv-input-group button {
    padding: 20px 32px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(72, 187, 120, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.umar-cv-input-group button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(72, 187, 120, 0.5);
}

.umar-cv-input-group button:active {
    transform: translateY(-1px);
}

/* Results Section */
.umar-cv-results {
    max-width: 1000px;
    margin: 40px auto;
}

.umar-cv-results h3 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 32px;
    padding: 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    border-left: 6px solid #667eea;
}

/* Certificate Cards */
.umar-cv-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.umar-cv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.umar-cv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.umar-cv-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.umar-cv-ref {
    margin-bottom: 8px;
}

.umar-cv-ref code {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 8px 16px;
    border-radius: 12px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    border: 2px solid #e2e8f0;
    display: inline-block;
}

.umar-cv-name {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.umar-cv-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.umar-cv-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.umar-cv-badge:nth-child(3n+1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.umar-cv-badge:nth-child(3n+2) {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.umar-cv-badge:nth-child(3n+3) {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

/* Information Grid */
.umar-cv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 24px 0;
    padding: 24px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.umar-cv-grid > div {
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.umar-cv-grid > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.umar-cv-grid strong {
    color: #2d3748;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #667eea;
}

.umar-cv-remarks {
    margin: 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 16px;
    border-left: 4px solid #f59e0b;
    color: #92400e;
    font-style: italic;
}

.umar-cv-remarks strong {
    color: #92400e;
    font-weight: 600;
}

/* Verification Section */
.umar-cv-verify {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #f0fff4 0%, #dcfce7 100%);
    border-radius: 16px;
    border: 1px solid #bbf7d0;
    flex-wrap: wrap;
}

.umar-cv-verify .umar-cv-button {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.umar-cv-verify .umar-cv-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
    color: white;
    text-decoration: none;
}

/* Actions */
.umar-cv-actions {
    text-align: center;
    margin-top: 32px;
    padding: 24px;
}

.umar-cv-link {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(113, 128, 150, 0.3);
}

.umar-cv-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(113, 128, 150, 0.4);
    color: white;
    text-decoration: none;
}

/* Not Found State */
.umar-cv-results h3:contains('No matching records found') {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    border-left-color: #f56565;
    color: #742a2a;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .umar-cv-wrapper {
        margin: 20px auto;
        padding: 0 16px;
    }
    
    .umar-cv-search-form {
        padding: 32px 24px;
        border-radius: 16px;
        margin: 0 16px;
    }
    
    .umar-cv-search-form label {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .umar-cv-input-group {
        flex-direction: column;
        gap: 12px;
        max-width: 100%;
    }
    
    .umar-cv-input-group input,
    .umar-cv-input-group button {
        padding: 16px 20px;
        font-size: 16px;
        width: 100%;
    }
    
    .umar-cv-input-group button {
        min-width: auto;
    }
    
    .umar-cv-card {
        padding: 24px 20px;
        margin-bottom: 20px;
        border-radius: 16px;
    }
    
    .umar-cv-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .umar-cv-name {
        font-size: 20px;
    }
    
    .umar-cv-badges {
        justify-content: flex-start;
        width: 100%;
    }
    
    .umar-cv-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
        margin: 20px 0;
    }
    
    .umar-cv-grid > div {
        padding: 16px 12px;
    }
    
    .umar-cv-verify {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px;
    }
    
    .umar-cv-verify .umar-cv-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .umar-cv-results h3 {
        font-size: 24px;
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .umar-cv-remarks {
        padding: 16px;
        margin: 20px 0;
    }
    
    .umar-cv-actions {
        padding: 20px;
        margin-top: 24px;
    }
    
    .umar-cv-link {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .umar-cv-wrapper {
        margin: 16px auto;
        padding: 0 12px;
    }
    
    .umar-cv-search-form {
        padding: 24px 20px;
        margin: 0 12px;
    }
    
    .umar-cv-search-form label {
        font-size: 18px;
    }
    
    .umar-cv-card {
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .umar-cv-grid {
        padding: 16px;
        gap: 8px;
    }
    
    .umar-cv-grid > div {
        padding: 12px 10px;
    }
    
    .umar-cv-name {
        font-size: 18px;
    }
    
    .umar-cv-badge {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .umar-cv-verify {
        padding: 16px;
    }
    
    .umar-cv-verify .umar-cv-button {
        padding: 14px 24px;
        font-size: 14px;
    }
}

/* Tablet Devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .umar-cv-wrapper {
        margin: 30px auto;
        padding: 0 24px;
    }
    
    .umar-cv-search-form {
        padding: 36px 32px;
    }
    
    .umar-cv-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .umar-cv-card {
        padding: 28px;
    }
}

/* Large Devices */
@media (min-width: 1025px) {
    .umar-cv-wrapper {
        margin: 50px auto;
    }
    
    .umar-cv-search-form {
        padding: 48px;
    }
    
    .umar-cv-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
}

/* Loading Animation */
.umar-cv-loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
}

.umar-cv-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
}

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

/* Success Animation */
.umar-cv-card {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Focus States */
.umar-cv-input-group input:focus,
.umar-cv-input-group button:focus,
.umar-cv-verify .umar-cv-button:focus,
.umar-cv-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .umar-cv-card:hover {
        transform: none;
    }
    
    .umar-cv-grid > div:hover {
        transform: none;
    }
    
    .umar-cv-verify .umar-cv-button:hover {
        transform: none;
    }
    
    .umar-cv-link:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .umar-cv-input-group button,
    .umar-cv-verify .umar-cv-button,
    .umar-cv-link {
        min-height: 44px;
    }
    
    .umar-cv-input-group input {
        min-height: 44px;
    }
}

/* Print Styles */
@media print {
    .umar-cv-search-form,
    .umar-cv-actions {
        display: none;
    }
    
    .umar-cv-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .umar-cv-grid {
        background: white !important;
        border: 1px solid #000 !important;
    }
}