:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --success-color: #16a34a;
    --error-color: #dc2626;
    --warning-color: #ea580c;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--neutral-800);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    margin-bottom: 48px;
}

.logo-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 32px;
    display: inline-block;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-icon {
    font-size: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 4px;
}

.logo-text p {
    font-size: 14px;
    color: var(--neutral-600);
    font-weight: 500;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.search-section {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    text-align: center;
}

.search-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 8px;
}

.subtitle {
    color: var(--neutral-600);
    font-size: 16px;
    margin-bottom: 32px;
}

.search-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 12px;
    background: var(--neutral-100);
    border-radius: var(--border-radius);
    padding: 8px;
    box-shadow: var(--shadow-sm);
}

.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 20px;
    font-size: 16px;
    color: var(--neutral-800);
    border-radius: 8px;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.input-group input::placeholder {
    color: var(--neutral-600);
}

.input-group button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    min-width: 120px;
}

.input-group button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.input-group button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-loader.show {
    display: inline-block;
}

.btn-text.hide {
    display: none;
}

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

.result-section {
    margin-top: 24px;
}

.result-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-card {
    border-left: 4px solid var(--success-color);
}

.error-card {
    border-left: 4px solid var(--error-color);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.status-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.success-icon {
    background: rgba(22, 163, 74, 0.1);
    color: var(--success-color);
}

.error-icon {
    background: rgba(220, 38, 38, 0.1);
    color: var(--error-color);
}

.result-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--neutral-800);
}

.result-subtitle {
    font-size: 14px;
    color: var(--neutral-600);
    margin-top: 4px;
}

.certificate-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-item {
    background: var(--neutral-100);
    padding: 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.detail-item:hover {
    background: var(--neutral-200);
    transform: translateY(-2px);
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--neutral-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.detail-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--neutral-800);
}

.error-message {
    text-align: center;
    color: var(--error-color);
    font-size: 16px;
    margin-bottom: 16px;
}

.footer {
    text-align: center;
    margin-top: 48px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .logo {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .logo-container {
        padding: 24px;
    }
    
    .search-section {
        padding: 24px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .input-group button {
        padding: 16px;
    }
    
    .certificate-details {
        grid-template-columns: 1fr;
    }
    
    .result-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 24px;
    }
    
    .search-section h2 {
        font-size: 24px;
    }
    
    .result-title {
        font-size: 20px;
    }
}