/* ==========================================
   STUNNING ENHANCED BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transition: all 0.6s ease;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.btn:hover::after {
    width: 200px;
    height: 200px;
}

.btn-primary {
    background: linear-gradient(135deg, #003366 0%, #004d99 50%, #003366 100%);
    color: #FFFFFF;
    box-shadow: 
        0 8px 25px rgba(0, 51, 102, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: primaryGlow 3s ease-in-out infinite alternate;
}

@keyframes primaryGlow {
    0% { 
        box-shadow: 
            0 8px 25px rgba(0, 51, 102, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.1),
            0 0 20px rgba(0, 51, 102, 0.3);
    }
    100% { 
        box-shadow: 
            0 8px 25px rgba(0, 51, 102, 0.6),
            0 0 0 1px rgba(255, 255, 255, 0.2),
            0 0 30px rgba(0, 51, 102, 0.5);
    }
}

.btn-primary:hover {
    background: linear-gradient(135deg, #002244 0%, #003366 50%, #004d99 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(0, 51, 102, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.2),
        0 0 40px rgba(0, 51, 102, 0.6);
    color: #FFFFFF;
    animation-play-state: paused;
}

.btn-secondary {
    background: linear-gradient(135deg, #008060 0%, #00a080 50%, #008060 100%);
    color: #FFFFFF;
    box-shadow: 
        0 8px 25px rgba(0, 128, 96, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: secondaryGlow 3s ease-in-out infinite alternate-reverse;
}

@keyframes secondaryGlow {
    0% { 
        box-shadow: 
            0 8px 25px rgba(0, 128, 96, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.1),
            0 0 20px rgba(0, 128, 96, 0.3);
    }
    100% { 
        box-shadow: 
            0 8px 25px rgba(0, 128, 96, 0.6),
            0 0 0 1px rgba(255, 255, 255, 0.2),
            0 0 30px rgba(0, 128, 96, 0.5);
    }
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #006040 0%, #008060 50%, #00a080 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(0, 128, 96, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.2),
        0 0 40px rgba(0, 128, 96, 0.6);
    color: #FFFFFF;
    animation-play-state: paused;
}

.btn-outline {
    background: transparent;
    color: #003366;
    border: 2px solid #003366;
}

.btn-outline:hover {
    background: #003366;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* ==========================================
   Cards
   ========================================== */
.card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 51, 102, 0.1);
    transition: all 0.3s ease;
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 51, 102, 0.1);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #003366 0%, #008060 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon i {
    font-size: 1.2rem;
    color: #FFFFFF;
}

.card-title {
    font-size: 1.3rem;
    color: #003366;
    margin: 0;
}

.card-subtitle {
    font-size: 1rem;
    color: #666666;
    margin: 0;
    font-weight: 400;
}

.card-content {
    color: #555555;
    line-height: 1.6;
}

.card-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 51, 102, 0.1);
}

/* ==========================================
   Forms
   ========================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #003366;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem 1.2rem;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    color: #333333;
    background: #FFFFFF;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.form-success {
    color: #008060;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* ==========================================
   Badges & Tags
   ========================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(0, 51, 102, 0.1);
    color: #003366;
}

.badge-success {
    background: rgba(0, 128, 96, 0.1);
    color: #008060;
}

.badge-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #f39c12;
}

.badge-info {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

/* ==========================================
   Alerts & Notifications
   ========================================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.alert-success {
    background: rgba(0, 128, 96, 0.1);
    color: #008060;
    border-left: 4px solid #008060;
}

.alert-info {
    background: rgba(0, 51, 102, 0.1);
    color: #003366;
    border-left: 4px solid #003366;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #f39c12;
    border-left: 4px solid #f39c12;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

/* ==========================================
   Loading States
   ========================================== */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 51, 102, 0.3);
    border-left-color: #003366;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==========================================
   Modals & Overlays
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(-50px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 51, 102, 0.1);
}

.modal-title {
    font-size: 1.5rem;
    color: #003366;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 51, 102, 0.1);
    color: #003366;
}

/* ==========================================
   Responsive Utilities
   ========================================== */
@media (max-width: 768px) {
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .modal {
        margin: 1rem;
        padding: 1.5rem;
    }
}
