        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
            min-height: 100vh;
            padding: 0px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        header {
            text-align: center;
            color: white;
            margin-bottom: 40px;
        }

        h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .subtitle {
            font-size: 1.1em;
            opacity: 0.9;
        }

        .info-section {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            margin-bottom: 30px;
        }

        .info-header {
            text-align: center;
            color: #1e40af;
            font-size: 2em;
            margin-bottom: 20px;
            font-weight: bold;
        }

        .info-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 25px;
        }

        .info-stat-box {
            background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            border: 2px solid #1e40af;
        }

        .info-stat-label {
            font-size: 0.9em;
            color: #666;
            margin-bottom: 8px;
        }

        .info-stat-value {
            font-size: 1.8em;
            color: #1e40af;
            font-weight: bold;
        }

        .info-description {
            background: #f9fafb;
            padding: 20px;
            border-radius: 10px;
            line-height: 1.6;
            color: #333;
        }

        .info-description h3 {
            color: #1e40af;
            margin-bottom: 10px;
            font-size: 1.2em;
        }

        .info-description p {
            margin-bottom: 12px;
        }

        .info-description strong {
            color: #1e40af;
        }

        ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
            background-color: #333333;
            display: flex;
        }

        ul li a {
            display: block;
            color: white;
            padding: 14px 16px;
            text-decoration: none;
        }
        ul li.active{
            background-color: #4e4e4e;
        }

        ul li a:hover {
            background-color: #111111;
        }
        .upload-section {
            background: white;
            border-radius: 15px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            margin-bottom: 30px;
            text-align: center;
        }

        .upload-area {
            border: 3px dashed #1e40af;
            border-radius: 10px;
            padding: 60px 20px;
            cursor: pointer;
            transition: all 0.3s;
            background: #eff6ff;
        }

        .upload-area:hover {
            background: #dbeafe;
            border-color: #1e3a8a;
        }

        .upload-area.dragover {
            background: #bfdbfe;
            border-color: #1e3a8a;
            transform: scale(1.02);
        }

        .upload-icon {
            font-size: 4em;
            margin-bottom: 20px;
        }

        .upload-text {
            font-size: 1.2em;
            color: #555;
            margin-bottom: 15px;
        }

        input[type="file"] {
            display: none;
        }

        .btn {
            background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            font-size: 1em;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(30, 64, 175, 0.4);
        }

        .loading {
            display: none;
            text-align: center;
            padding: 20px;
            color: #ffffff;
            font-size: 1.2em;
        }

        .loading.active {
            display: block;
        }

        .results {
            display: none;
        }

        .results.active {
            display: block;
        }

        .stats-section {
            background: white;
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

        .stats-header {
            text-align: center;
            color: #1e40af;
            font-size: 1.8em;
            margin-bottom: 25px;
            font-weight: bold;
        }

        .hot-cold-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }

        .hot-numbers, .cold-numbers {
            padding: 20px;
            border-radius: 10px;
        }

        .hot-numbers {
            background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
        }

        .cold-numbers {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
        }

        .stats-title {
            font-size: 1.3em;
            margin-bottom: 15px;
            text-align: center;
            font-weight: bold;
        }

        .hot-numbers .stats-title {
            color: #dc2626;
        }

        .cold-numbers .stats-title {
            color: #0369a1;
        }

        .number-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
        }

        .stat-number {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 8px;
            border-radius: 8px;
            background: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            min-width: 50px;
        }

        .stat-number .number {
            font-size: 1.2em;
            font-weight: bold;
        }

        .hot-numbers .stat-number .number {
            color: #dc2626;
        }

        .cold-numbers .stat-number .number {
            color: #0369a1;
        }

        .stat-number .count {
            font-size: 0.8em;
            color: #666;
        }

        .generator-section {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            padding: 25px;
            border-radius: 10px;
            text-align: center;
            margin-bottom: 20px;
        }

        .mega-ball-section {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            padding: 25px;
            border-radius: 10px;
            text-align: center;
        }

        .mega-ball-section .stats-header {
            font-size: 1.5em;
            color: #92400e;
            margin-bottom: 20px;
        }

        .mega-ball-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        .mega-hot, .mega-cold {
            padding: 15px;
            border-radius: 10px;
            background: white;
        }

        .mega-stats-title {
            font-size: 1.1em;
            margin-bottom: 12px;
            font-weight: bold;
        }

        .mega-hot .mega-stats-title {
            color: #dc2626;
        }

        .mega-cold .mega-stats-title {
            color: #0369a1;
        }

        .mega-number-list {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            justify-content: center;
        }

        .mega-stat-number {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 6px;
            border-radius: 6px;
            background: #f9fafb;
            min-width: 40px;
        }

        .mega-stat-number .number {
            font-size: 1em;
            font-weight: bold;
        }

        .mega-hot .mega-stat-number .number {
            color: #dc2626;
        }

        .mega-cold .mega-stat-number .number {
            color: #0369a1;
        }

        .mega-stat-number .count {
            font-size: 0.75em;
            color: #666;
        }

        .mega-generator {
            display: flex;
            gap: 15px;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
        }

        .mega-gen-btn {
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 25px;
            font-size: 1em;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .mega-gen-btn.hot {
            background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        }

        .mega-gen-btn.cold {
            background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
        }

        .mega-gen-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.3);
        }

        .mega-gen-btn:active {
            transform: translateY(0);
        }

        .generated-mega-ball {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 80px;
        }

        .gen-mega-ball {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.6em;
            color: #000;
            box-shadow: 0 4px 8px rgba(0,0,0,0.3);
            animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            background: #fbbf24;
            border: 3px solid #d97706;
        }

        .generator-title {
            font-size: 1.4em;
            color: #92400e;
            margin-bottom: 15px;
            font-weight: bold;
        }

        .generator-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .gen-btn {
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 25px;
            font-size: 1em;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .gen-btn.hot {
            background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        }

        .gen-btn.cold {
            background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
        }

        .gen-btn.mixed {
            background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
        }

        .gen-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.3);
        }

        .gen-btn:active {
            transform: translateY(0);
        }

        .generated-numbers {
            display: flex;
            gap: 12px;
            justify-content: center;
            align-items: center;
            min-height: 70px;
            flex-wrap: wrap;
        }

        .gen-ball {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.4em;
            color: #000;
            box-shadow: 0 4px 8px rgba(0,0,0,0.3);
            animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            background: #fff;
            border: 2px solid #e5e7eb;
        }

        @keyframes popIn {
            0% {
                transform: scale(0) rotate(0deg);
                opacity: 0;
            }
            50% {
                transform: scale(1.2) rotate(180deg);
            }
            100% {
                transform: scale(1) rotate(360deg);
                opacity: 1;
            }
        }

        .gen-ball:nth-child(1) { animation-delay: 0s; }
        .gen-ball:nth-child(2) { animation-delay: 0.1s; }
        .gen-ball:nth-child(3) { animation-delay: 0.2s; }
        .gen-ball:nth-child(4) { animation-delay: 0.3s; }
        .gen-ball:nth-child(5) { animation-delay: 0.4s; }

        .results-header {
            background: white;
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            text-align: center;
        }

        .results-header h2 {
            color: #1e40af;
            margin-bottom: 10px;
            font-size: 2em;
        }

        .results-count {
            color: #666;
            font-size: 1.3em;
            font-weight: bold;
        }

        @media (max-width: 768px) {
            .hot-cold-container {
                grid-template-columns: 1fr;
            }

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

            .gen-ball {
                width: 50px;
                height: 50px;
                font-size: 1.2em;
            }

            .info-stats {
                grid-template-columns: 1fr;
            }
        }

        .drawing-card {
            background: white;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 15px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.2);
            transition: transform 0.2s;
        }

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

        .drawing-date {
            font-size: 1.1em;
            color: #1e40af;
            font-weight: bold;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .numbers-container {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }

        .number-ball {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.2em;
            color: #000;
            background: #fff;
            box-shadow: 0 3px 8px rgba(0,0,0,0.3);
            border: 2px solid #e5e7eb;
        }

        .mega-ball {
            background: #fbbf24;
            border: 2px solid #d97706;
            color: #000;
        }

        .multiplier {
            background: #ffd93d;
            color: #333;
            padding: 5px 15px;
            border-radius: 20px;
            font-weight: bold;
            margin-left: 10px;
        }

        .separator {
            font-size: 1.5em;
            color: #ccc;
            margin: 0 5px;
        }

        .error {
            background: #fee;
            border: 2px solid #fcc;
            border-radius: 10px;
            padding: 20px;
            color: #c33;
            text-align: center;
            display: none;
        }

        .error.active {
            display: block;
        }

        @media (max-width: 768px) {
            h1 {
                font-size: 2em;
            }

            .upload-section {
                padding: 20px;
            }

            .drawing-card {
                padding: 15px;
            }

            .number-ball {
                width: 45px;
                height: 45px;
                font-size: 1em;
            }
        }
