/* Django-specific styles for ICAIS Registration */

/* Messages */
.messages-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    position: relative;
    animation: slideInRight 0.3s ease-out;
}

.alert-success {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #065F46;
    border: 1px solid #10B981;
}

.alert-error {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: #991B1B;
    border: 1px solid #EF4444;
}

.alert-warning {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #92400E;
    border: 1px solid #F59E0B;
}

.alert-info {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: #1E40AF;
    border: 1px solid #3B82F6;
}

.alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
    border-radius: 0;
    transition: background-color 0.2s ease;
}

.alert-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Form styles */
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 0;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #FAFAFA;
}

.form-control:focus {
    outline: none;
    border-color: #0F132E;
    box-shadow: 0 0 0 3px rgba(15, 19, 46, 0.1);
    background: white;
}

.form-control:invalid {
    border-color: #EF4444;
}

.form-control:valid {
    border-color: #10B981;
}

/* Error messages */
.error-messages {
    margin-top: 0.5rem;
}

.error {
    color: #EF4444;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.25rem;
}

/* Form groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.form-help {
    color: #6B7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Buttons */
.btn-primary {
    background: #BF8C3C;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 19, 46, 0.4);
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background: transparent;
    color: #0F132E;
    padding: 1rem 2rem;
    border: 2px solid #0F132E;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #0F132E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 19, 46, 0.3);
    text-decoration: none;
}

/* Main content spacing */
.main-content {
    margin-top: 80px; /* Account for fixed navbar */
    min-height: calc(100vh - 80px);
}

/* Fix hero section spacing to eliminate gap with navbar */
.hero {
    margin-top: -80px; /* Offset the main-content margin */
    padding-top: 230px; /* 150px original + 80px offset */
    padding-bottom: 100px;
}

/* Responsive messages */
@media (max-width: 768px) {
    .messages-container {
        position: fixed;
        top: 70px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #0F132E;
    border-top: 2px solid transparent;
    border-radius: 0;
    animation: spin 1s linear infinite;
}

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

/* Status indicators */
.status-paid {
    color: #10B981;
}

.status-unpaid {
    color: #F59E0B;
}

.status-cancelled {
    color: #EF4444;
}

/* Table styles */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 19, 46, 0.1);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.table th {
    background: #0F132E;
    color: white;
    font-weight: 600;
}

.table tbody tr:hover {
    background: #F9FAFB;
}

/* Card styles */
.card {
    background: white;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(15, 19, 46, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 19, 46, 0.15);
}

.card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #F9FAFB, #F3F4F6);
    border-bottom: 1px solid #E5E7EB;
}

.card-body {
    padding: 1.5rem;
}

/* Language Switcher */
.language-switcher {
    margin-left: 1rem;
}

.language-form {
    display: inline-block;
}

.language-select {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    padding: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-select:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-select option {
    background: #0F132E;
    color: white;
}

/* Utility classes */
.text-center {
    text-align: center;
}

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

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

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

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

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* Payment note highlighting styles */
.payment-remarks-center {
    margin: 2rem auto;
    padding: 0;
    background: transparent;
    border: none;
    max-width: 600px;
    text-align: center;
}

.payment-note-highlight {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border: 2px solid #F59E0B;
    border-radius: 0;
    padding: 12px 16px;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.payment-note-highlight i {
    color: #D97706;
    font-size: 1.1rem;
}

.payment-note-highlight strong {
    color: #92400E;
    font-size: 1rem;
}

.payment-remark-container {
    display: flex;
    align-items: center;
    background: #1F2937;
    border: 2px solid #374151;
    border-radius: 0;
    padding: 16px;
    margin: 8px 0 16px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.payment-remark-text {
    background: transparent;
    color: #F9FAFB;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
    word-break: break-all;
    flex: 1;
    padding-right: 12px;
}

.copy-button {
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 0;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 36px;
}

.copy-button:hover {
    background: #2563EB;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.copy-button:active {
    transform: translateY(0);
    background: #1D4ED8;
}

.copy-button i {
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .payment-remarks-center {
        margin: 1.5rem auto;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .payment-note-highlight {
        padding: 10px 12px;
        margin: 0 0 12px 0;
    }
    
    .payment-remark-container {
        padding: 12px;
        margin: 0;
        flex-direction: column;
        gap: 8px;
    }
    
    .payment-remark-text {
        font-size: 1rem;
        padding-right: 0;
        text-align: center;
    }
    
    .copy-button {
        width: 100%;
        height: 40px;
        font-size: 1rem;
    }
}
