@import url("./navbar.css");
@import url("./mobile.css");

@font-face {
    font-family: 'Jetbrains-Mono';
    src: url('/static/fonts/JetBrainsMono-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Inter";
    src: url('/static/fonts/Inter-Regular.ttf');
    font-weight: normal;
}

@font-face {
    font-family: "Inter";
    src: url('/static/fonts/Inter-Bold.ttf');
    font-weight: bold;
}

@font-face {
    font-family: "Lexend";
    src: url('/static/fonts/Lexend-Regular.ttf');
    font-weight: normal;
}

@font-face {
    font-family: "Lexend";
    src: url('/static/fonts/Lexend-Bold.ttf');
    font-weight: bold;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter';
    scroll-behavior: smooth;
}

:root {
    --sidenav-black: #707ba0;
    --sidenav-blue: #225aea;
}

.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}

body {
    overflow: none;
    background-color: #f8f9fa;
}

/* Dashboard */

.dashboard-container {
    margin: 30px 80px;
    font-family: 'Inter';
}

.tabs-title {
    font-size: 30px;
}

.card-container {
    margin-top: 30px;
    display: flex;
    align-items: flex-start;
    justify-content: start;
}

.card {
    padding: 20px 30px;
    color: white;
    width: 280px;
    height: 150px;
    background-color: transparent;
    border-radius: 7px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 0 50px 0 0;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.card h3 {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "Lexend", sans-serif;
}

.card p {
    font-size: 45px;
}

/* Card Colors */
.blue {
    background-color: rgb(19, 19, 202);
}

.blue-op-1 {
    background-color: rgba(56, 165, 255, 0.05);
}

.blue-op-1 h3, .blue-op-1 p {
    color: rgb(30, 30, 30);
}

.green {
    background: rgb(20, 182, 20);
}

.green-op-1 {
    background: rgba(25, 255, 113, 0.05);
}

.green-op-1 h3, .green-op-1 p {
    color: rgb(30, 30, 30);
}

.dark-red {
    background: #881e18;
}

.red-op-1 {
    background-color: rgba(255, 25, 25, 0.05);
}

.red-op-1 h3, .red-op-1 p {
    color: rgb(30, 30, 30);
}

.l-blue {
    background-color: rgb(35, 35, 114);
}

.l-blue-op-1 {
    background-color: rgba(55, 55, 255, 0.05);
}

.l-blue-op-1 h3, .l-blue-op-1 p {
    color: rgb(30, 30, 30);
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
    backdrop-filter: blur(3px);
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    object-fit: contain;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Logo Container */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-bottom: 10px;
}

.logo-img {
    width: 180px;
    height: auto;
    object-fit: contain;
}

.logo {
    font-family: 'Inter';
    color: #1b1b1b;
    font-weight: bold;
    font-size: 1.5em;
    margin: 0;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

/* Upload & Scans */

.scan-container {
    padding: 20px;
    font-family: 'Inter';
}

.scan-results {
    padding: 20px;
    font-family: 'Inter';
    font-size: 13px;
}

.scans-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed;
    font-size: 13px;
}   

.scans-table th, .scans-table td {
    padding: 8px;
    text-align: left;
}   

.scans-table th {
    background-color: #007bff;
    color: white;
}   

.scans-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.scans-table th:nth-child(1) {
    width: 70%;
}

.scans-table th:nth-child(2) {
    width: 30%;
}

.scans-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.url-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.url-cell img {
    flex-shrink: 0;
}

.url-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 40px);
    position: relative;
}

.url-text:hover::after {
    content: attr(data-url);
    position: absolute;
    left: 0;
    top: 100%;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: normal;
    word-break: break-all;
    max-width: 400px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.favicon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.favicon:hover {
    transform: scale(1.2);
    transition: transform 0.2s ease-in-out;
}

/* Scans Page Styles for scans.html */
.scans-page {
    padding: 20px;
    font-family: 'Inter';
}

.filters-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-group {
    flex: 1;
}

.filter-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Inter';
}

.filter-input:focus {
    outline: none;
    border-color: #007bff;
}

.no-results {
    text-align: center;
    color: #666;
    padding: 20px;
}

.scans-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed;
    font-size: 13px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.scans-table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: bold;
    padding: 12px 8px;
    border-bottom: 2px solid #dee2e6;
}

.scans-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scans-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.scans-table tr:hover {
    background-color: #f8f9fa;
}

.scans-table th:nth-child(1) {
    width: 70%;
}

.scans-table th:nth-child(2) {
    width: 30%;
}

.url-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.url-cell img {
    flex-shrink: 0;
}

.url-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 40px);
    position: relative;
}

.url-text:hover::after {
    content: attr(data-url);
    position: absolute;
    left: 0;
    top: 100%;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: normal;
    word-break: break-all;
    max-width: 400px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.favicon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.subdomain-rows {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
    padding: 0;
}

.subdomain-rows.expanded {
    overflow: visible;
}

.subdomain-scroll {
    max-height: 400px;
    overflow-y: auto;
}