/* ============================================ */
/* Base Styles & CSS Variables */
/* ============================================ */

:root {
    /* Bootstrap color-profile defaults */
    --bs-primary: #8A8C8F;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    
    /* Bootstrap grays */
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
    --bs-black: #000000;
    --bs-white: #ffffff;
    --bs-body-bg: #ffffff;
    --bs-body-color: rgb(50, 58, 70);

    /* Primary brand color */
    --primary: 44 111 226;
    --primary-rgb: 44 111 226;
    --bs-primary-rgb: 44 111 226;
    --primary-hex: #2c6fe2;
    
    /* Custom brand colors (from Tailwind config) */
    --color-purple: #0d0afd;
    --color-purple-light: #6a69f5;
    --color-success: #50cd89;
    --color-danger: #f1416c;
    --color-warning: #ffc700;
    --color-info: #009ef7;
    --color-light: #e2e6eb;
    --color-muted: #94989a;
    
    /* Common UI colors (used in multiple components) */
    --color-blue-primary: #0d6efd;
    --color-blue-secondary: #0a58ca;
    --color-green-success: #198754;
    --color-red-error: #dc2626;
    --color-yellow-warning: #ffc107;
    
    /* Border colors */
    --border-light: #e9ecef;
    --border-medium: #dee2e6;
    --border-dark: #374151;
    
    /* Background colors */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #1f2937;
    --bg-darker: #111827;
    
    /* Text colors */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #9ca3af;
    --text-light: #f9fafb;
}

/* Breadcrumb steps variables */
:root {
    --steps-brand: #0d0afd;
    --steps-text: #ffffff;
    --steps-border: rgba(13, 10, 253, 0.2);
    --steps-radius: 6px;
}

/* ============================================ */
/* Body & Layout */
/* ============================================ */

body {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Main container should fill viewport */
.main-container {
    height: 100vh;
    overflow: hidden;
}

/* Fix scroll sticking issues */
.main-content {
    -webkit-overflow-scrolling: touch;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.detached-content {
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
}

.detached .footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* Ensure smooth scrolling on all scroll containers */
* {
    scrollbar-behavior: smooth;
}

/* ============================================ */
/* Footer */
/* ============================================ */

footer {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: auto;
    flex-shrink: 0;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    footer .flex-col {
        text-align: center;
    }
    
    footer .space-x-6 > * + * {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* ============================================ */
/* Utility Classes */
/* ============================================ */

.auth-bg {
    background-color: #1e1e1e;
    background-image: url(../images/bg-pattern.png);
}

.\!bg-primary {
    background-color: rgb(var(--primary)) !important;
}

.\!text-white {
    --tw-text-opacity: 1 !important;
    color: rgb(255 255 255 / var(--tw-text-opacity)) !important;
}

.\!font-medium {
    font-weight: 500 !important;
}

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

.non-selectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.li-btn {
    margin-bottom: 0.25rem;
    margin-inline-start: 0px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.25rem;
    border-width: 1px;
    border-color: transparent;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    cursor: pointer;
}

.li-btn:disabled,
.li-btn[disabled] {
    cursor: not-allowed !important;
    opacity: 0.6;
}
