/* static/style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
}

.card {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c3e50;
}

input[type="text"], input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 25px 0;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 120px;
}

#btn-certificar { background: #3498db; color: white; }
#btn-verificar { background: #2ecc71; color: white; }
#btn-guardar { background: #9b59b6; color: white; }

button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.results {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

.results.success { border-left: 4px solid #27ae60; }
.results.error { border-left: 4px solid #e74c3c; background: #fdf2f2; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}
