/* Custom CSS for Secure Search Portal */

/* Custom Scrollbar for dark theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #000000;
}
::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00ffcc;
}

/* Animations & Effects */
@keyframes glitch {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

.glitched-logo:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    box-shadow: 0 0 10px #00ffcc, inset 0 0 5px #00ffcc;
}

.tool-card {
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}

.tool-card:hover::before {
    left: 150%;
}

/* Google Custom Search Overrides */
.gsc-control-cse {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-family: 'Roboto Mono', monospace !important;
}

.gsc-input-box {
    background-color: #0a0a0a !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    height: 50px !important;
}

.gsc-input {
    background-color: #0a0a0a !important;
    color: #fff !important;
    font-size: 16px !important;
}

.gsc-search-button-v2 {
    background-color: #00ffcc !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 12px 24px !important;
}

.gsc-search-button-v2:hover {
    background-color: #00ccaa !important;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5) !important;
}

.gsc-search-button-v2 svg {
    fill: #000 !important;
}

input.gsc-input::-webkit-input-placeholder {
    color: #666 !important;
}

/* Modals */
.modal.active {
    display: flex;
    opacity: 1;
}

.modal.active .modal-content {
    transform: scale(1);
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #0a0a0a inset !important;
    -webkit-text-fill-color: white !important;
}
