@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #64748b;
    --accent-color: #10b981;
    --theme-dark: #313a46;
    --primary-gradient: linear-gradient(135deg, #313a46 0%, #4a5568 100%);
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Outfit', sans-serif !important;
}

/* Glassmorphism Classes */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}

/* Login Page Modernization */
.authentication-bg {
    background: url('../images/login_bg_modern.png') no-repeat center center fixed;
    background-size: cover;
}

#frmLogin .card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

#frmLogin .card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#frmLogin .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    transition: var(--transition);
}

#frmLogin .btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

#frmLogin .form-control {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    transition: var(--transition);
}

#frmLogin .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Sidebar Modernization */
.leftside-menu {
    width: 270px !important;
    background: #0f172a !important;
    /* Slate 900 */
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
}

body[data-leftbar-theme=dark] .leftside-menu .logo {
    background: transparent !important;
    width: 270px !important;
}

.side-nav-link {
    color: #94a3b8 !important;
    font-weight: 500;
    margin: 4px 15px;
    border-radius: 10px;
    transition: var(--transition) !important;
}

.side-nav-link i {
    font-size: 1.1rem;
    margin-right: 10px;
}

.side-nav-link:hover,
.side-nav-item.active>.side-nav-link {
    color: #ffffff !important;
    background: rgba(99, 102, 241, 0.15);
}

.side-nav-title {
    color: #475569 !important;
    text-transform: uppercase;
    font-size: 0.7rem !important;
    letter-spacing: 1px;
    padding: 20px 25px 10px !important;
}

/* Navbar Modernization */
.navbar-custom {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
    left: 280px !important;
}

.content-page {
    margin-left: 280px !important;
}

.footer {
    left: 280px !important;
}

@media (max-width: 991.98px) {
    .leftside-menu {
        left: -280px !important;
        width: 280px !important;
    }

    .content-page,
    .footer {
        margin-left: 0 !important;
    }

    .navbar-custom {
        left: 0 !important;
    }
}

.account-user-name {
    font-weight: 600;
    color: #1e293b;
}

/* Tables & Cards in Main Content */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.table thead th {
    background-color: #f8fafc;
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f1f5f9;
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #475569;
    border: none;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.modern-table-header {
    background: var(--theme-dark) !important;
    color: white !important;
}

.premium-card-header {
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.5rem !important;
}

.premium-card-header .card-title {
    color: var(--theme-dark) !important;
    margin-bottom: 0;
    font-weight: 600;
}

.modern-table-header th {
    color: white !important;
    font-weight: 600 !important;
    border: none !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Modern Radio Cards */
.modern-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.modern-radio-card {
    flex: 1;
    min-width: 140px;
    position: relative;
    margin-bottom: 0 !important;
}

.modern-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: 500;
    color: #64748b;
    height: 100%;
}

.modern-radio-card input[type="radio"]:checked+.radio-card-content {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

/* Specialized Status Colors */
.modern-radio-card.card-status-3 input[type="radio"]:checked+.radio-card-content {
    border-color: #10b981;
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.05);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.modern-radio-card.card-status-4 input[type="radio"]:checked+.radio-card-content {
    border-color: #ef4444;
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.modern-radio-card.card-status-5 input[type="radio"]:checked+.radio-card-content {
    border-color: #3b82f6;
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.modern-radio-card:hover .radio-card-content {
    border-color: #cbd5e1;
}

/* Mobile Responsiveness Utilities */
@media (max-width: 768px) {
    .modern-radio-group {
        flex-direction: column;
        gap: 8px;
    }

    .modern-radio-card {
        min-width: 100%;
    }

    .card-body {
        padding: 1rem;
    }

    .table-responsive {
        border: 0;
    }
}

/* Modern Modal Enhancements */
.modern-modal-header {
    background: #313a46 !important;
    color: white !important;
    border-bottom: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    margin: 0 !important;
}

.modern-modal-header .modal-title {
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
}

.modal-content {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-xl) !important;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
}

.btn-premium-primary {
    background: #212529 !important;
    border: 1px solid #212529 !important;
    color: white !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-premium-primary:hover {
    background: #343a40 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.btn-premium-secondary {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #212529 !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-premium-secondary:hover {
    background: #343a40 !important;
    border-color: #343a40 !important;
}

.btn-premium-success {
    background: #10b981 !important;
    border: 1px solid #10b981 !important;
    color: white !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-premium-success:hover {
    background: #059669 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
}

/* Modern Select2 Enhancements & Fix Gap */
.select2-container {
    position: relative;
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    background-color: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    height: 42px !important;
    transition: all 0.2s ease !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #475569 !important;
    line-height: 40px !important;
    padding-left: 12px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #94a3b8 transparent transparent transparent !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #94a3b8 transparent !important;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    min-height: 42px !important;
    padding: 2px 0 !important;
}

.select2-container--open .select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
    z-index: 1060 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 8px !important;
    margin-bottom: 5px !important;
}

/* Status Buttons Styling */
.status-btn-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 5px;
    width: 100%;
}

.status-btn-item {
    flex: 1 1 0;
    /* Guarantee perfectly equal width regardless of content */
    min-width: 0;
    /* Allow flex to shrink below content width if needed */
    position: relative;
}

.status-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
    font-weight: 400;
    cursor: pointer;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    text-align: center;
    border: 1px solid #ced4da;
    background-color: #f8f9fa;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    height: 31px;
    /* Typical height for btn-sm with line-height 1.5 */
}

.status-btn:hover:not(:disabled) {
    background-color: #e2e6ea;
    border-color: #dae0e5;
    color: #212529;
}

.status-btn:active:not(:disabled) {
    background-color: #dae0e5;
    border-color: #d3d9df;
}

/* Status Colors - ONLY shown when .active */

/* Status 3: เสร็จเรียบร้อย (#0ACF97) */
.status-btn-3:hover:not(:disabled):not(.active) {
    border-color: #0ACF97;
    color: #0ACF97;
}

.status-btn-3:active:not(:disabled),
.status-btn-3.active {
    background-color: #0ACF97 !important;
    border-color: #0ACF97 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(10, 207, 151, 0.3);
}

/* Status 4: ไม่สำเร็จ (#EB0B29) */
.status-btn-4:hover:not(:disabled):not(.active) {
    border-color: #EB0B29;
    color: #EB0B29;
}

.status-btn-4:active:not(:disabled),
.status-btn-4.active {
    background-color: #EB0B29 !important;
    border-color: #EB0B29 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(235, 11, 41, 0.3);
}

/* Status 5: ติดตั้งและทดสอบ (#0288d1) */
.status-btn-5:hover:not(:disabled):not(.active) {
    border-color: #0288d1;
    color: #0288d1;
}

.status-btn-5:active:not(:disabled),
.status-btn-5.active {
    background-color: #0288d1 !important;
    border-color: #0288d1 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(2, 136, 209, 0.3);
}

/* Login Success Animation Overlay */
#login-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

/* Mechanical Character Styles */
.mechanical-character {
    position: absolute;
    left: -300px;
    top: 50%;
    margin-top: -120px;
    width: 120px;
    height: 160px;
    z-index: 10000;
    transition: transform 0.1s;
}

.bot-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bot-head {
    width: 60px;
    height: 45px;
    background: #64748b;
    border-radius: 12px;
    border: 3px solid #1e293b;
    position: relative;
    z-index: 2;
    margin-bottom: -5px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bot-eye {
    width: 10px;
    height: 10px;
    background: #00f2fe;
    border-radius: 50%;
    box-shadow: 0 0 10px #00f2fe, 0 0 20px #00f2fe;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    90%,
    100% {
        transform: scaleY(1);
    }

    95% {
        transform: scaleY(0.1);
    }
}

.bot-body {
    width: 85px;
    height: 90px;
    background: #475569;
    border-radius: 15px;
    border: 4px solid #1e293b;
    position: relative;
    overflow: visible;
}

.bot-gear {
    width: 60px;
    height: 60px;
    position: absolute;
    right: -25px;
    top: 20px;

    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23334155' d='M12 15a3 3 0 100-6 3 3 0 000 6z'/><path fill='%23334155' d='M19.4 15a1.65 1.65 0 00.33 1.82l.06.06a2 2 0 010 2.83 2 2 0 01-2.83 0l-.06-.06a1.65 1.65 0 00-1.82-.33 1.65 1.65 0 00-1 1.51V21a2 2 0 01-2 2 2 2 0 01-2-2v-.09A1.65 1.65 0 009 19.4a1.65 1.65 0 00-1.82.33l-.06.06a2 2 0 01-2.83 0 2 2 0 010-2.83l.06-.06a1.65 1.65 0 00.33-1.82 1.65 1.65 0 00-1.51-1H3a2 2 0 01-2-2 2 2 0 012-2h.09A1.65 1.65 0 004.6 9a1.65 1.65 0 00-.33-1.82l-.06-.06a2 2 0 010-2.83 2 2 0 012.83 0l.06.06a1.65 1.65 0 001.82.33H9.4a1.65 1.65 0 001-1.51V3a2 2 0 012-2 2 2 0 012 2v.09a1.65 1.65 0 001 1.51 1.65 1.65 0 001.82-.33l.06-.06a2 2 0 012.83 0 2 2 0 010 2.83l-.06.06a1.65 1.65 0 00-.33 1.82V9.4a1.65 1.65 0 001.51 1H21a2 2 0 012 2 2 2 0 01-2 2h-.09a1.65 1.65 0 00-1.51 1z'/></svg>") no-repeat;

    background-size: 20px 20px, 20px 20px, 20px 20px;
    background-position: 20px 0, 0 25px, 40px 25px;

    animation: spinAll 4s linear infinite;
}

@keyframes spinAll {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateGear {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.bot-leg {
    width: 18px;
    height: 35px;
    background: #334155;
    position: absolute;
    bottom: -32px;
    border-radius: 0 0 8px 8px;
    border: 2px solid #1e293b;
    z-index: 1;
}

.leg-left {
    left: 15px;
    animation: shuffleLeg 0.3s infinite alternate;
}

.leg-right {
    right: 15px;
    animation: shuffleLeg 0.3s infinite alternate-reverse;
}

@keyframes shuffleLeg {
    from {
        transform: translateY(0) rotate(-15deg);
    }

    to {
        transform: translateY(-12px) rotate(15deg);
    }
}

.bot-smoke {
    position: absolute;
    bottom: -10px;
    left: -20px;
    width: 15px;
    height: 15px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    animation: smokeTrail 0.5s infinite;
    opacity: 0;
}

@keyframes smokeTrail {
    0% {
        transform: scale(0.5);
        opacity: 0.5;
        left: -10px;
    }

    100% {
        transform: scale(2);
        opacity: 0;
        left: -40px;
    }
}

@keyframes runToCenter {
    0% {
        left: -400px;
        transform: scale(1) translateY(0) rotate(5deg);
    }

    25% {
        transform: scale(1.05) translateY(-20px) rotate(-5deg);
    }

    50% {
        transform: scale(1) translateY(0) rotate(5deg);
    }

    75% {
        transform: scale(1.05) translateY(-20px) rotate(-5deg);
    }

    100% {
        left: 50%;
        transform: translateX(-50%) translateY(0) rotate(0deg) scale(1.1);
    }
}

@keyframes fadeOutAndScale {
    0% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.5) translateY(-100px);
        filter: blur(10px);
    }
}

.animate-run {
    animation: runToCenter 1.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, mechanicalVibrate 0.1s infinite;
}

@keyframes mechanicalVibrate {
    0% {
        margin-top: -120px;
    }

    50% {
        margin-top: -122px;
    }

    100% {
        margin-top: -120px;
    }
}

.animate-fadeout {
    animation: fadeOutAndScale 0.8s ease-in forwards;
}

.welcome-msg {
    position: absolute;
    top: 50%;
    margin-top: 80px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0;
    white-space: nowrap;
    z-index: 10001;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 40px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.animate-welcome {
    animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

/* Loading State Styles (Machine Working Icon) */
@keyframes pulseText {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.98);
    }
}

.machine-working-icon {
    width: 140px;
    height: 140px;
    background: white;
    border: 6px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 15px 45px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    overflow: hidden;
}

.machine-working-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.gear-large,
.gear-small-top,
.gear-small-bottom {
    position: absolute;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23334155'><path d='M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.47,5.34 14.85,5.1L14.47,2.45C14.43,2.22 14.23,2.05 14,2.05H10C9.77,2.05 9.57,2.22 9.53,2.45L9.15,5.1C8.53,5.34 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.22,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.22,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.53,18.66 9.15,18.9L9.53,21.55C9.57,21.78 9.77,21.95 10,21.95H14C14.23,21.95 14.43,21.78 14.47,21.55L14.85,18.9C15.47,18.66 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z'/></svg>") no-repeat center;
    background-size: contain;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.gear-large {
    width: 75px;
    height: 75px;
    left: 15px;
    top: 32px;
    animation: rotateGear 10s linear infinite;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.gear-small-top {
    width: 50px;
    height: 50px;
    left: 75px;
    top: 20px;
    animation: rotateGear 6s linear infinite reverse;
}

.gear-small-bottom {
    width: 45px;
    height: 45px;
    left: 80px;
    top: 72px;
    animation: rotateGear 4s linear infinite;
}

.loading-text {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: pulseText 1.5s infinite;
}

@media (max-width: 768px) {
    .welcome-msg {
        font-size: 1.5rem;
        top: 50%;
        margin-top: 80px;
        white-space: normal;
        text-align: center;
        width: 100%;
        padding: 0 20px;
    }

    .loading-text {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}

/* Purple Theme Colors */
.text-purple {
    color: #8b5cf6 !important;
}

.bg-light-purple {
    background-color: #ede9fe !important;
}

.btn-purple {
    background-color: #8b5cf6 !important;
    color: white !important;
    border-color: #8b5cf6 !important;
}

.btn-purple:hover {
    background-color: #7c3aed !important;
    color: white !important;
    border-color: #7c3aed !important;
}

.btn-outline-purple {
    color: #212529 !important;
    border-color: transparent !important;
}

.btn-outline-purple:disabled {
    color: #8b5cf6 !important;
}

.btn-outline-purple:hover {
    background-color: #8b5cf6 !important;
    color: white !important;
    border-color: #8b5cf6 !important;
}