/* =================================== */
/* == CSS CHO THÔNG BÁO HỆ THỐNG == */
/* =================================== */

.hacker-notification-icon {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #00ff00; 
    color: #000000; /* Màu của SVG icon (fill="currentColor") */
    border: 2px solid #008F11; 
    width: 44px;   /* Kích thước nút tròn */
    height: 44px;  /* Kích thước nút tròn */
    border-radius: 50%; /* Cho nút hình tròn */
    cursor: pointer;
    z-index: 1002; 
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.6);
    user-select: none; 
    transition: all 0.2s ease-in-out;
    display: flex; /* Để căn giữa SVG bên trong */
    align-items: center;
    justify-content: center;
    padding: 0; /* Bỏ padding nếu dùng flex để căn giữa */
}

.hacker-notification-icon:hover {
    background-color: #39FF14; 
    box-shadow: 0 0 18px #39FF14, 0 0 25px #39FF14;
    transform: scale(1.1); 
}

.hacker-notification-icon svg { /* Định dạng cho SVG bên trong nút */
    width: 22px;  /* Kích thước của biểu tượng chuông */
    height: 22px; /* Kích thước của biểu tượng chuông */
    display: block; /* Đảm bảo SVG là block để căn giữa */
}

.hacker-notification-badge {
    position: absolute;
    top: 0px;   /* Điều chỉnh vị trí badge cho nút tròn */
    right: 0px; /* Điều chỉnh vị trí badge cho nút tròn */
    background-color: #ff3333; 
    color: white;
    border-radius: 50%;
    padding: 0px 4px; /* Điều chỉnh padding */
    font-size: 10px;  
    font-weight: bold;
    border: 1px solid #000;
    min-width: 16px; 
    height: 16px;
    line-height: 15px; /* Căn chữ badge vào giữa theo chiều dọc */
    text-align: center;
}

.hacker-notification-panel {
    position: fixed;
    bottom: 80px; /* Vị trí phía trên icon */
    right: 25px;
    width: 360px; 
    max-height: 400px; /* Giới hạn chiều cao, sẽ có scroll */
    background-color: rgba(5, 15, 5, 0.97); /* Nền tối, gần như không trong suốt */
    border: 1px solid #00ff00;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.5);
    z-index: 1001; /* Dưới icon một chút để icon luôn thấy được */
    border-radius: 0;
    display: none; /* Ẩn mặc định */
    color: #aaffaa; 
    font-size: 0.9em;
    animation: hackerPanelFadeIn 0.3s ease-out forwards;
    overflow: hidden; /* Để chứa header và list */
}

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

.hacker-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(0, 40, 0, 0.9); 
    border-bottom: 1px solid #008F11; 
    color: #00ff00; 
    font-weight: bold;
}

.hacker-notification-header span {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95em;
}

/* CSS cho nút đóng panel thông báo, đảm bảo nó không bị ảnh hưởng bởi style button chung */
.hacker-close-button { 
    background-color: transparent !important; 
    color: #00ff00 !important;
    border: none !important;
    font-size: 1.6em !important; 
    padding: 0 5px !important;
    margin: 0 !important; /* Reset margin cho nút này */
    cursor: pointer;
    line-height: 1;
    box-shadow: none !important; /* Override box-shadow của button chung */
    text-transform: none !important; /* Override text-transform */
    letter-spacing: normal !important; /* Override letter-spacing */
    width: auto !important; /* Đảm bảo nút đóng không bị full-width nếu có quy tắc chung */
}
.hacker-close-button:hover {
    color: #ff4444 !important; /* Màu đỏ khi hover */
    background-color: transparent !important; /* Giữ nền trong suốt */
    box-shadow: none !important;
    transform: none !important; /* Bỏ hiệu ứng transform nếu có */
}

.hacker-notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: calc(400px - 42px); /* Panel max-height - chiều cao header (~42px) */
    overflow-y: auto; /* Thêm thanh cuộn nếu nhiều thông báo */
}

/* Tùy chỉnh thanh cuộn cho danh sách thông báo (Webkit) */
.hacker-notification-list::-webkit-scrollbar {
    width: 8px;
}
.hacker-notification-list::-webkit-scrollbar-track {
    background: #050505; /* Nền thanh cuộn tối */
}
.hacker-notification-list::-webkit-scrollbar-thumb {
    background: #008F11; /* Màu xanh lá đậm cho con trượt */
}
.hacker-notification-list::-webkit-scrollbar-thumb:hover {
    background: #00ff00; /* Màu xanh lá sáng khi hover */
}
/* Tùy chỉnh thanh cuộn cho danh sách thông báo (Firefox) */
.hacker-notification-list {
    scrollbar-color: #008F11 #050505;
    scrollbar-width: thin;
}


.hacker-notification-list li {
    padding: 10px 15px;
    border-bottom: 1px solid #003300; /* Đường kẻ ngăn cách rất tối */
    display: flex;
    flex-direction: column; 
    gap: 5px; 
    transition: background-color 0.2s ease;
}
.hacker-notification-list li:last-child {
    border-bottom: none;
}
.hacker-notification-list li:hover {
    background-color: rgba(0, 255, 0, 0.05); /* Hiệu ứng hover nhẹ */
}

.notification-text {
    color: #ccffcc; /* Màu chữ sáng hơn cho nội dung chính */
    line-height: 1.4;
    font-size: 0.95em;
}

.notification-time {
    font-size: 0.8em;
    color: #008F11; /* Màu xanh lá đậm hơn cho thời gian */
    text-align: right;
    font-style: italic;
}

/* Responsive adjustments cho các yếu tố thông báo */
@media (max-width: 600px) {
    .hacker-notification-icon {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
    .hacker-notification-icon svg {
        width: 20px;
        height: 20px;
    }
    .hacker-notification-badge {
        min-width: 14px;
        height: 14px;
        line-height: 13px; /* Căn giữa text badge */
        font-size: 9px;
        padding: 0px 3px;
        top: -1px; 
        right: -1px; 
    }
    .hacker-notification-panel {
        width: calc(100% - 30px); /* Panel chiếm phần lớn chiều rộng trên màn hình nhỏ */
        bottom: 65px; /* Điều chỉnh vị trí panel so với icon */
        right: 15px;
        max-height: 300px; /* Giảm chiều cao panel trên màn hình nhỏ */
    }
    .hacker-notification-list {
        max-height: calc(300px - 42px); /* Điều chỉnh chiều cao list theo panel */
    }
}

/* Các CSS Responsive khác của bạn giữ nguyên */
/* Ví dụ:
@media (max-width: 600px) {
    body { ... }
    ... các style khác ...
}
@media (max-width: 800px) {
    .grid-container { ... }
    ... các style khác ...
}
*/

/* =================================== */
/* == CSS RESPONSIVE BỔ SUNG == */
/* =================================== */

/* --- Breakpoint cho thiết bị di động nhỏ hơn (ví dụ: dưới 600px) --- */
@media (max-width: 600px) {
    body {
        padding: 10px 5px; /* Giảm padding body hơn nữa */
        font-size: 14px; /* Có thể giảm kích thước font cơ sở, ảnh hưởng đến rem/em */
        line-height: 1.6;
    }

    .container {
        padding: 15px 10px; /* Giảm padding container */
        margin: 10px auto;
    }

    h1 {
        font-size: 1.8em; /* Giảm font heading lớn */
        letter-spacing: 0.5px;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    h3 {
        font-size: 1.25em; /* Giảm font heading trung bình */
        padding-left: 8px;
        margin-bottom: 15px;
    }
    
    h4 {
        font-size: 1.05em; /* Giảm font H4 */
        margin-bottom: 5px;
    }

    .section {
        padding: 15px 10px; /* Giảm padding section */
        margin-bottom: 20px;
    }

    .section .description,
    .section .input-note {
        font-size: 0.9em; /* Giảm font cho mô tả và ghi chú */
        margin-bottom: 8px;
    }
     .section .input-note {
        margin-top: -8px;
     }

    label {
        font-size: 0.95em;
        margin-bottom: 5px;
    }

    input[type="number"],
    select {
        padding: 8px; /* Giảm padding input/select */
        font-size: 0.95em; 
        margin-bottom: 10px;
    }
    
    textarea {
        height: 220px; /* Giảm chiều cao textarea */
        font-size: 0.85em; /* Giảm font code để vừa nhiều hơn */
        padding: 10px;
    }

    /* Làm cho tất cả các nút rộng hết cỡ để dễ chạm hơn trên di động */
    button {
        width: 100%; 
        padding: 12px 10px; 
        font-size: 0.95em; 
        margin-top: 10px;
        margin-bottom: 8px; 
        margin-right: 0; /* Reset margin phải khi full-width */
    }
    
    .code-actions button { /* Nút copy có thể cần padding khác một chút */
        padding: 10px 10px;
        font-size: 0.9em;
    }

    #info-module pre { /* License text */
        font-size: 0.75em;
        padding: 8px;
        max-height: 150px;
    }
     #info-module p {
        font-size: 0.9em;
     }


    .instructions ul li {
        padding-left: 15px; /* Điều chỉnh padding cho list items */
        margin-bottom: 6px;
        font-size: 0.9em;
    }
    .instructions ul li::before {
        content: ">"; /* Đổi thành ký tự đơn giản hơn nếu ">>" quá rộng */
    }
}

/* --- Tinh chỉnh cho breakpoint hiện có (ví dụ: 800px) --- */
/* Bạn đã có một media query cho max-width: 800px. 
   Đây là nơi bạn có thể thêm hoặc tinh chỉnh các quy tắc cho màn hình tablet và điện thoại lớn hơn. */
@media (max-width: 800px) {
    /* --- Các quy tắc hiện có của bạn trong media query 800px --- */
    /* .grid-container {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 2em; 
    }
    h2 { // Nếu bạn có H2
        font-size: 1.5em;
    }
    body {
        padding: 10px; 
    }
    .container {
        padding: 15px;
    } */
    /* --- Hết phần quy tắc hiện có --- */

    /* --- Bổ sung/Tinh chỉnh cho 800px breakpoint (nếu cần) --- */
    /* Ví dụ: */
    .grid-container { /* Đảm bảo đã có quy tắc này */
        grid-template-columns: 1fr; /* Chuyển thành 1 cột */
    }
    h1 { font-size: 2em; } /* Điều chỉnh nếu cần */

    h3 {
        font-size: 1.35em; /* Hơi giảm font H3 cho tablet */
    }

    textarea {
        height: 260px; /* Chiều cao textarea cho tablet */
    }

    /* Có thể bạn không muốn nút full-width ở kích thước tablet này */
    /* Nếu muốn nút không full-width ở 800px nhưng full-width ở <600px, 
       hãy đảm bảo quy tắc width:100% cho button nằm trong media query nhỏ hơn (ví dụ: max-width: 600px) */
}

/* --- Cân nhắc cho màn hình rất rộng (ví dụ: trên 1400px hoặc 1600px) --- */
/* Nếu bạn muốn nội dung không quá trải dài trên các màn hình siêu rộng, 
   bạn có thể giới hạn thêm max-width của .container ở đây. 
   Tuy nhiên, max-width: 1100px hiện tại đã khá tốt. */
/* @media (min-width: 1600px) {
    .container {
        max-width: 1200px; // Hoặc một giá trị phù hợp khác
    }
}
*/
        
        /* CSS Styles giữ nguyên như phiên bản Hacker Theme trước đó */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Consolas', 'Lucida Console', 'Courier New', monospace;
            line-height: 1.7;
            background-color: #0a0a0a; /* Darker background */
            color: #00ff00; /* Neon green text */
            padding: 20px;
            /* Subtle scanlines effect */
            background-image: repeating-linear-gradient(
                0deg,
                rgba(0, 255, 0, 0.03),
                rgba(0, 255, 0, 0.03) 1px,
                transparent 1px,
                transparent 3px
            );
        }

        /* --- Container --- */
        .container {
            max-width: 1100px;
            margin: 20px auto;
            background: rgba(10, 25, 10, 0.85); /* Dark, slightly transparent green tint */
            padding: 25px;
            border: 1px solid #00ff00;
            box-shadow: 0 0 15px rgba(0, 255, 0, 0.3), inset 0 0 10px rgba(0,0,0,0.5);
            border-radius: 0px; /* Sharp edges */
        }

        /* --- Headings --- */
        h1, h2, h3, h4 {
            font-family: 'Orbitron', 'Consolas', 'Courier New', monospace; /* More techy font if available */
            color: #00ff00; /* Neon green */
            text-shadow: 0 0 5px #00ff00, 0 0 10px rgba(0,255,0,0.7);
            margin-bottom: 20px;
            letter-spacing: 1px;
        }
        h1 {
            text-align: center;
            font-size: 2.5em;
            text-transform: uppercase;
            border-bottom: 1px dashed #00ff00;
            padding-bottom: 10px;
        }
        h2 {
            font-size: 1.8em;
            text-align: center;
        }
        h3 {
            font-size: 1.5em;
            color: #39FF14; /* Slightly different green */
            border-left: 3px solid #39FF14;
            padding-left: 10px;
            margin-top: 10px; /* Added margin top for section spacing */
        }
        h4 {
            font-size: 1.2em;
            color: #90ee90; /* Lighter green for sub-subheadings */
            margin-top: 15px;
            margin-bottom: 8px;
        }

        /* --- Section Styling --- */
        .section {
            margin-bottom: 30px;
            padding: 20px;
            border: 1px solid #005000; /* Darker green border */
            background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent black */
            box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
            border-radius: 0;
        }
        .section .description {
            font-size: 0.95em;
            color: #aaffaa; /* Light green for descriptions */
            margin-bottom: 15px;
            line-height: 1.5;
        }
        .section .input-note {
            font-size: 0.85em;
            color: #7fbf7f; /* Dimmer green for notes */
            margin-top: -10px;
            margin-bottom: 10px;
        }


        /* --- Form Elements --- */
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #00ff00;
            text-shadow: 0 0 3px rgba(0,255,0,0.5);
        }

        input[type="number"],
        select {
            width: 100%;
            padding: 10px;
            margin-bottom: 15px;
            border-radius: 0px; /* Sharp edges */
            border: 1px solid #00ff00;
            background-color: #050505; /* Very dark input background */
            color: #00ff00; /* Neon green text */
            font-family: 'Consolas', 'Courier New', monospace;
            font-size: 1em;
            box-shadow: inset 0 0 5px rgba(0,0,0,0.5), 0 0 3px rgba(0,255,0,0.3);
        }
        input[type="number"]:focus,
        select:focus {
            outline: none;
            border-color: #39FF14; /* Brighter green on focus */
            box-shadow: 0 0 10px #39FF14, inset 0 0 8px rgba(0,0,0,0.5);
        }
        select option {
            background-color: #0a0a0a;
            color: #00ff00;
        }

        /* --- Button Styling --- */
        button {
            background-color: transparent;
            color: #00ff00;
            padding: 10px 15px; /* Adjusted padding for copy buttons */
            border: 1px solid #00ff00;
            border-radius: 0px; /* Sharp edges */
            cursor: pointer;
            font-size: 1em; /* Adjusted font size */
            font-family: 'Consolas', 'Courier New', monospace;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.3s ease;
            box-shadow: 0 0 5px rgba(0,255,0,0.5);
            margin-top: 10px;
            margin-right: 5px; /* Spacing for multiple buttons */
        }
        button:hover, button:focus {
            background-color: #00ff00;
            color: #000000; /* Black text on hover */
            box-shadow: 0 0 15px #00ff00, 0 0 25px #00ff00;
            outline: none;
        }
        button:active {
            transform: translateY(1px);
            box-shadow: 0 0 5px #00ff00;
        }
        .code-actions { /* Container for textarea and copy button */
            margin-top: 5px;
        }
        .code-actions button { /* Specific style for copy button if needed, or rely on general */
            padding: 8px 12px;
            font-size: 0.9em;
            margin-top: 8px;
        }


        /* --- Textarea for Code Output --- */
        textarea {
            width: 100%;
            height: 300px; /* Increased height */
            padding: 15px;
            border-radius: 0px; /* Sharp edges */
            border: 1px solid #008F11; /* Darker green border */
            background-color: #000000; /* Black background */
            color: #39FF14; /* Bright green code text */
            font-family: 'Consolas', 'Menlo', 'Courier New', monospace;
            font-size: 0.9em; /* Slightly smaller for more code */
            line-height: 1.4;
            white-space: pre;
            overflow: auto; /* Both vertical and horizontal scroll if needed */
            box-shadow: inset 0 0 10px rgba(0,0,0,0.7);
            margin-top: 5px; /* Space between H4 and textarea */
        }
        textarea::selection {
            background-color: #00ff00;
            color: #000000;
        }

        /* --- Grid Layout --- */
        .grid-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            margin-bottom: 30px; /* Space before full-width sections */
        }

        /* --- Info/License Section --- */
        #info-module pre {
            background-color: #050505;
            border: 1px solid #005000;
            padding: 15px;
            color: #aaffaa;
            white-space: pre-wrap; /* Wrap license text */
            font-size: 1.35em;
            max-height: 200px;
            overflow-y: auto;
        }

        #info-module a {
            color: #aaffaa;
            margin-bottom: 10px;
            text-decoration: none;
        }

         #info-module p {
            color: #aaffaa;
            margin-bottom: 10px;
         }


        /* --- Instructions Section --- */
        .instructions {
            background-color: rgba(0, 20, 0, 0.7); /* Dark green tint */
            border: 1px solid #005000;
            padding: 20px;
            margin-top: 30px;
            border-radius: 0px;
        }
        .instructions h3 {
            color: #39FF14;
            border-left-color: #00ff00;
            text-shadow: 0 0 5px #39FF14;
        }
        .instructions p, .instructions li {
            color: #aaffaa;
            font-size: 0.95em;
        }
        .instructions ul {
            list-style-type: none; /* Removing default bullets */
            padding-left: 0;
        }
        .instructions ul li {
            padding-left: 20px;
            position: relative;
            margin-bottom: 8px;
        }
        .instructions ul li::before {
            content: ">>"; /* Hacker-style bullet */
            position: absolute;
            left: 0;
            color: #00ff00; /* Neon green bullet */
            font-weight: bold;
        }
        .instructions strong {
            color: #00ff00; /* Highlight strong text */
        }


        /* --- Responsive Design --- */
        @media (max-width: 800px) {
            .grid-container {
                grid-template-columns: 1fr;
            }
            h1 {
                font-size: 2em;
            }
            h2 {
                font-size: 1.5em;
            }
            body {
                padding: 10px;
            }
            .container {
                padding: 15px;
            }
        }

        /* --- Scrollbar Styling (Webkit browsers like Chrome, Safari) --- */
        ::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }
        ::-webkit-scrollbar-track {
            background: #0a0a0a;
            border-left: 1px solid #005000;
        }
        ::-webkit-scrollbar-thumb {
            background: #00ff00;
            border-radius: 0;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #39FF14;
        }
        /* For Firefox */
        html { /* Or body, or specific elements */
            scrollbar-color: #00ff00 #0a0a0a; /* thumb and track */
            scrollbar-width: thin;
        }