:root {
    --primary-color: #22376e; /* Dark blue matching screenshot */
    --primary-hover: #17264a;
    --bg-color: #f1f4f8; /* Light grayish-blue background */
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #737373;
    --border-color: #e5e7eb;
    --font-family: 'Prompt', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 4rem 1rem;
}

.page-container {
    width: 100%;
    max-width: 900px;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.cap-emoji {
    font-size: 3.5rem;
    line-height: 1;
    display: block;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Search Card */
.search-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px -5px rgba(34, 55, 110, 0.1), 0 4px 10px -3px rgba(34, 55, 110, 0.05);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #4a6fa5, var(--primary-color));
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-row {
    display: flex;
    gap: 1rem;
}

@media (max-width: 600px) {
    .input-row {
        flex-direction: column;
    }
}

#searchInput {
    flex-grow: 1;
    padding: 1rem 1.2rem;
    font-size: 1.05rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: #fafbfc;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(34, 55, 110, 0.1);
}

.btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-family);
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(34, 55, 110, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 55, 110, 0.4);
}
.btn-primary:active {
    transform: translateY(1px);
}

.search-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 3rem;
}

/* Results Section */
.results-section {
    margin-top: 2rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Certificate Card */
.cer-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -5px rgba(34, 55, 110, 0.15);
    border-color: rgba(34, 55, 110, 0.2);
}

.cer-card:hover::before {
    opacity: 1;
}

.cer-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.cer-role, .cer-team {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.cer-role i, .cer-team i {
    width: 20px;
    color: var(--primary-color);
}

.cer-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.btn-secondary, .btn-outline {
    flex: 1;
    padding: 0.8rem;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    box-shadow: 0 2px 8px rgba(34, 55, 110, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(34, 55, 110, 0.35);
}

.btn-outline {
    background-color: #f8fafc;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--card-bg);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

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

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.no-results i {
    color: #ccc;
    margin-bottom: 1rem;
}

.no-results h3 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
