* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #1a0505 0%, #3a0a0a 100%);
            color: #f5eaea;
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
        }
        
        /* Animated neural network background */
        .neural-network {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.15;
            pointer-events: none;
            overflow: hidden;
        }
        
        .node {
            position: absolute;
            border-radius: 50%;
            background: radial-gradient(circle, #d64545 0%, #9e1c1c 100%);
            box-shadow: 0 0 15px rgba(214, 69, 69, 0.7);
            transition: transform 50s linear;
        }
        
        .connection {
            position: absolute;
            background: linear-gradient(to right, rgba(214, 69, 69, 0.3), rgba(158, 28, 28, 0.3));
            transform-origin: 0 0;
            transition: opacity 10s ease-in-out;
        }
        
        /* Sidebar styling */
        .sidebar {
            width: 320px;
            background: rgba(40, 10, 10, 0.95);
            height: 100vh;
            position: fixed;
            left: -320px;
            top: 0;
            overflow-y: auto;
            padding: 25px;
            z-index: 1000;
            border-right: 1px solid rgba(214, 69, 69, 0.3);
            box-shadow: 5px 0 25px rgba(0, 0, 0, 0.4);
            transition: left 0.4s ease-out;
        }
        
        .sidebar.active {
            left: 0;
        }
        
        .sidebar-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(214, 69, 69, 0.3);
        }
        
        .sidebar-title {
            font-size: 1.8rem;
            font-weight: 600;
            background: linear-gradient(to right, #f5eaea, #e0c9c9);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .close-btn {
            background: rgba(214, 69, 69, 0.2);
            border: none;
            color: #e0c9c9;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        
        .close-btn:hover {
            background: rgba(214, 69, 69, 0.4);
            transform: rotate(90deg);
        }
        
        .instructions-section {
            margin-bottom: 30px;
        }
        
        .instructions-section h3 {
            font-size: 1.4rem;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            color: #e0c9c9;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(214, 69, 69, 0.3);
        }
        
        .instructions-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .instruction-item {
            display: flex;
            gap: 15px;
            align-items: flex-start;
            background: rgba(90, 25, 25, 0.4);
            padding: 18px;
            border-radius: 12px;
            transition: all 0.3s ease;
        }
        
        .instruction-item:hover {
            background: rgba(110, 35, 35, 0.6);
            transform: translateX(5px);
        }
        
        .instruction-item i {
            color: #d64545;
            font-size: 1.4rem;
            margin-top: 3px;
        }
        
        .instruction-item div {
            flex: 1;
        }
        
        .instruction-item div strong {
            display: block;
            margin-bottom: 8px;
            font-size: 1.1rem;
            color: #f5eaea;
        }
        
        .instruction-item div p {
            font-size: 1rem;
            color: #e0c9c9;
            line-height: 1.6;
        }
        
        /* Main content */
        .main-content {
            flex: 1;
            padding: 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        /* Header with logo */
        .header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            margin: 0 0 40px;
            padding: 0 20px;
            max-width: 900px;
            width: 100%;
            position: relative;
        }
        
        .logo-container {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .logo-icon {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, #d64545 0%, #9e1c1c 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 5px 20px rgba(158, 28, 28, 0.5);
        }
        
        .logo-icon i {
            font-size: 32px;
            color: #fff;
        }
        
        .logo-text {
            display: flex;
            flex-direction: column;
        }
        
        .logo-text h1 {
            font-size: 2.8rem;
            font-weight: 700;
            letter-spacing: 1px;
            background: linear-gradient(to right, #f5eaea, #e0c9c9);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .logo-text p {
            font-size: 1rem;
            color: #e0c9c9;
            letter-spacing: 3px;
            text-transform: uppercase;
            margin-top: -5px;
            text-align: center;
        }
        
        /* Card styling */
        .card {
            background: rgba(60, 15, 15, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(214, 69, 69, 0.3);
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            max-width: 900px;
            position: relative;
            overflow: hidden;
        }
        
        /* Form styling */
        .form-container {
            text-align: center;
            width: 100%;
            position: relative;
            z-index: 2;
        }
        
        .form-container h2 {
            font-size: 1.8rem;
            margin-bottom: 25px;
            color: #f5eaea;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }
        
        .file-input-container {
            position: relative;
            margin-bottom: 25px;
        }
        
        .file-input-container input[type="file"] {
            position: absolute;
            left: 0;
            top: 0;
            opacity: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
        }
        
        .file-input-label {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
            background: rgba(90, 25, 25, 0.6);
            border: 2px dashed #d64545;
            border-radius: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .file-input-label:hover {
            background: rgba(110, 35, 35, 0.7);
            border-color: #e57d7d;
        }
        
        .file-input-label i {
            font-size: 4rem;
            color: #d64545;
            margin-bottom: 15px;
        }
        
        .file-input-label p {
            font-size: 1.2rem;
            color: #e0c9c9;
            margin-bottom: 5px;
        }
        
        .file-input-label span {
            font-size: 0.9rem;
            color: #e0c9c9;
        }
        
        /* Preview container */
        .preview-container {
            margin: 25px 0;
            display: none;
            flex-direction: column;
            align-items: center;
            gap: 15px;
        }
        
        .preview-container.active {
            display: flex;
            animation: fadeIn 0.5s ease-out;
        }
        
        .preview-title {
            font-size: 1.2rem;
            color: #e0c9c9;
        }
        
        .preview-image {
            max-width: 100%;
            max-height: 300px;
            border-radius: 15px;
            border: 2px solid rgba(214, 69, 69, 0.5);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }
        
        .submit-btn {
            padding: 15px 45px;
            font-size: 1.2rem;
            font-weight: 600;
            background: linear-gradient(135deg, #d64545 0%, #9e1c1c 100%);
            color: white;
            border: none;
            cursor: pointer;
            border-radius: 50px;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(158, 28, 28, 0.4);
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin-top: 10px;
        }
        
        .submit-btn:hover {
            background: linear-gradient(135deg, #e05757 0%, #b12121 100%);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(158, 28, 28, 0.6);
        }
        
        .submit-btn:active {
            transform: translateY(0);
        }
        
        .submit-btn:disabled {
            background: #555;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        /* Instruction button at bottom left */
        .instructions-btn {
            position: fixed;
            bottom: 30px;
            left: 30px;
            padding: 15px 30px;
            background: rgba(60, 15, 15, 0.9);
            border: 1px solid rgba(214, 69, 69, 0.5);
            color: #e0c9c9;
            border-radius: 50px;
            cursor: pointer;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s ease;
            z-index: 10;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        }
        
        .instructions-btn:hover {
            background: rgba(90, 25, 25, 0.95);
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
        }
        
        /* Result styling */
        .result-box {
            width: 100%;
            padding: 30px;
            background: rgba(60, 15, 15, 0.9);
            border-radius: 20px;
            border: 1px solid rgba(214, 69, 69, 0.3);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
            margin-top: 20px;
            display: none;
        }
        
        .result-box.active {
            display: block;
            animation: fadeIn 0.6s ease-out;
        }
        
        .result-header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-bottom: 25px;
        }
        
        .result-header h3 {
            font-size: 1.8rem;
            color: #f5eaea;
        }
        
        .result-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 25px;
        }
        
        .prediction {
            font-size: 1.8rem;
            font-weight: 700;
            padding: 15px 40px;
            border-radius: 50px;
            display: inline-block;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: white;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        
        .detection-image {
            max-width: 100%;
            max-height: 500px;
            border-radius: 15px;
            border: 2px solid rgba(214, 69, 69, 0.5);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }
        
        .result-details {
            width: 100%;
            background: rgba(90, 25, 25, 0.6);
            border-radius: 15px;
            padding: 20px;
            margin-top: 20px;
        }
        
        .result-details h4 {
            font-size: 1.4rem;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .result-details p {
            line-height: 1.6;
        }
        
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #d64545;
    color: #fff;
    border: 2px solid #d64545;
}

.btn-primary:hover {
    background-color: #fff;
    color: #d64545;
}

.footer {
    text-align: center;
    margin-top: 40px;
    color: #e0c9c9;
    font-size: 0.9rem;
    padding: 20px;
    width: 100%;
}
        
        /* Overlay for sidebar */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 999;
            display: none;
        }
        
        .overlay.active {
            display: block;
        }

        /* Modal for Tumor Descriptions */
        .modal {
            display: none;
            position: fixed;
            z-index: 1001;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.7);
            animation: fadeIn 0.3s;
        }

        .modal-content {
            background-color: #2a0a0a;
            margin: 10% auto;
            padding: 30px;
            border: 1px solid rgba(214, 69, 69, 0.3);
            width: 80%;
            max-width: 800px;
            border-radius: 15px;
            position: relative;
            box-shadow: 0 10px 40px rgba(0,0,0,0.5);
        }

        .close-modal {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }

        .close-modal:hover,
        .close-modal:focus {
            color: #d64545;
            text-decoration: none;
            cursor: pointer;
        }
        
        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        
        /* Responsive design */
        @media (max-width: 768px) {
            .logo-text h1 {
                font-size: 2.3rem;
                line-height: 1.2;
            }
            
            .logo-text p {
                font-size: 0.85rem;
                letter-spacing: 2px;
            }
            
            .logo-icon {
                width: 60px;
                height: 60px;
            }
            
            .logo-icon i {
                font-size: 28px;
            }
            
            .card {
                padding: 25px;
            }
            
            .form-container h2 {
                font-size: 1.7rem;
                text-align: center;
            }
            
            .submit-btn {
                padding: 12px 35px;
                font-size: 1.1rem;
            }
            
            .prediction {
                font-size: 1.5rem;
                padding: 12px 30px;
            }
            
            .sidebar {
                width: 280px;
            }
            
            /* Enhanced instruction button for tablets */
            .instructions-btn {
                padding: 12px 25px;
                font-size: 1rem;
                bottom: 20px;
                left: 20px;
            }
        }
        
        @media (max-width: 600px) {
            /* Mobile-first adjustments for title */
            .logo-container {
                flex-direction: column;
                text-align: center;
                gap: 10px;
            }
            
            .logo-text h1 {
                font-size: 2rem;
            }
            
            .logo-text p {
                letter-spacing: 1px;
            }
            
            .header {
                margin-bottom: 25px;
            }
            
            /* Instruction button for mobile */
            .instructions-btn {
                left: 50%;
                transform: translateX(-50%);
                width: 90%;
                max-width: 300px;
                text-align: center;
                justify-content: center;
            }
        }
        
        @media (max-width: 480px) {
            /* Further mobile optimizations */
            .logo-text h1 {
                font-size: 1.8rem;
            }
            
            .logo-icon {
                width: 55px;
                height: 55px;
            }
            
            .card {
                padding: 20px 15px;
            }
            
            .file-input-label {
                padding: 30px 15px;
            }
            
            .file-input-label i {
                font-size: 3rem;
            }
            
            .file-input-label p {
                font-size: 1rem;
            }
            
            .result-header h3 {
                font-size: 1.5rem;
            }
            
            .prediction {
                font-size: 1.3rem;
                padding: 10px 25px;
            }
            
            .sidebar {
                width: 260px;
                padding: 20px 15px;
            }
            
            /* Mobile-friendly instruction button */
            .instructions-btn {
                padding: 10px 20px;
                font-size: 0.95rem;
                bottom: 15px;
            }
            
            .instructions-btn i {
                font-size: 0.95rem;
            }
            
            /* Adjust sidebar title */
            .sidebar-title {
                font-size: 1.5rem;
            }
            
            .instructions-section h3 {
                font-size: 1.2rem;
            }
            
            .instruction-item {
                padding: 14px;
            }
            
            .instruction-item div strong {
                font-size: 1rem;
            }
            
            .instruction-item div p {
                font-size: 0.9rem;
            }
        }
        
        @media (max-width: 360px) {
            /* Extra small devices */
            .logo-text h1 {
                font-size: 1.6rem;
            }
            
            .logo-text p {
                font-size: 0.75rem;
            }
            
            .form-container h2 {
                font-size: 1.4rem;
            }
            
            .instructions-btn {
                padding: 8px 16px;
                font-size: 0.9rem;
                bottom: 10px;
            }
            
            .file-input-label p {
                font-size: 0.95rem;
            }
        }
