/* ========================================
   LUXURY FRONTEND ENHANCEMENT
   Premium Design System for SPMB
======================================== */

/* Enhanced Card Styles */
.card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    border: 1px solid rgba(6, 78, 59, 0.08);
    box-shadow: 0 10px 40px rgba(6, 78, 59, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(6, 78, 59, 0.15);
}

.card-body {
    position: relative;
}

/* Premium Badges */
.badge {
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-primary {
    background: linear-gradient(135deg, #10b981 0%, #064e3b 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.badge-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Enhanced Alerts */
.alert {
    border-radius: 16px;
    border: none;
    padding: 20px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, rgba(220, 252, 231, 0.95) 0%, rgba(240, 253, 244, 0.95) 100%);
    border-left: 4px solid #10b981;
    color: #065f46;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.95) 0%, rgba(254, 242, 242, 0.95) 100%);
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.alert-info {
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.95) 0%, rgba(239, 246, 255, 0.95) 100%);
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

/* Premium Form Controls */
.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(248, 250, 252, 0.5);
}

.form-control:focus {
    outline: none;
    border-color: #10b981;
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

.form-group label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Enhanced Buttons */
.btn {
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 78, 59, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 78, 59, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

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

.btn-outline-primary:hover {
    background: #064e3b;
    color: white;
}

/* Premium Section Styling */
.section {
    padding: 100px 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 78, 59, 0.1), transparent);
}

/* Enhanced Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #064e3b;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h3 {
    font-size: 2rem;
}

/* Glassmorphism Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Premium Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Smooth Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* Premium Loading States */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(6, 78, 59, 0.1);
    border-top-color: #064e3b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Enhanced Table Styles */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 16px;
    border: none;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(16, 185, 129, 0.05);
    transform: scale(1.01);
}

.table tbody td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
}

/* Premium Shadows */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(6, 78, 59, 0.08);
}

.shadow {
    box-shadow: 0 4px 16px rgba(6, 78, 59, 0.12);
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(6, 78, 59, 0.15);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .card {
        border-radius: 16px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Mobile Navbar */
    .navbar {
        height: auto;
        padding: 12px 0;
    }

    .navbar-toggle {
        display: flex !important;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .navbar-menu.mobile-active {
        display: flex;
    }

    .navbar-menu .nav-item {
        width: 100%;
    }

    .navbar-menu .nav-link {
        display: block;
        padding: 14px 20px;
        border-radius: 10px;
        margin-bottom: 4px;
    }

    .navbar-menu .nav-link:hover {
        background: rgba(6, 78, 59, 0.05);
    }

    .navbar-menu .nav-buttons {
        flex-direction: column;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(6, 78, 59, 0.1);
        gap: 12px;
    }

    .navbar-menu .nav-btn-login,
    .navbar-menu .nav-btn-register {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .navbar-menu .nav-btn-register {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

/* Premium Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium Dividers */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 78, 59, 0.2), transparent);
    margin: 40px 0;
}

/* Enhanced Row Spacing */
.row {
    margin-left: -12px;
    margin-right: -12px;
}

[class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

/* Premium Text Colors */
.text-primary {
    color: #064e3b !important;
}

.text-secondary {
    color: #f59e0b !important;
}

.text-muted {
    color: #64748b !important;
}

/* Enhanced Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 1280px) {
    .container {
        max-width: 100%;
    }
}

/* Hide Legacy Floating Elements on Status Pages */
body:has(.status-progress-container) .floating-cta,
body:has(.billing-luxury-card) .floating-cta {
    display: none !important;
}

/* Override conflicting styles for status pages */
.section {
    background: #f8fafc;
}

.section .container {
    background: transparent;
}

/* Fix col spacing */
.col-10 {
    width: 83.333%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .col-10 {
        width: 100%;
    }
}

/* Complete Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

[class*="col-"] {
    position: relative;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}

.col-1 {
    width: 8.333%;
}

.col-2 {
    width: 16.666%;
}

.col-3 {
    width: 25%;
}

.col-4 {
    width: 33.333%;
}

.col-5 {
    width: 41.666%;
}

.col-6 {
    width: 50%;
}

.col-7 {
    width: 58.333%;
}

.col-8 {
    width: 66.666%;
}

.col-9 {
    width: 75%;
}

.col-10 {
    width: 83.333%;
}

.col-11 {
    width: 91.666%;
}

.col-12 {
    width: 100%;
}

/* Responsive columns */
@media (max-width: 768px) {

    .col-md-4,
    .col-md-6,
    .col-md-8 {
        width: 100%;
    }
}

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

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

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

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

@media (max-width: 768px) {
    .text-md-right {
        text-align: left;
    }
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.p-5 {
    padding: 3rem;
}

.d-none {
    display: none !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-flex {
    display: flex !important;
}

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

.justify-content-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

/* Ensure proper spacing */
.section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }

    .p-5 {
        padding: 1.5rem !important;
    }
}