/* Global Dark Theme Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.app-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

/* Control Panel Styles */
.control-panel {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-panel h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.control-panel label {
    font-size: 0.9rem;
    color: #aaa;
}

.control-panel input,
.control-panel textarea {
    width: 100%;
    padding: 8px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
}

.control-panel input:focus,
.control-panel textarea:focus {
    outline: none;
    border-color: #4169E1;
}

.control-btn {
    margin-top: 10px;
    padding: 10px;
    background-color: #4169E1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.control-btn:hover {
    background-color: #3150b0;
}

/* Fake Alert Box Styles (Dark Theme) */
.preview-area {
    display: flex;
    justify-content: center;
}

.fake-alert {
    width: 480px;
    background-color: #2d2d2d;
    border: 1px solid #555;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    user-select: none;
}

/* Title Bar */
.title-bar {
    background: linear-gradient(to bottom, #4a4a4a, #2a2a2a);
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #111;
}

.title-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: #fff;
    font-size: 14px;
    text-shadow: 1px 1px 0 #000;
}

.title-text .icon {
    font-size: 16px;
}

.close-btn {
    background-color: #d32f2f;
    color: white;
    border: 1px solid #b71c1c;
    border-radius: 3px;
    width: 24px;
    height: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

.close-btn:hover {
    background-color: #f44336;
}

/* Alert Body */
.alert-body {
    display: flex;
    min-height: 220px;
}

/* Left Banner */
.left-banner {
    width: 60px;
    background: linear-gradient(to bottom, #b85c00, #7a3e00);
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #111;
    overflow: hidden;
    transform: rotate(180deg);
    padding-bottom: 25px;
}

/* Tạo bảng không viền bằng CSS Grid */
.banner-grid {
    display: grid;
    grid-template-columns: auto auto; /* 2 cột */
    grid-template-rows: auto auto;   /* 2 hàng */
    gap: 0px 5px;
    transform: rotate(90deg); /* Xoay cả bảng 90 độ */
    transform-origin: center center;
    width: 170px; /* Tăng chiều rộng để chứa chữ SJAV to hơn */
    align-items: center;
}

/* Định dạng chung cho các ô */
.cell {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    white-space: nowrap;
}

/* Ô SJAV chiếm 2 hàng, căn giữa */
.brand-sjav {
    grid-row: span 2; /* Gộp 2 hàng lại thành 1 ô lớn */
    grid-column: 1;
    font-size: 44px; /* Tăng kích thước chữ lên thoải mái */
    color: #ffffff;
    letter-spacing: 0px;
    display: flex;
    align-items: left; /* Căn giữa theo chiều dọc của ô */
    justify-self: left;
}

/* Ô 2006 nằm hàng 1, cột 2 */
.brand-year {
    grid-row: 1;
    grid-column: 2;
    font-size: 18px;
    justify-self: left;
    vertical-align: bottom;
    color: #ff0000;
    padding-top: 10px;
    font-weight: bold;
}

/* Ô Fakefessional nằm hàng 2, cột 2 */
.brand-prof {
    grid-row: 2;
    grid-column: 2;
    font-size: 12px;
    color: #eeeeee;
    letter-spacing: 1px;
    justify-self: left;
    vertical-align: top;
    padding-bottom: 10px;
    font-weight: bold;
}

/* Content Area */
.content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #2d2d2d;
}

.bugs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.bug-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
    animation: crawl 2s infinite alternate ease-in-out;
}

/* Simple animation for bugs */
@keyframes crawl {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-5px) scale(1.05); }
}

.text-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    color: #e0e0e0;
}

.alert-title {
    font-weight: bold;
    font-size: 15px;
}

.file-info {
    font-family: monospace;
    font-size: 14px;
    color: #aaa;
}

.message-info {
    line-height: 1.4;
}

/* Alert Footer */
.alert-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #444;
    background-color: #252525;
}

.status-text {
    font-size: 14px;
    color: #4caf50;
    font-weight: bold;
}

.next-btn {
    padding: 6px 25px;
    background-color: #3a3a3a; /* Màu nền đơn sắc thay vì gradient */
    color: #fff;
    border: 1px solid #777; /* Viền đơn giản, rõ ràng */
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    /* Đã xóa box-shadow */
}

.next-btn:hover {
    background-color: #4a4a4a;
}

.next-btn:active {
    background-color: #222;
    /* Đã xóa box-shadow inset */
}

/* Thêm style cho nút tải ảnh */
.download-btn {
    background-color: #2e7d32; /* Màu xanh lá */
}

.download-btn:hover {
    background-color: #1b5e20;
}

/* Watermark */
.watermark {
    text-align: center;
    font-size: 10px;
    color: #666;
    padding: 5px;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

/* Thêm style cho input bị lỗi (nhập thương hiệu cấm) */
.input-error {
    border-color: #d32f2f !important;
    background-color: #3a1a1a !important;
    color: #ff9999 !important;
}

/* Style cho dòng cảnh báo */
#logoWarning {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: -5px;
    margin-bottom: 5px;
    font-weight: bold;
}