
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
           font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #1a0a00;  /* was #0a0a0a */
            min-height: 100vh;
            color: #ffffff;
            padding: 20px;
            position: relative;
            overflow-x: hidden;
        }

        /* Animated gradient background layers */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, #ff6b00, #ff9933, #ffb366, #ff6b00);
            background-size: 400% 400%;
            animation: gradientShift 15s ease infinite;
            opacity: 0.25; /* was 0.15 */
            z-index: 0;
        }

        body::after {
            content: '';
            position: fixed;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 107, 0, 0.3) 0%, transparent 70%); /* was 0.2 */
            animation: rotate 20s linear infinite;
            pointer-events: none;
            z-index: 0;
        }

        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

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

        /* Floating orbs animation */
        .container::before {
            content: '';
            position: fixed;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(255, 107, 0, 0.4) 0%, transparent 70%); /* was 0.3 */
            border-radius: 50%;
            top: 20%;
            left: 10%;
            animation: float 10s ease-in-out infinite;
            pointer-events: none;
            z-index: 0;
        }

        .container::after {
            content: '';
            position: fixed;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(255, 153, 51, 0.35) 0%, transparent 70%); /* was 0.25 */
            border-radius: 50%;
            bottom: 10%;
            right: 15%;
            animation: float 12s ease-in-out infinite reverse;
            pointer-events: none;
            z-index: 0;
        }

        @keyframes float {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50% { transform: translate(30px, -30px) scale(1.1); }
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        header {
            margin-bottom: 40px;
            padding: 40px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 30px;
            -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 107, 0, 0.2);
            box-shadow:
                0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
        }

        .header-content {
            display: flex;
            align-items: center;
            gap: 40px;
        }

        .logo-section {
            flex-shrink: 0;
            text-align: center;
            padding: 20px;
            background: rgba(255, 107, 0, 0.1);
            border-radius: 20px;
            border: 2px solid rgba(255, 107, 0, 0.3);
            min-width: 200px;
        }

        .logo-section h2 {
            font-size: 1.5em;
            margin: 0;
            line-height: 1.3;
        }

        .logo-tagline {
            font-size: 0.9em !important;
            margin-top: 10px;
            opacity: 0.9;
        }

        .title-section {
            flex: 1;
            text-align: left;
        }

        .title-section h1 {
            margin-bottom: 15px;
            text-align: left;
        }

        .title-section .subtitle {
            text-align: left;
        }

        header::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.1), transparent);
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 200%; }
        }

        h1 {
            font-size: 3.5em;
            background: linear-gradient(135deg, #ff6b00, #ff9933, #ffcc00, #ff9933, #ff6b00);
            background-size: 200% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 15px;
            animation: gradientText 4s ease infinite;
            font-weight: 700;
            text-shadow: 0 0 30px rgba(255, 107, 0, 0.3);
           
        }

        @keyframes gradientText {
            0%, 100% { background-position: 0% center; }
            50% { background-position: 100% center; }
        }

        .subtitle {
            font-size: 1.0em;
            color: #ffa64d;
            opacity: 0.95;
            font-weight: 300;
            letter-spacing: 1px;
        }

        .glass-card {
            background: rgba(255, 255, 255, 0.02); /* was 0.04 */
            -webkit-backdrop-filter: blur(25px);
            backdrop-filter: blur(25px);
            border-radius: 25px;
            padding: 35px !important;;
            margin-bottom: 30px;
            border: 2px solid rgba(255, 106, 0, 0.144);
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
            position: relative;
            overflow: hidden;
        }

        .glass-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.5), transparent);
        }

        .glass-card:hover {
            border-color: rgba(255, 107, 0, 0.3);
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 40px rgba(255, 107, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
            transform: translateY(-5px);
            transition: all 0.3s ease;
        }

        .glass-card h2 {
            color: #ff9933;
            margin-bottom: 25px;
            font-size: 1.9em;
            font-weight: 600;
            position: relative;
            padding-bottom: 15px;
        }

        .glass-card h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, #ff6b00, transparent);
            border-radius: 2px;
        }

        .rule-input-group {
            display: flex;
            gap: 12px;
            margin-bottom: 25px;
            flex-wrap: wrap;
        }

        .rule-input-group input[type="text"] {
            flex: 2;
            min-width: 200px;
        }

       .rule-input-group input[type="color"] {
    width: 110px;
    height: 53px;
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px;           /* Reduce padding so color fills more */
    overflow: hidden;        /* Hide overflow to enforce rounded corners */
}

.rule-input-group input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;             /* Remove default padding */
}

.rule-input-group input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 9px;     /* Slightly less than container to show border */
}

.rule-input-group input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 9px;
}

.rule-input-group input[type="color"]:focus {
    outline: none;
    border-color: #ff9933;
    box-shadow: 
        0 0 0 3px rgba(255, 107, 0, 0.1),
        0 0 20px rgba(255, 107, 0, 0.2);
}

        .rule-input-group input[type="number"] {
            width: 110px;
        }

        input[type="text"],
        input[type="number"]{
            padding: 14px 22px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 107, 0, 0.2);
            border-radius: 12px;
            color: #ffffff;
            font-size: 1em;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        input[type="text"]:focus,
        input[type="number"]:focus {
            outline: none;
            border-color: #ff9933;
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 
                0 0 0 3px rgba(255, 107, 0, 0.1),
                0 0 20px rgba(255, 107, 0, 0.2);
        }

        input[type="text"]::placeholder,
        input[type="number"]::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        .btn-add,
        .btn-primary,
        .btn-secondary {
            display: inline-block;
            padding: 14px 32px;
            border: none;
            border-radius: 12px;
            font-size: 1em;
            font-weight: 600;
            line-height: 1.5;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            z-index: 1000 !important;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            vertical-align: middle;
            box-sizing: border-box;
        }

        .btn-add {
            background: linear-gradient(135deg, #ff6b00, #ff9933);
            color: white;
            box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
        }

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

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

        .btn-add:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 25px rgba(255, 107, 0, 0.5);
        }

        .btn-clear-all {
            padding: 10px 24px;
            background: rgba(255, 100, 100, 0.15);
            border: 1px solid rgba(255, 100, 100, 0.3);
            border-radius: 10px;
            color: #ff9999;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            backdrop-filter: blur(10px);
            font-size: 0.9em;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        .btn-clear-all:hover {
            background: rgba(255, 100, 100, 0.25);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(255, 100, 100, 0.3);
        }

        .btn-export,
        .btn-import {
            padding: 10px 24px;
            background: rgba(100, 200, 100, 0.15);
            border: 1px solid rgba(100, 200, 100, 0.3);
            border-radius: 10px;
            color: #99dd99;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            backdrop-filter: blur(10px);
            font-size: 0.9em;
            display: inline-block;
        }

        .btn-export:hover,
        .btn-import:hover {
            background: rgba(100, 200, 100, 0.25);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(100, 200, 100, 0.3);
        }

        .btn-import {
            background: rgba(100, 150, 255, 0.15);
            border: 1px solid rgba(100, 150, 255, 0.3);
            color: #99bbff;
        }

        .btn-import:hover {
            background: rgba(100, 150, 255, 0.25);
            box-shadow: 0 4px 15px rgba(100, 150, 255, 0.3);
        }

        .btn-cancel {
            margin-top: Auto; margin-bottom: 4px;
            display: inline-block;
            padding: 14px 32px;
            border: none;
            border-radius: 12px;
            font-size: 1em;
            font-weight: 600;
            line-height: 1.5;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            z-index: 1000 !important;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            vertical-align: middle;
            box-sizing: border-box;
            background: rgba(255, 100, 100, 0.15);
            color: #ff9999;
            box-shadow: inset 0 0 0 1px rgba(255, 100, 100, 0.3);
        }

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

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

        .btn-cancel:hover {
            background: rgba(255, 100, 100, 0.25);
            transform: translateY(-2px);
            box-shadow: inset 0 0 0 1px rgba(255, 100, 100, 0.3), 0 4px 15px rgba(255, 100, 100, 0.3);
        }

        .rules-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .rule-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 24px;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            border: 1px solid rgba(255, 107, 0, 0.15);
            transition: all 0.3s ease;
        }

        .rule-item:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 107, 0, 0.3);
            transform: translateX(5px);
        }

        .rule-info {
            display: flex;
            align-items: center;
            gap: 18px;
        }

        .color-preview {
            width: 45px;
            height: 45px;
            border-radius: 10px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        .rule-text {
            font-size: 1.1em;
            font-weight: 500;
        }

        .btn-remove {
            padding: 10px 24px;
            background: rgba(255, 50, 50, 0.15);
            border: 1px solid rgba(255, 50, 50, 0.3);
            border-radius: 10px;
            color: #ff6666;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            backdrop-filter: blur(10px);
        }

        .btn-remove:hover {
            background: rgba(255, 50, 50, 0.25);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(255, 50, 50, 0.3);
        }

        .btn-edit {
            padding: 10px 24px;
            background: rgba(100, 150, 255, 0.15);
            border: 1px solid rgba(100, 150, 255, 0.3);
            border-radius: 10px;
            color: #99bbff;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            backdrop-filter: blur(10px);
        }

        .btn-edit:hover {
            background: rgba(100, 150, 255, 0.25);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(100, 150, 255, 0.3);
        }

        .upload-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-bottom: 25px;
        }

        .upload-option input[type="file"] {
            display: none;
        }

        .upload-label {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 45px;
            background: rgba(255, 255, 255, 0.03);
            border: 2px dashed rgba(255, 107, 0, 0.3);
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.4s ease;
            min-height: 220px;
            backdrop-filter: blur(15px);
            position: relative;
            overflow: hidden;
        }

        .upload-label::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .upload-label:hover::before {
            opacity: 1;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .upload-label:hover {
            background: rgba(255, 107, 0, 0.08);
            border-color: #ff9933;
            transform: translateY(-5px);
            box-shadow: 
                0 15px 40px rgba(255, 107, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .upload-label svg {
            color: #ff9933;
            margin-bottom: 18px;
            filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.3));
        }

        .upload-label span {
            font-size: 1.15em;
            color: #ffa64d;
            font-weight: 600;
            position: relative;
            z-index: 1;
        }

        .files-list {
            max-height: 500px;
            overflow-y: auto;
            padding: 15px;
            background: rgba(0, 0, 0, 0.25);
            border-radius: 15px;
            backdrop-filter: blur(10px);
        }

        .file-item {
            padding: 12px 18px;
            background: rgba(255, 255, 255, 0.04);
            border-radius: 10px;
            margin-bottom: 10px;
            border-left: 3px solid #ff9933;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
        }

        .file-item:hover {
            background: rgba(255, 255, 255, 0.07);
            transform: translateX(5px);
            border-left-color: #ffcc00;
        }

        .progress-section {
            padding: 25px 0;
            max-width: 100%;
            box-sizing: border-box;
        }

        .progress-bar {
            width: 100%;
            max-width: 100%;
            height: 35px;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 18px;
            overflow: hidden;
             margin: 15px 0;
            margin-bottom: 20px;
            border: 1px solid rgba(255, 107, 0, 0.2);
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
            box-sizing: border-box;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #ff6b00, #ff9933, #ffcc00);
            background-size: 200% 100%;
            width: 0%;
            transition: width 0.3s ease;
            border-radius: 18px;
            animation: progressGlow 2s ease-in-out infinite;
            box-shadow: 0 0 20px rgba(255, 107, 0, 0.6);
        }

        @keyframes progressGlow {
            0%, 100% { background-position: 0% center; }
            50% { background-position: 100% center; }
        }

        .progress-text {
            text-align: center;
            font-size: 1.3em;
            color: #ffa64d;
            margin-bottom: 25px;
            font-weight: 600;
            max-width: 100%;
            word-wrap: break-word;
        }

        .processing-log {
            max-height: 220px;
            max-width: 100%;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 18px;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 12px;
            font-family: 'Courier New', monospace;
            font-size: 0.95em;
            border: 1px solid rgba(255, 107, 0, 0.2);
            backdrop-filter: blur(10px);
            box-sizing: border-box;
            word-wrap: break-word;
            word-break: break-word;
        }

        .log-entry {
            padding: 6px 0;
            border-bottom: 1px solid rgba(255, 107, 0, 0.1);
            animation: fadeIn 0.3s ease;
            max-width: 100%;
            word-wrap: break-word;
            word-break: break-word;
            overflow-wrap: break-word;
            font-family: 'Courier New', monospace;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-5px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .log-success {
            color: #66ff66;
            text-shadow: 0 0 5px rgba(102, 255, 102, 0.3);
        }

        .log-error {
            color: #ff6666;
            text-shadow: 0 0 5px rgba(255, 102, 102, 0.3);
        }

        .log-info {
            color: #ffa64d;
        }

        .log-warning {
            color: #ffcc00;
            text-shadow: 0 0 5px rgba(255, 204, 0, 0.3);
        }

        /* Statistics Dashboard Card */
        #dashboardCard {
            animation: slideIn 0.5s ease-out;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        #dashboardCard h2 {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #ff6b00, #ff9933, #ffcc00);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: gradientShift 3s ease infinite;
            background-size: 200% auto;
        }

        @keyframes gradientShift {
            0%, 100% { background-position: 0% center; }
            50% { background-position: 100% center; }
        }

        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 20px;
            margin-top: 25px;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        .stat-card {
            background: rgba(0, 0, 0, 0.5);
            padding: 20px;
            border-radius: 15px;
            text-align: center;
            border: 2px solid rgba(255, 107, 0, 0.3);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.2), transparent);
            transition: left 0.5s;
        }

        .stat-card:hover::before {
            left: 100%;
        }

        .stat-card:hover {
            transform: translateY(-8px) scale(1.05);
            box-shadow: 0 12px 30px rgba(255, 107, 0, 0.5);
            border-color: rgba(255, 107, 0, 0.8);
        }

        .stat-card.success {
            border-color: rgba(51, 255, 51, 0.5);
            background: rgba(51, 255, 51, 0.05);
        }

        .stat-card.success:hover {
            border-color: rgba(51, 255, 51, 0.8);
            box-shadow: 0 12px 30px rgba(51, 255, 51, 0.4);
        }

        .stat-card.error {
            border-color: rgba(255, 102, 102, 0.5);
            background: rgba(255, 102, 102, 0.05);
        }

        .stat-card.error:hover {
            border-color: rgba(255, 102, 102, 0.8);
            box-shadow: 0 12px 30px rgba(255, 102, 102, 0.4);
        }

        .stat-card.highlight {
            border-color: rgba(255, 204, 0, 0.6);
            background: rgba(255, 204, 0, 0.08);
        }

        .stat-card.highlight:hover {
            border-color: rgba(255, 204, 0, 0.9);
            box-shadow: 0 12px 30px rgba(255, 204, 0, 0.5);
        }

        .stat-icon {
            font-size: 2.5em;
            margin-bottom: 10px;
            filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.5));
        }

        .stat-value {
            font-size: 2.2em;
            font-weight: 700;
            color: #ffcc00;
            margin-bottom: 8px;
            text-shadow: 0 0 15px rgba(255, 204, 0, 0.6);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            word-wrap: break-word;
            overflow-wrap: break-word;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }

        .stat-card.success .stat-value {
            color: #66ff66;
            text-shadow: 0 0 15px rgba(51, 255, 51, 0.6);
        }

        .stat-card.error .stat-value {
            color: #ff6666;
            text-shadow: 0 0 15px rgba(255, 102, 102, 0.6);
        }

        .stat-label {
            font-size: 0.9em;
            color: #ffa64d;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 600;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            word-wrap: break-word;
            overflow-wrap: break-word;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }

        .action-buttons {
            display: flex;
            gap: 25px;
            justify-content: center;
            margin-top: 35px;
            flex-wrap: wrap;
        }

        .btn-primary {
            background: linear-gradient(135deg, #ff6b00, #ff9933);
            color: white;
            font-size: 1.25em;
            padding: 18px 60px;
            box-shadow: 0 6px 25px rgba(255, 107, 0, 0.4);
            position: relative;
         
        }

        .btn-primary:hover:not(:disabled) {
            transform: translateY(-4px);
            box-shadow: 0 12px 35px rgba(255, 107, 0, 0.6);
        }

        .btn-primary:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            filter: grayscale(0.5);
        }

        .btn-secondary {
            background: rgba(51, 255, 51, 0.15);
            border: 2px solid #33ff33;
            color: #66ff66;
            font-size: 1.25em;
            padding: 18px 60px;
            backdrop-filter: blur(10px);
            box-shadow: 0 6px 25px rgba(51, 255, 51, 0.2);
            display: none !important;
        }

        .btn-secondary.show {
            display: inline-block !important;
        }

        .btn-secondary:hover {
            background: rgba(51, 255, 51, 0.25);
            transform: translateY(-4px);
            box-shadow: 0 12px 35px rgba(51, 255, 51, 0.4);
        }

        /* Scrollbar styling */
        ::-webkit-scrollbar {
            width: 12px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #ff6b00, #ff9933);
            border-radius: 10px;
            border: 2px solid rgba(0, 0, 0, 0.3);
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #ff9933, #ffcc00);
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 25px;
            }

            .logo-section {
                width: 100%;
                min-width: auto;
            }

            .title-section {
                text-align: center;
            }

            .title-section h1,
            .title-section .subtitle {
                text-align: center;
            }

            h1 {
                font-size: 2.2em;
            }

            .subtitle {
                font-size: 1em;
            }

            .glass-card {
                padding: 25px;
            }

            .rule-input-group {
                flex-direction: column;
            }

            .rule-input-group input[type="text"],
            .rule-input-group input[type="number"] {
                width: 100%;
            }

            .action-buttons {
                flex-direction: column;
            }

            .btn-primary,
            .btn-secondary {
                width: 100%;
            }

            .upload-options {
                grid-template-columns: 1fr;
            }
        }
        .btn-clear-files {
    padding: 10px 24px;
    background: rgba(255, 100, 100, 0.15);
    border: 4px solid rgba(255, 100, 100, 0.3);
    border-radius: 10px;
    color: #ff9999;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
    font-size: 0.9em;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-clear-files:hover {
    background: rgba(255, 100, 100, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 100, 100, 0.3);
}

.btn-remove-file {
    padding: 6px 16px;
    background: rgba(255, 50, 50, 0.15);
    border: 1px solid rgba(255, 50, 50, 0.3);
    border-radius: 8px;
    color: #ff6666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
    font-size: 0.85em;
    margin-left: 10px;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-remove-file:hover {
    background: rgba(255, 50, 50, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(255, 50, 50, 0.3);
}

.upload-label.drag-over {
    background: rgba(255, 107, 0, 0.15);
    border-color: #ff6b00;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(255, 107, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.upload-label.drag-over span {
    opacity: 0;
}

.upload-label.drag-over::after {
    content: 'Drop files here';
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5em;
    color: #ff6b00;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
    pointer-events: none;
    z-index: 10;
}
/* Upload icon styling */
.upload-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.3));
}

/* Slow bouncing animation for icons */
.bounce-icon {
    animation: slowBounce 3s ease-in-out infinite;
}

@keyframes slowBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Faster bounce on hover */
.upload-label:hover .bounce-icon {
    animation: slowBounce 1.5s ease-in-out infinite;
}

/* Remove old SVG styles if you have them */
.upload-label svg {
    display: none; /* Hide old SVG icons */
}

/* Stop bouncing when files are uploaded */
.upload-label.has-files .bounce-icon {
    animation: none;
}

.upload-label.has-files {
    border-color: rgba(102, 255, 102, 0.5);
    background: rgba(102, 255, 102, 0.05);
}

/* Triangle Default Cursor */
body {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><defs><filter id="glow"><feGaussianBlur stdDeviation="2"/><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter><linearGradient id="grad" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="%23ff6b00"/><stop offset=".5" stop-color="%23ff7a1a"/><stop offset="1" stop-color="%23ff9933"/></linearGradient></defs><circle cx="16" cy="16" r="14" fill="none" stroke="%23ffffff" stroke-width="1.5" opacity=".8"/><circle cx="16" cy="16" r="10" fill="none" stroke="%23ffff00" stroke-width="1.5" opacity=".9"/><path d="M16 6l10 18H6z" fill="url(%23grad)" stroke="%23000" stroke-width="1.5" filter="url(%23glow)"/><path d="M16 6l10 18H6z" fill="none" stroke="%23ffffff" stroke-width=".8" opacity=".9"/><line x1="12" y1="16" x2="14" y2="16" stroke="%23ffffff" stroke-width="1.5" opacity=".9"/><line x1="18" y1="16" x2="20" y2="16" stroke="%23ffffff" stroke-width="1.5" opacity=".9"/><circle cx="16" cy="15" r="1.5" fill="%23ffff00" opacity="1"/></svg>') 16 16, auto;
}

/* Triangle Pointer Cursor - for ALL clickable elements */
a, 
button, 
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="file"],
select,
label[for],
.clickable, 
.upload-label,
.btn,
.btn-primary,
.btn-secondary,
.btn-clear,
.btn-remove,
.rule-input-group button,
[role="button"] {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><defs><filter id="pg"><feGaussianBlur stdDeviation="2.5"/><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter><linearGradient id="pgrad" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="%23ff6b00"/><stop offset=".5" stop-color="%23ff7a1a"/><stop offset="1" stop-color="%23ff9933"/></linearGradient></defs><circle cx="16" cy="16" r="15" fill="none" stroke="%23ffffff" stroke-width="1.8" opacity=".85"/><circle cx="16" cy="16" r="12" fill="none" stroke="%23ffff00" stroke-width="1.8" opacity=".95"/><line x1="16" y1="2" x2="16" y2="8" stroke="%23ffffff" stroke-width="2" opacity=".9"/><line x1="16" y1="24" x2="16" y2="30" stroke="%23ffffff" stroke-width="2" opacity=".9"/><line x1="2" y1="16" x2="8" y2="16" stroke="%23ffffff" stroke-width="2" opacity=".9"/><line x1="24" y1="16" x2="30" y2="16" stroke="%23ffffff" stroke-width="2" opacity=".9"/><path d="M16 5l12 20H4z" fill="url(%23pgrad)" stroke="%23000" stroke-width="1.8" filter="url(%23pg)"/><path d="M16 5l12 20H4z" fill="none" stroke="%23ffffff" stroke-width=".8" opacity=".95"/><circle cx="16" cy="16" r="3" fill="%23ffff00" opacity="1" filter="url(%23pg)"/><path d="M24 8l2 2M8 8l-2 2M24 24l2-2M8 24l-2-2" stroke="%23ffffff" stroke-width="1.5" opacity=".8"/></svg>') 16 16, pointer !important;
}

/* Text cursor for inputs and textareas */
input[type="text"], 
input[type="number"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
textarea {
    cursor: text !important;
}

/* Default cursor for color picker */
input[type="color"] {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><defs><filter id="glow"><feGaussianBlur stdDeviation="2"/><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter><linearGradient id="grad" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="%23ff6b00"/><stop offset=".5" stop-color="%23ff7a1a"/><stop offset="1" stop-color="%23ff9933"/></linearGradient></defs><circle cx="16" cy="16" r="14" fill="none" stroke="%23ff6b00" stroke-width=".8" opacity=".3"/><circle cx="16" cy="16" r="10" fill="none" stroke="%23ff8822" stroke-width=".8" opacity=".4"/><path d="M16 6l10 18H6z" fill="url(%23grad)" stroke="%23000" stroke-width="1.5" filter="url(%23glow)"/><path d="M16 6l10 18H6z" fill="none" stroke="%23ff9933" stroke-width=".5" opacity=".7"/><line x1="12" y1="16" x2="14" y2="16" stroke="%23ff8822" stroke-width="1" opacity=".8"/><line x1="18" y1="16" x2="20" y2="16" stroke="%23ff8822" stroke-width="1" opacity=".8"/><circle cx="16" cy="15" r="1.5" fill="%23ff9933" opacity=".9"/></svg>') 16 16, auto !important;
}

/* Range slider cursor */
input[type="range"] {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><defs><filter id="pg"><feGaussianBlur stdDeviation="2.5"/><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter><linearGradient id="pgrad" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="%23ff6b00"/><stop offset=".5" stop-color="%23ff7a1a"/><stop offset="1" stop-color="%23ff9933"/></linearGradient></defs><circle cx="16" cy="16" r="15" fill="none" stroke="%23ff6b00" stroke-width="1" opacity=".3"/><circle cx="16" cy="16" r="12" fill="none" stroke="%23ff8822" stroke-width="1" opacity=".5"/><line x1="16" y1="2" x2="16" y2="8" stroke="%23ff8822" stroke-width="1.5" opacity=".7"/><line x1="16" y1="24" x2="16" y2="30" stroke="%23ff8822" stroke-width="1.5" opacity=".7"/><line x1="2" y1="16" x2="8" y2="16" stroke="%23ff8822" stroke-width="1.5" opacity=".7"/><line x1="24" y1="16" x2="30" y2="16" stroke="%23ff8822" stroke-width="1.5" opacity=".7"/><path d="M16 5l12 20H4z" fill="url(%23pgrad)" stroke="%23000" stroke-width="1.8" filter="url(%23pg)"/><path d="M16 5l12 20H4z" fill="none" stroke="%23ff9933" stroke-width=".6" opacity=".8"/><circle cx="16" cy="16" r="2.5" fill="%23ff9933" opacity=".95" filter="url(%23pg)"/><path d="M24 8l2 2M8 8l-2 2M24 24l2-2M8 24l-2-2" stroke="%23ff6b00" stroke-width="1" opacity=".6"/></svg>') 16 16, pointer !important;
}

/* Particle Background Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0 !important;
    pointer-events: none;
}

/* Make sure all content is above the canvas */
.container,
.glass-card,
header,
main {
    position: relative;
    z-index: 1;
}

/* FIX: Force all progress card children to respect width constraints */
#progressCard *,
#progressCard .progress-section,
#progressCard .progress-bar,
#progressCard .processing-log {
    max-width: 100% !important;
    box-sizing: border-box !important;
}


    


      /* Match footer to your other cards */
      .footer-card {
        background: rgba(255, 255, 255, 0.04);
        -webkit-backdrop-filter: blur(25px);
        backdrop-filter: blur(25px);
        border-radius: 25px;
        padding: 20px;
        margin: 30px auto 15px;
        max-width: 1200px;
        width: calc(100% - 40px);
        text-align: center;
        color: #ccc;
        font-size: 16px;
        
        letter-spacing: 1px;
       
        position: relative;
        overflow: hidden;
         z-index: 10;  /* All content above canvas */
        box-shadow: 
          0 8px 32px rgba(0, 0, 0, 0.3),
          inset 0 1px 0 rgba(255, 255, 255, 0.08);
        
        /* Animated dotted border */
        border: 4px dotted rgba(255, 107, 0, 0.5);
        animation: borderPulse 2s ease-in-out infinite;
      }

      /* Animated border glow */
      @keyframes borderPulse {
        0%, 100% {
          border-color: rgba(255, 107, 0, 0.5);
          box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 0 20px rgba(255, 107, 0, 0.2);
        }
        50% {
          border-color: rgba(255, 153, 51, 0.8);
          box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 0 40px rgba(255, 107, 0, 0.4);
        }
      }

      /* Gradient top line like other cards */
      .footer-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.5), transparent);
      }

      /* Hover effect */
      .footer-card:hover {
        border-color: rgba(255, 107, 0, 0.8);
        box-shadow: 
          0 8px 32px rgba(0, 0, 0, 0.3),
          0 0 50px rgba(255, 107, 0, 0.3),
          inset 0 1px 0 rgba(255, 255, 255, 0.08);
        transform: translateY(-2px);
        transition: all 0.3s ease;
      }

      .neon-text {
         font-size: 1.5em;
         font-weight: 600;
        font-family: 'Courier New', monospace;
        color: #ff8800;
        font-weight: 700;
        text-shadow:
          0 0 5px #ff8800,
          0 0 10px #ff8800,
          0 0 20px #ff8800,
          0 0 40px #ff8800;
        animation: neon-glow 1s infinite alternate;
        transition: all 0.3s ease-in-out;
      }

      /* Optional hover glow boost */
      .neon-text:hover {
        animation: neon-glow 0.6s infinite alternate;
        text-shadow:
          0 0 15px #ff8800,
          0 0 30px #ff5500,
          0 0 60px #ff5500,
          0 0 100px #ff5500;
        cursor: default;
      }

      @keyframes neon-glow {
        from {
          text-shadow:
            0 0 5px #ff8800,
            0 0 10px #ff8800,
            0 0 20px #ff8800,
            0 0 40px #ff8800;
        }
        to {
          text-shadow:
            0 0 10px #ff5500,
            0 0 20px #ff5500,
            0 0 40px #ff5500,
            0 0 80px #ff5500;
        }
      }

      /* Responsive adjustment for smaller screens */
      @media (max-width: 768px) {
        .footer-card {
          width: calc(100% - 40px);
          padding: 25px 20px;
          font-size: 14px;
        }
      }
    
/* CSV Export Button */
.btn-export-csv {
    background: linear-gradient(135deg, #00c853, #00e676);
    color: white;
    border: none;
    padding: 14px 35px;
    font-size: 17px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.4);
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-export-csv:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 200, 83, 0.6);
    background: linear-gradient(135deg, #00e676, #00ff88);
}

.btn-export-csv:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(0, 200, 83, 0.5);
}

.btn-export-csv:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* CSV Export Button Success State */
.btn-export-csv.success {
    background: linear-gradient(135deg, #00aa00, #00dd00);
    animation: successPulse 0.5s ease;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Toggle Switch Styles */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    border: 2px solid rgba(255, 107, 0, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background: linear-gradient(135deg, #ff6b00, #ff9933);
    border-color: rgba(255, 107, 0, 0.8);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(24px);
    background: white;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.6);
}

.toggle-switch:hover .toggle-slider {
    border-color: rgba(255, 107, 0, 0.6);
}

.toggle-label {
    color: #ffa64d;
    font-size: 0.95em;
    font-weight: 500;
    transition: color 0.3s ease;
}

.toggle-switch input[type="checkbox"]:checked ~ .toggle-label {
    color: #ffcc00;
}

.toggle-switch:hover .toggle-label {
    color: #ffcc00;
}

/* Info Icon and Tooltip Styles */
.info-icon {
    font-size: 1.2em;
    cursor: pointer;
    color: #bbb;
    opacity: 1;
    transition: all 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
}

.info-icon:hover {
    color: #fff;
    transform: scale(1.2);
}

.tooltip-popup {
    display: none;
    position: fixed;
    background: rgba(20, 20, 20, 0.98);
    border: 2px solid rgba(255, 107, 0, 0.6);
    border-radius: 12px;
    padding: 0;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    z-index: 10000;
    animation: tooltipFadeIn 0.3s ease;
    backdrop-filter: blur(10px);
}

.tooltip-popup.show {
    display: block;
}

.tooltip-header {
    background: linear-gradient(135deg, #ff6b00, #ff9933);
    color: white;
    padding: 12px 16px;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    font-size: 1em;
    border-bottom: 2px solid rgba(255, 107, 0, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tooltip-close {
    cursor: pointer;
    font-size: 1.3em;
    line-height: 1;
    opacity: 0.8;
    transition: all 0.2s ease;
    padding: 0 5px;
}

.tooltip-close:hover {
    opacity: 1;
    transform: scale(1.2);
}

.tooltip-content {
    padding: 16px;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.95em;
}

.tooltip-content strong {
    color: #ffcc00;
    font-weight: 600;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AI Chatbot Styles */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b00, #ff9933);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4),
                0 0 0 0 rgba(255, 107, 0, 0.7);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4),
                    0 0 0 0 rgba(255, 107, 0, 0.7);
        border-color: rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 6px 30px rgba(255, 107, 0, 0.6),
                    0 0 0 8px rgba(255, 107, 0, 0);
        border-color: rgba(255, 255, 255, 0.8);
    }
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 107, 0, 0.6);
    animation: pulseGlow 1s ease-in-out infinite;
}

.chatbot-toggle-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0000;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid #1a1a1a;
}

.chatbot-badge.hidden {
    display: none;
}

.chatbot-container {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 60px);
    height: 500px;
    max-height: calc(100vh - 150px);
    background: rgba(20, 20, 20, 0.98);
    border: 2px solid rgba(255, 107, 0, 0.6);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    z-index: 9998;
    display: none;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: chatbotSlideIn 0.3s ease;
}

.chatbot-container.show {
    display: flex;
}

@keyframes chatbotSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    background: linear-gradient(135deg, #ff6b00, #ff9933);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 107, 0, 0.8);
}

.chatbot-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.chatbot-title {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.chatbot-status {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.chatbot-minimize {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-minimize:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(10, 10, 10, 0.5);
}

.chatbot-messages::-webkit-scrollbar {
    width: 8px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 0, 0.5);
    border-radius: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 0, 0.7);
}

.message {
    display: flex;
    gap: 10px;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #ff6b00, #ff9933);
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #4a90e2, #5ba3f5);
}

.message-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-text {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.8;
    word-wrap: break-word;
}

.message-text strong {
    color: #ffcc00;
    font-weight: 600;
    font-size: 15px;
}

.message-text .bullet-item {
    margin: 6px 0;
    padding-left: 4px;
    line-height: 1.6;
}

.bot-message .message-text {
    border-top-left-radius: 4px;
}

.user-message .message-text {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.3), rgba(255, 153, 51, 0.3));
    border-top-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 8px;
}

.user-message .message-time {
    text-align: right;
}

.chatbot-input-container {
    display: flex;
    gap: 10px;
    padding: 16px;
    background: rgba(30, 30, 30, 0.8);
    border-top: 1px solid rgba(255, 107, 0, 0.3);
}

.chatbot-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 20px;
    padding: 10px 16px;
    color: #e0e0e0;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.chatbot-input:focus {
    border-color: rgba(255, 107, 0, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.chatbot-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chatbot-send {
    background: linear-gradient(135deg, #ff6b00, #ff9933);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 18px;
}

.chatbot-send:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.5);
}

.chatbot-send:active {
    transform: scale(0.95);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.6);
    animation: typingAnimation 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnimation {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .chatbot-container {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 100px;
        height: 450px;
    }

    .chatbot-toggle {
        right: 20px;
        bottom: 20px;
    }
}
