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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(120deg, #1e3c72, #2a5298);
    color: white;
    padding: 30px;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
}

.logo h1 {
    font-size: 2.5em;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    margin-top: 5px;
}

main {
    padding: 30px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.card-header {
    background: linear-gradient(120deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
}

.card-header h2 {
    font-size: 1.8em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1em;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.help-text {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 8px;
    display: none;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(120deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(120deg, #28a745, #20c997);
    color: white;
}

.btn-info {
    background: linear-gradient(120deg, #17a2b8, #138496);
    color: white;
}

.loading {
    text-align: center;
    padding: 30px;
    color: #667eea;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.result-container {
    margin-top: 30px;
    border: 2px solid #667eea;
    border-radius: 10px;
    overflow: hidden;
}

.result-header {
    background: linear-gradient(120deg, #667eea, #764ba2);
    color: white;
    padding: 15px 20px;
}

.result-header h3 {
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-body {
    padding: 25px;
    background: #f8f9fa;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.1em;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item label {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-item span {
    color: #28a745;
    font-weight: 600;
}

.result-footer {
    padding: 20px;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: linear-gradient(120deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-card i {
    font-size: 2em;
    min-width: 50px;
}

.info-card h4 {
    margin-bottom: 8px;
    font-size: 1.2em;
}

.info-card p {
    opacity: 0.9;
    line-height: 1.6;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

footer p {
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        margin: 10px;
    }

    .logo h1 {
        font-size: 1.8em;
    }

    .card-body {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .result-footer {
        flex-direction: column;
    }
}

@media print {
    body {
        background: white;
    }

    .container {
        box-shadow: none;
        border-radius: 0;
    }

    .form-actions, .info-section, footer {
        display: none;
    }

    .result-container {
        border: none;
    }
}