.cert-container {
    max-width: 600px;
    margin: 40px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cert-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    text-align: center;
}

.cert-card h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 28px;
}

.cert-card p {
    color: #7f8c8d;
    margin-bottom: 25px;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
}

#search-btn {
    width: 100%;
    background: #3498db;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

#search-btn:hover {
    background: #2980b9;
}

#search-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

#cert-results {
    margin-top: 30px;
}

.results-list {
    text-align: left;
}

.cert-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 5px solid #27ae60;
}

.cert-item h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 18px;
}

.cert-item p {
    margin: 5px 0;
    color: #34495e;
}

.cert-actions {
    margin-top: 15px;
}

.download-btn {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #219150;
    color: white;
}

.error-msg {
    color: #e74c3c;
    font-weight: 600;
    background: #fdf2f2;
    padding: 10px;
    border-radius: 5px;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

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

.refresh-note {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 15px;
    font-style: italic;
}

.cert-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #95a5a6;
}

.cert-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.cert-footer a:hover {
    text-decoration: underline;
}
