/* ReconForge - Recon Page Styles */
:root {
    --primary: #39ff14;
    --secondary: #00ff41;
    --dark: #000000;
    --darker: #0a0a0a;
    --darkest: #050505;
    --light: #00ff00;
    --text-primary: #e0ffe0;
    --text-secondary: #b3ffb3;
    --border: #1a4d1a;
    --btn-border: #1a4d1a;
    --btn-hover: #1a4d3a;
    --accent: #1db954;
    --accent-hover: #00ffaa;
    --danger: #ff0040;
    --link: #00cccc;
    --font-primary: 'JetBrains Mono', 'Courier New', monospace;
    --font-mono: 'JetBrains Mono', 'Courier New', Courier, monospace;
    --transition-speed: 0.3s;
}

body {
    font-family: var(--font-primary) !important;
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 50%, var(--darkest) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    position: relative;
    overflow-x: hidden;
    z-index: 0;
    min-height: 100vh;
}

/* Matrix-style background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(57, 255, 20, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
        linear-gradient(90deg, transparent 49%, rgba(57, 255, 20, 0.03) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(57, 255, 20, 0.03) 50%, transparent 51%);
    background-size: 100px 100px, 150px 150px, 20px 20px, 20px 20px;
    animation: matrixFlow 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes matrixFlow {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(-20px) translateX(-20px);
    }
}

/* Matrix Rain Effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 220, 130, 0.1) 2px,
            rgba(0, 220, 130, 0.1) 4px);
    opacity: 0.3;
    animation: matrix-rain 10s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes matrix-rain {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Navbar */
.navbar {
    background: var(--darker) !important;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    box-shadow: 0 0 15px rgba(0, 220, 130, 0.3);
    transition: background-color var(--transition-speed);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary);
    transition: all var(--transition-speed);
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(57, 255, 20, 0.1);
}

.navbar-logo img {
    width: 32px;
    height: 32px;
    filter: none;
    transition: transform 0.3s ease;
}

.navbar-logo img:hover {
    transform: scale(1.1);
}

.navbar-title {
    color: var(--primary);
    font-size: 1.2rem;
    margin: 0;
    text-shadow: none;
}

/* Cards */
.card {
    height: 280px !important;
    display: flex;
    flex-direction: column;
    background: #0a0f0a;
    border: 1px solid #1a4d1a;
    border-radius: 8px;
    transition: all var(--transition-speed);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    margin-bottom: 1rem;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 255, 20, 0.3);
    border-color: var(--primary);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow-y: auto;
}

.card-title {
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    text-shadow: none;
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* Buttons */
.btn-tool {
    color: var(--text-primary);
    background: #000;
    border: 1px solid var(--btn-border);
    padding: 0.5rem 1rem;
    margin: 0.25rem 0;
    border-radius: 6px;
    transition: all var(--transition-speed);
    width: 100%;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-tool:hover {
    background: #1a4d1a;
    color: var(--primary);
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

.status-badge {
    background: rgba(57, 255, 20, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all var(--transition-speed);
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.btn-tool:hover .status-badge {
    background: var(--primary);
    color: var(--dark);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 6rem auto 2rem;
    padding: 0 1.5rem;
}

/* Grid Layout */
.row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

/* Tool Actions */
.tool-actions {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    margin-top: 0.5rem;
    max-height: calc(400px - 4rem);
}

.tool-actions::-webkit-scrollbar {
    width: 6px;
}

.tool-actions::-webkit-scrollbar-track {
    background: var(--darker);
    border-radius: 3px;
}

.tool-actions::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
    opacity: 0.5;
}

.tool-actions::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Input Group */
.input-group {
    display: flex;
    align-items: center;
    background: var(--dark);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    transition: all var(--transition-speed);
}

.input-group:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 220, 130, 0.3);
}

.input-group input {
    background: none;
    border: none;
    color: var(--light);
    width: 100%;
    padding: 0.5rem;
    outline: none;
    font-family: var(--font-mono);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .row {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .row {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        order: -1;
    }

    .domain-input-container {
        width: 100%;
        max-width: none;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .row {
        grid-template-columns: 1fr;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-links a {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Recon 
Page Specific Layout */
.recon-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

/* Different card style for recon page */
.recon-card {
    background: linear-gradient(135deg, #0a0f0a 0%, #000 100%);
    border: 1px solid #1a4d1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    transition: all var(--transition-speed);
    position: relative;
    height: 320px;
    display: flex;
    flex-direction: column;
}

.recon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff4444, #39ff14, #ff4444);
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.recon-card:hover::before {
    opacity: 1;
}

.recon-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(57, 255, 20, 0.3);
    border-color: var(--primary);
}

/* Recon card header with different styling */
.recon-card-header {
    background: linear-gradient(135deg, #1a4d1a 0%, #0d1a0d 100%);
    padding: 1.2rem 1.5rem;
    border-bottom: 2px solid #2d6b2d;
    position: relative;
}

.recon-card-title {
    color: var(--primary);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.recon-card-title i {
    color: #ff4444;
    font-size: 1.2rem;
}

/* Recon card body */
.recon-card-body {
    padding: 1.2rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #0a0f0a;
}

.recon-description {
    color: #8a8a8a;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

/* Recon tool actions with different styling */
.recon-tool-actions {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 180px;
}

.recon-tool-actions::-webkit-scrollbar {
    width: 8px;
}

.recon-tool-actions::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.recon-tool-actions::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff4444, #39ff14);
    border-radius: 4px;
}

.recon-tool-actions::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff6666, #00ff41);
}

/* Recon buttons with unique styling */
.recon-btn {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    border: 1px solid #2d6b2d;
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    margin: 0.3rem 0;
    border-radius: 8px;
    transition: all var(--transition-speed);
    width: 100%;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.recon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 68, 68, 0.1), transparent);
    transition: left 0.5s;
}

.recon-btn:hover::before {
    left: 100%;
}

.recon-btn:hover {
    background: linear-gradient(135deg, #2d1a1a 0%, #1a4d1a 100%);
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(57, 255, 20, 0.2);
}

/* Recon status badge */
.recon-status {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.2), rgba(57, 255, 20, 0.2));
    color: var(--primary);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(57, 255, 20, 0.3);
}

.recon-btn:hover .recon-status {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

/* Recon navbar styling */
.recon-navbar {
    background: linear-gradient(135deg, var(--darkest) 0%, var(--darker) 100%);
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 4px 20px rgba(57, 255, 20, 0.2);
}

.recon-navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Recon input styling */
.recon-input-group {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    border: 2px solid #1a4d1a;
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.recon-input-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.1), transparent);
    transition: left 0.5s;
}

.recon-input-group:focus-within::before {
    left: 100%;
}

.recon-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.recon-input-group input {
    background: none;
    border: none;
    color: var(--text-primary);
    width: 100%;
    padding: 0.3rem;
    outline: none;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.recon-input-group input::placeholder {
    color: rgba(224, 255, 224, 0.5);
}

/* Mobile responsive for recon layout */
@media (max-width: 768px) {
    .recon-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }

    .recon-card {
        height: 300px;
    }

    .recon-tool-actions {
        max-height: 160px;
    }
}

@media (max-width: 480px) {
    .recon-card {
        height: 280px;
    }

    .recon-tool-actions {
        max-height: 140px;
    }

    .recon-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Recon Navbar Fixes */
.navbar {
    background: linear-gradient(90deg, var(--darkest) 0%, var(--darker) 50%, var(--darkest) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow:
        0 4px 20px rgba(57, 255, 20, 0.3),
        0 0 40px rgba(57, 255, 20, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-speed);
}

.navbar .logo {
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 1.8rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: none;
    transition: all var(--transition-speed);
}

.navbar .logo:hover {
    transform: scale(1.05);
}

.navbar .logo i {
    font-size: 2rem;
    filter: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.nav-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(57, 255, 20, 0.1);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}

.domain-input-container {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -280px;
        height: 100vh;
        width: 280px;
        background-color: var(--darker);
        flex-direction: column;
        padding: 4rem 1.5rem 1.5rem;
        gap: 0.5rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 999;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        right: 0;
    }

    .domain-input-container {
        margin: 0 1rem;
        max-width: 200px;
    }
}