/* =====================================================
   ISF 10+2 Simulator - Professional Styles
   Aduanalibre.com Educational Tool
   ===================================================== */

/* Global Styles */
:root {
    --primary-color: #0066cc;
    --secondary-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
}

* {
    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-bottom: 60px;
}

/* Header */
.site-header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.logo i {
    color: #ffc107;
}

.tagline {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Disclaimer Banner */
.disclaimer-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 15px 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.disclaimer-banner i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Form Card */
.form-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.card-header {
    padding: 25px 30px;
}

.card-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.card-body {
    padding: 40px;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
}

.section-title i {
    margin-right: 10px;
}

/* ISF Elements */
.isf-element {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.isf-element:hover {
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.15);
    transform: translateX(5px);
}

.isf-element.flexible {
    border-left-color: var(--warning-color);
    background: #fffbf0;
}

.isf-element.timing-flexible {
    border-left-color: #17a2b8;
    background: #f0f9ff;
}

.element-number {
    color: var(--dark-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.element-number .badge {
    font-size: 0.7rem;
    margin-left: 10px;
    vertical-align: middle;
}

/* Form Controls */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.required {
    color: #dc3545;
    font-weight: 700;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

.form-control:invalid:not(:placeholder-shown) {
    border-color: var(--danger-color);
}

.form-control:valid:not(:placeholder-shown) {
    border-color: var(--secondary-color);
}

/* Help Icons */
.help-icon {
    color: var(--primary-color);
    cursor: pointer;
    margin-left: 5px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.help-icon:hover {
    color: #0052a3;
    transform: scale(1.2);
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-outline-secondary:hover {
    transform: translateY(-2px);
}

/* Download Options Grid */
.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.download-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.download-card.available:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.2);
    transform: translateY(-5px);
}

.download-card.coming-soon {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #6c757d;
    position: relative;
    overflow: hidden;
}

.download-card.coming-soon::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.format-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
}

.download-card h4 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.download-card p {
    color: #6c757d;
    margin-bottom: 20px;
    min-height: 50px;
}

.btn-download {
    background: linear-gradient(135deg, #0066cc 0%, #004a99 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

.btn-notify {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-notify:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #333;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: block;
}

.modal-dialog {
    margin: 5% auto;
}

.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    border: none;
}

.modal-title {
    font-weight: 700;
}

.btn-close {
    filter: brightness(0) invert(1);
}

/* Coming Soon Modal Specific */
.rocket-animation {
    font-size: 80px;
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.features-preview {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.95rem;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    margin-right: 12px;
    font-size: 1.1rem;
}

.waitlist-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 25px 0;
}

.waitlist-box h4 {
    color: white;
    margin-top: 0;
    font-weight: 700;
}

.waitlist-box input,
.waitlist-box select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
}

.btn-join-waitlist {
    background: white;
    color: #667eea;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-join-waitlist:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Footer */
.site-footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    padding: 30px 0;
    margin-top: 60px;
}

.site-footer p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-body {
        padding: 20px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .download-options {
        grid-template-columns: 1fr;
    }
    
    .modal-dialog {
        margin: 10px;
    }
}

/* Utility Classes */
.text-muted {
    color: #6c757d !important;
}

.text-center {
    text-align: center;
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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