/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #000000 100%);
    color: #00ff00;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 40%, rgba(0, 255, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(0, 200, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(0, 150, 0, 0.02) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text fill="%2300ff00" opacity="0.01" font-size="8">01010101</text></svg>') repeat;
    animation: scanlines 8s linear infinite;
    z-index: -1;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

/* ===== GLASS CONTAINER ===== */
.glass {
    width: 95%;
    max-width: 1100px;
    margin: 30px auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 255, 0, 0.6);
    box-shadow:
        0 0 30px rgba(0, 255, 0, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.9);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    flex: 1;
}

.glass::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(0, 255, 0, 0.1), 
        rgba(0, 200, 100, 0.1), 
        rgba(0, 150, 255, 0.1));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
}

.glass:hover::before {
    opacity: 0.6;
}

.glass:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow:
        0 0 50px rgba(0, 255, 0, 0.4),
        inset 0 0 30px rgba(0, 0, 0, 0.9),
        0 20px 40px rgba(0, 0, 0, 0.9);
    border-color: rgba(0, 255, 0, 0.8);
}

/* ===== HEADER ===== */
h1 {
    text-align: center;
    font-size: clamp(2em, 5vw, 3.2em);
    text-shadow:
        0 0 20px #00ff00,
        0 0 40px #00ff00,
        0 0 60px #00ff00;
    animation: terminalTitle 2.5s ease-in-out infinite alternate;
    margin-bottom: 20px;
    position: relative;
    letter-spacing: 2px;
}

h1::after {
    content: '▋';
    animation: cursorBlink 1s infinite;
    margin-left: 5px;
    color: #00ff00;
}

@keyframes terminalTitle {
    0% {
        text-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00;
        transform: translateY(0);
    }
    100% {
        text-shadow: 0 0 30px #00ff00, 0 0 60px #00ff00, 0 0 90px #00ff00;
        transform: translateY(-3px);
    }
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== FORM ===== */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    form {
        flex-direction: row;
        justify-content: center;
    }
}

.input-group {
    flex: 1;
    position: relative;
    min-width: 0;
}

input {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(0, 255, 0, 0.5);
    color: #00ff00;
    padding: 16px 20px;
    border-radius: 12px;
    width: 100%;
    font-family: inherit;
    font-size: 1.1em;
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
}

input::placeholder {
    color: rgba(0, 255, 0, 0.5);
}

input:focus {
    outline: none;
    box-shadow:
        0 0 25px rgba(0, 255, 0, 0.3),
        inset 0 0 25px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.02);
    border-color: rgba(0, 255, 0, 0.8);
}

button {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 20, 0.9));
    border: 2px solid rgba(0, 255, 0, 0.6);
    color: #00ff00;
    padding: 16px 30px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    min-width: 140px;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.3), transparent);
    transition: left 0.6s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(30, 30, 30, 0.95));
    color: #ffffff;
    box-shadow:
        0 0 30px rgba(0, 255, 0, 0.5),
        0 0 60px rgba(0, 255, 0, 0.2);
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(0, 255, 0, 0.9);
}

/* ===== CARDS ===== */
.card {
    margin-top: 20px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 0, 0.4);
    border-radius: 15px;
    backdrop-filter: blur(18px);
    box-shadow:
        0 0 25px rgba(0, 255, 0, 0.15),
        inset 0 0 25px rgba(0, 0, 0, 0.8);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

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

.card:hover {
    box-shadow:
        0 0 40px rgba(0, 255, 0, 0.3),
        inset 0 0 40px rgba(0, 0, 0, 0.9);
    transform: translateY(-5px);
    border-color: rgba(0, 255, 0, 0.7);
}

.main-result {
    border-width: 2px;
    border-color: rgba(0, 255, 0, 0.6);
}

/* ===== TABLES ===== */
.result-table, .summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.result-table td, .summary-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .result-table, .summary-table {
        display: block;
        overflow-x: auto;
    }
    
    .result-table td, .summary-table td {
        padding: 12px 8px;
        font-size: 0.9em;
        min-width: 150px;
    }
}

.result-table td:hover, .summary-table td:hover {
    background: rgba(0, 255, 0, 0.05);
}

.result-table td:first-child {
    font-weight: bold;
    color: #00ff00;
    width: 35%;
    text-shadow: 0 0 8px #00ff00;
    white-space: nowrap;
}

.summary-table td:first-child {
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 8px #00ff00;
    white-space: nowrap;
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 70px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .status-badge {
        padding: 6px 12px;
        font-size: 0.85em;
        min-width: 60px;
    }
}

.status-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px currentColor;
}

/* Status Colors */
.status-badge.critical {
    background: linear-gradient(45deg, rgba(255, 0, 100, 0.2), rgba(180, 0, 80, 0.2));
    color: #ff0064;
    border: 2px solid #ff0064;
}

.status-badge.danger {
    background: linear-gradient(45deg, rgba(255, 0, 0, 0.2), rgba(200, 0, 0, 0.2));
    color: #ff0000;
    border: 2px solid #ff0000;
}

.status-badge.high {
    background: linear-gradient(45deg, rgba(255, 69, 0, 0.2), rgba(200, 50, 0, 0.2));
    color: #ff4500;
    border: 2px solid #ff4500;
}

.status-badge.medium {
    background: linear-gradient(45deg, rgba(255, 165, 0, 0.2), rgba(255, 140, 0, 0.2));
    color: #ff8c00;
    border: 2px solid #ff8c00;
}

.status-badge.low {
    background: linear-gradient(45deg, rgba(0, 255, 0, 0.2), rgba(0, 200, 0, 0.2));
    color: #00ff00;
    border: 2px solid #00ff00;
}

.status-badge.safe {
    background: linear-gradient(45deg, rgba(0, 128, 0, 0.2), rgba(0, 100, 0, 0.2));
    color: #008000;
    border: 2px solid #008000;
}

.status-badge.info {
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.2), rgba(0, 100, 200, 0.2));
    color: #007bff;
    border: 2px solid #007bff;
}


.status-badge.phishing {
    background: linear-gradient(45deg, rgba(255, 0, 0, 0.2), rgba(200, 0, 0, 0.2));
    color: #ff0000;
    border: 2px solid #ff0000;
}

/* ===== TOGGLE BUTTONS ===== */
.toggle-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.toggle-btn {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(20, 20, 20, 0.8));
    border: 2px solid rgba(0, 255, 0, 0.5);
    color: #00ff00;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: bold;
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.15);
    font-size: 0.9em;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.toggle-btn.active {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

@media (max-width: 768px) {
    .toggle-btn {
        min-width: calc(50% - 10px);
        max-width: none;
        padding: 10px 12px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .toggle-btn {
        min-width: 100%;
    }
}

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

.toggle-btn:hover::before {
    left: 100%;
}

.toggle-btn:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(30, 30, 30, 0.9));
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.3);
    transform: translateY(-2px);
    border-color: rgba(0, 255, 0, 0.8);
}

/* ===== DETAIL SECTIONS ===== */
.detail-section {
    margin-top: 15px;
    animation: slideIn 0.6s ease-out;
}

.detail-section.hidden {
    display: none;
}

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

/* ===== SCROLLABLE CONTAINERS ===== */
.scroll-container {
    max-height: 400px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    border: 1px solid rgba(0, 255, 0, 0.1);
}

.scroll-container::-webkit-scrollbar {
    width: 8px;
}

.scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.3);
    border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 0, 0.5);
}

/* ===== PRE & CODE ===== */
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    font-size: 0.9em;
    line-height: 1.4;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
    overflow-x: auto;
    font-family: 'Monaco', monospace;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    .glass {
        margin: 20px auto;
        padding: 20px 15px;
        border-radius: 15px;
        width: 98%;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    h3 {
        font-size: 1.3em;
    }
    
    h4 {
        font-size: 1.1em;
    }
    
    .card {
        padding: 20px 15px;
        margin-top: 15px;
    }
    
    .result-table th,
    .result-table td {
        padding: 10px 8px;
        font-size: 0.85em;
    }
    
    .summary-table td {
        padding: 10px 8px;
    }
    
    form {
        margin-bottom: 20px;
    }
}

/* ===== ERROR & SUCCESS MESSAGES ===== */
.error {
    color: #ff5555;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

.success {
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

/* ===== LOADING ANIMATION ===== */
@keyframes pulse {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.05); 
    }
}

.loading-pulse {
    animation: pulse 2s infinite;
}

/* ===== FOOTER ===== */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    color: #00ff00;
    font-family: 'Monaco', monospace;
    font-size: 0.85em;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    z-index: 1000;
    gap: 15px;
    flex-wrap: wrap;
}

footer > div {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

footer i {
    font-size: 0.9em;
    color: #00cc00;
}

@media (max-width: 768px) {
    footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 15px;
        font-size: 0.75em;
        gap: 10px;
    }
    
    footer > div {
        flex: 1;
        min-width: 33%;
        justify-content: center;
        text-align: center;
        padding: 2px;
    }
}

@media (max-width: 480px) {
    footer {
        flex-direction: column;
        gap: 5px;
        padding: 8px 10px;
        font-size: 0.7em;
    }
    
    footer > div {
        width: 100%;
        justify-content: center;
        min-width: 100%;
    }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.px-10 {
    padding-left: 10px;
    padding-right: 10px;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

/* ===== GRID SYSTEM ===== */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* ===== RESPONSIVE TABLES ===== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 600px;
}

@media (max-width: 768px) {
    .table-responsive table {
        min-width: 100%;
    }
}

/* ===== ICON STYLES ===== */
.icon {
    margin-right: 8px;
}

/* ===== TAG STYLES ===== */
.tag {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(0, 255, 0, 0.1);
    border-radius: 4px;
    font-size: 0.8em;
    margin: 2px;
    border: 1px solid rgba(0, 255, 0, 0.3);
}