@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

:root {
    --dark: #0a0a0f;
    --purple: #6b2fb3;
    --pink: #e94a8c;
    --light-purple: #a06ed0;
    --light-pink: #f07cac;
    --text-light: #e0e0e0;
    --text-medium: #b0b0b5;
    --text-dark: #808085;
    --border-color: rgba(107, 47, 179, 0.2);
    --border-hover-color: rgba(107, 47, 179, 0.5);
    --bg-panel: rgba(26, 26, 31, 0.7);
    --bg-panel-hover: rgba(36, 36, 41, 0.8);
    --bg-darker: #050507;
    --gradient: linear-gradient(135deg, var(--purple), var(--pink));
    --gradient-light: linear-gradient(135deg, var(--light-purple), var(--light-pink));
    --primary-color: var(--purple);
    --secondary-color: var(--pink);
    --background-dark: #1a1a1f;
    --background-light: #2a2a2f;
    --text-color: var(--text-light);
    --text-muted: var(--text-dark);
    --line-color: rgba(255, 255, 255, 0.1);
    --highlight-color: rgba(255, 255, 255, 0.5);
    --danger: #e53935;
    --danger-light: #ef9a9a;
    --danger-bg: rgba(229, 57, 53, 0.15);
    --success: #43a047;
    --success-light: #a5d6a7;
    --success-bg: rgba(67, 160, 71, 0.15);
    --warning: #fdd835;
    --warning-dark: #332e1a;
    --warning-bg: rgba(253, 216, 53, 0.15);
    --info: #03a9f4;
    --info-light: #64b5f6;
    --info-bg: rgba(3, 169, 244, 0.15);
    --dark-grey: #404045;
    --accent: #a06ed0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--dark);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    font-weight: 400;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

.container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 3rem 1rem 4rem 1rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-light);
    line-height: 1.3;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.8rem;
    margin-top: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--light-pink);
    text-decoration: underline;
}

ul,
ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

code {
    background-color: var(--bg-darker);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    border: 1px solid var(--border-color);
    color: var(--text-medium);
}

pre {
    background-color: var(--bg-darker);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

pre code {
    background: none;
    padding: 0;
    border: none;
    font-size: 0.85em;
}

header,
footer {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

footer {
    border-bottom: none;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

header {
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

header h1.header-logo {
    margin-bottom: 0;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

header h1.header-logo a {
    color: var(--text-light);
    text-decoration: none;
}

header nav ul.main-nav-list {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

header nav ul.main-nav-list li {
    position: relative;
}

header nav a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    display: inline-block;
    font-size: 0.95rem;
}

header nav a:hover {
    color: var(--text-light);
    background-color: var(--bg-panel);
    text-decoration: none;
}

header nav a.active {
    color: var(--text-light);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    background-color: transparent;
}

.nav-separator {
    height: 20px;
    width: 1px;
    background-color: var(--border-color);
    margin: 0 0.8rem;
}

.nav-register-btn {
    padding: 0.4rem 1rem !important;
    font-size: 0.9rem !important;
    border-radius: 20px !important;
    background-color: transparent !important;
    border: 1px solid var(--secondary) !important;
    color: var(--secondary) !important;
    transition: all 0.3s ease;
}

.nav-register-btn:hover {
    background: var(--secondary) !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: 0 0 10px rgba(233, 74, 140, 0.3);
}

main {
    flex-grow: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.content {
    text-align: center;
    width: 100%;
    z-index: 1;
    padding: 0 1rem;
}

.glitch {
    position: relative;
    text-shadow: 0.05em 0 0 var(--purple), -0.05em -0.025em 0 var(--pink);
    animation: glitch 725ms infinite;
}

.upload-page-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.tagline {
    font-size: 1.2rem;
    margin: 0 0 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 0.5s;
}

#upload-section {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(5px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

#upload-section:hover {
    border-color: var(--purple);
    box-shadow: 0 0 20px rgba(107, 47, 179, 0.1);
}

input[type="file"]#file-input {
    display: none;
}

.upload-area-container {
    position: relative;
    display: flex;
    margin-bottom: 1.5rem;
}

.upload-drop-label {
    flex-grow: 1;
    margin-right: 0;
}

.dragdrop {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    background: rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.dragdrop.active {
    border-style: solid;
    border-color: var(--purple);
    background: rgba(107, 47, 179, 0.1);
}

.dragdrop:hover {
    border-color: var(--light-purple);
    background: rgba(107, 47, 179, 0.05);
}

.dragdrop p {
    margin: 0.5rem 0;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.dragdrop p:first-of-type {
    font-size: 1rem;
    color: var(--text-light);
}

.options-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    z-index: 5;
}

.options-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    border-color: var(--purple);
}

.advanced-options-panel {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    text-align: left;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out, opacity 0.3s ease-out, border-width 0.1s linear 0.3s, margin-top 0.4s ease-out;
    opacity: 0;
    border-width: 0;
    margin-top: 0;
}

.advanced-options-panel.visible {
    max-height: 500px;
    opacity: 1;
    padding: 1rem 1.5rem;
    border-width: 1px;
    margin-top: 1rem;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out, opacity 0.3s ease-out, border-width 0.1s linear 0s, margin-top 0.4s ease-out;
}

.advanced-options-panel h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--light-purple);
    font-weight: 500;
}

.option-group {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.option-group label {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0;
    flex-basis: 150px;
    flex-shrink: 0;
}

.option-group select,
.option-group input[type="password"] {
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--dark);
    color: var(--text-light);
    font-size: 0.9rem;
    flex-grow: 1;
}

.option-group input[type="checkbox"] {
    width: auto;
    flex-grow: 0;
    transform: scale(1.1);
    margin-right: 5px;
}

.option-group small {
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-basis: 100%;
    padding-left: calc(150px + 1rem);
}

.filelist {
    list-style-type: none;
    padding: 0;
    margin-top: 1.5rem;
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
}

.filelist li {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.filelist li .file-info {
    flex: 1 1 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 150px;
}

.filelist li .file-info .file-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

.filelist li .file-size {
    flex: 0 1 auto;
    color: var(--text-dark);
    white-space: nowrap;
    margin-left: auto;
    margin-right: 1rem;
}

.filelist li .file-status {
    flex: 0 1 120px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}

.progress-bar-container {
    width: 100px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: var(--gradient-light);
    border-radius: 4px;
    transition: width 0.2s ease-out;
}

.copy-button,
.error-span {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: none;
    background: var(--gradient);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    white-space: nowrap;
}

.copy-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(233, 74, 140, 0.2);
}

.error-span {
    background: var(--danger);
    cursor: default;
    font-weight: 500;
}

.filelist li a {
    color: var(--light-pink);
    text-decoration: none;
}

.filelist li a:hover {
    text-decoration: underline;
}

.dropdown-container {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    margin-top: 8px;
    background-color: var(--dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 100;
    padding: 0.5rem;
    min-width: 180px;
    transition: opacity 0.15s ease-out, visibility 0s linear 0.15s;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 8px;
    background-color: transparent;
}

.dropdown-container:hover>.dropdown-menu {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.15s ease-out, visibility 0s linear 0s;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
    min-width: 320px;
    left: 0;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.5rem;
    border-radius: 6px;
    background-color: var(--bg-panel);
    transition: background-color 0.2s ease;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
}

.service-item:hover {
    background-color: var(--bg-panel-hover);
    color: var(--text-light);
    text-decoration: none;
}

.service-item:hover .service-name,
.service-item:hover .service-icon {
    text-decoration: none;
}

.service-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-name {
    line-height: 1.3;
}

.profile-menu {
    right: 0;
    left: auto;
    min-width: 160px;
}

.profile-menu a,
.profile-menu button {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 4px;
}

.profile-menu a:hover,
.profile-menu button:hover {
    background-color: var(--bg-panel-hover);
    color: var(--text-light);
    text-decoration: none;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

.dropdown-logout-btn {
    color: var(--pink) !important;
}

.dropdown-logout-btn:hover {
    background-color: rgba(233, 74, 140, 0.1) !important;
    color: var(--light-pink) !important;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.profile-trigger:hover {
    text-decoration: none;
}

.dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.2s ease;
    display: inline-block;
}

.dropdown-container:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-logout-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    margin: 0;
    display: inline;
    transition: color 0.3s ease;
}

.nav-logout-btn:hover {
    color: var(--text-light);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-profile a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-profile a:hover {
    color: var(--text-light);
}

.auth-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-form div {
    margin-bottom: 1rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.auth-form input {
    width: 100%;
    padding: 0.8rem;
    background: var(--dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-light);
}

.auth-form .form-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.auth-form button,
.auth-form a.button {
    flex: 1;
    text-align: center;
}

.alert {
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.alert ul {
    margin-top: 0.5rem;
    margin-left: 1.2rem;
    padding: 0;
}

.alert li {
    margin-bottom: 0.3rem;
}

.alert.error {
    background-color: var(--danger-bg);
    color: var(--danger-light);
    border-color: var(--danger);
}

.alert.success {
    background-color: var(--success-bg);
    color: var(--success-light);
    border-color: var(--success);
}

.button {
    padding: 0.8rem 2rem;
    border-radius: 25px;
    border: none;
    background: var(--gradient);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-block;
    text-decoration: none;
    vertical-align: middle;
    line-height: normal;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 74, 140, 0.3);
}

button.secondary,
a.button.secondary {
    background: var(--dark-grey);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

button.secondary:hover,
a.button.secondary:hover {
    background-color: var(--medium-grey);
    color: var(--darker);
    box-shadow: none;
}

.button.small {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

button.danger,
.button.danger {
    background-color: var(--danger);
    color: #fff;
}

button.danger:hover,
.button.danger:hover {
    background-color: #c62828;
}

button.warning,
.button.warning {
    background-color: var(--warning);
    color: var(--darker);
}

button.warning:hover {
    background-color: #fbc02d;
}

.geoip-content {
    max-width: 900px;
    margin: 0 auto;
}

.geoip-subtext {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

input[type="text"]#ipInput {
    width: 100%;
    padding: 15px 20px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    background-color: var(--background-light);
    color: var(--text-color);
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input[type="text"]#ipInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(107, 47, 179, 0.2);
}

#map {
    height: 450px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background-color: var(--background-dark);
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.error {
    padding: 10px 15px;
    margin: 10px 0 15px;
    border-radius: 8px;
    background-color: rgba(220, 38, 38, 0.2);
    color: #ef9a9a;
    border: 1px solid rgba(220, 38, 38, 0.3);
    display: none;
    font-size: 0.9rem;
}

.leaflet-popup-content-wrapper {
    background-color: var(--background-light);
    color: var(--text-color);
    border-radius: 10px;
    padding: 0;
    min-width: 260px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.leaflet-popup-content {
    margin: 0;
    padding: 15px;
    padding-top: 25px;
}

.leaflet-popup-tip {
    background-color: var(--background-light);
    width: 12px;
    height: 12px;
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.leaflet-container a.leaflet-popup-close-button {
    color: var(--text-muted);
    padding: 4px;
    width: 24px;
    height: 24px;
    font: 20px/20px sans-serif;
    transition: all 0.3s ease;
    position: absolute;
    right: 5px;
    top: 5px;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.location-detail {
    margin: 6px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 6px;
    font-size: 0.85rem;
}

.location-detail:last-child {
    border-bottom: none;
}

.location-label {
    color: var(--primary-color);
    font-weight: 600;
    min-width: 80px;
    flex-shrink: 0;
}

.location-value {
    color: var(--text-muted);
    text-align: right;
    word-break: break-word;
    flex-grow: 1;
}

.info-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.info-box {
    background: linear-gradient(145deg, var(--background-light), var(--background-dark));
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.info-box-title {
    color: var(--primary-color);
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 10px;
}

.info-box-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line-color);
}

.info-box-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-box-subtitle {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    min-width: 100px;
    flex-shrink: 0;
}

.info-value {
    color: var(--text-color);
    font-size: 0.85rem;
    text-align: right;
    word-break: break-word;
    flex: 1;
    margin-left: 15px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    color: var(--text-color);
    font-size: 0.85rem;
    padding: 3px 0;
}

.info-list li.primary-ip {
    color: var(--primary-color);
    font-weight: 500;
}

.time-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 8px;
    font-weight: 500;
}

.status-badge.danger {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef9a9a;
}

.status-badge.hosting-badge {
    background-color: rgba(147, 51, 234, 0.2);
    color: #c084fc;
}

.share-container {
    background: var(--background-dark);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.share-title {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.share-input-group {
    display: flex;
    gap: 10px;
}

.share-input {
    flex: 1;
    background: var(--background-light);
    border: 1px solid var(--line-color);
    border-radius: 6px;
    padding: 8px 12px !important;
    color: var(--text-color);
    font-size: 12px !important;
    cursor: text;
    user-select: all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-button {
    background: var(--primary-color);
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.share-button:hover {
    background: var(--secondary-color);
}

.share-button.copied {
    background: #43a047;
}

.history-container {
    margin-top: 30px;
    background: linear-gradient(145deg, var(--background-light), var(--background-dark));
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: none;
}

.history-title {
    color: var(--primary-color);
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 10px;
}

.history-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.history-clear:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.history-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    position: relative;
    background-color: var(--background-dark);
    padding: 12px 15px;
    padding-right: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item:hover {
    border-color: var(--primary-color);
    background-color: var(--background-light);
}

.history-item-info {
    flex-grow: 1;
}

.history-item-query {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.history-item-details {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.history-item-time {
    color: var(--text-muted);
    font-size: 0.75rem;
    padding-left: 15px;
    white-space: nowrap;
}

.history-delete {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.history-item:hover .history-delete {
    opacity: 1;
}

.history-delete:hover {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.history-delete::before {
    content: '×';
    font-size: 20px;
    line-height: 1;
    font-weight: 500;
}

.auto-suggest {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 1000;
    display: none;
    border: 1px solid var(--border-color);
}

.auto-suggest-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.auto-suggest-item:hover {
    background-color: var(--background-dark);
    border-left-color: var(--primary-color);
}

.auto-suggest-query {
    color: var(--text-color);
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.auto-suggest-details {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    background: rgba(10, 10, 15, 0.7);
    pointer-events: none;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
    pointer-events: auto;
}

.loading-container {
    position: relative;
    background: var(--background-dark);
    backdrop-filter: blur(5px);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: 1px solid var(--border-color);
    transform: translateY(10px);
}

.loading-overlay.active .loading-container {
    transform: translateY(0);
}

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

.loading-spinner {
    width: 30px;
    height: 30px;
    margin: 0 auto 1rem;
    border: 3px solid var(--line-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--text-color);
    font-size: 0.9rem;
    animation: pulseText 1.5s ease-in-out infinite;
    white-space: nowrap;
}

.map-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.info-box.loading {
    position: relative;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.6;
}

.info-box.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.services-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(107, 47, 179, 0.1);
    border-color: var(--purple);
}

.service-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.service-card p {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-card.placeholder {
    opacity: 0.6;
    cursor: default;
}

.service-card.placeholder:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-color);
}

.content-section {
    background-color: var(--bg-panel);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    text-align: left;
    max-width: 900px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    table-layout: fixed;
}

.content-section th,
.content-section td {
    padding: 0.7rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-section th {
    background-color: var(--dark-grey);
    color: var(--light-grey);
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Make header sticky within scroll */
.content-section tr:last-child td {
    border-bottom: none;
}

.content-section tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.content-section td a {
    color: var(--accent);
    text-decoration: none;
}

.content-section td a:hover {
    text-decoration: underline;
}

.filename-generated {
    font-size: 0.8em;
    color: var(--text-muted);
    margin-left: 5px;
}

.badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
    margin-right: 4px;
    border: 1px solid transparent;
}

.badge.info {
    background-color: var(--info-bg);
    color: var(--info-light);
    border-color: rgba(3, 169, 244, 0.3);
}

.badge.warning {
    background-color: var(--warning-bg);
    color: var(--warning);
    border-color: rgba(253, 216, 53, 0.3);
}

.badge.standard {
    background-color: rgba(150, 150, 155, 0.1);
    color: var(--medium-grey);
    border-color: rgba(150, 150, 155, 0.2);
}

.actions-cell {
    text-align: right;
    white-space: nowrap;
    overflow: visible !important;
    /* Allow dropdown to overflow */
    position: static !important;
    /* Reset position if needed */
}

.action-dropdown {
    position: relative;
    display: inline-block;
}

.action-dropdown .dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    margin-top: 4px;
    background-color: var(--dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 50;
    padding: 0.4rem;
    min-width: 120px;
    transition: opacity 0.1s ease-out, visibility 0s linear 0.1s;
}

.action-dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 4px;
    background-color: transparent;
}

.action-dropdown:hover>.dropdown-trigger+.dropdown-menu,
.action-dropdown>.dropdown-menu:hover {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.1s ease-out, visibility 0s linear 0s;
}

.action-menu .dropdown-item {
    display: block;
    padding: 0.5rem 0.8rem;
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: 4px;
}

.action-menu .dropdown-item:hover {
    background-color: var(--bg-panel-hover);
    color: var(--text-light);
}

.action-menu .dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.4rem 0;
}

.action-menu .dropdown-item.danger {
    color: var(--pink);
}

.action-menu .dropdown-item.danger:hover {
    background-color: rgba(233, 74, 140, 0.1);
    color: var(--light-pink);
}

.pagination {
    margin-top: 1.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.pagination .button.disabled,
.pagination .button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--dark-grey);
    border-color: var(--border-color);
}

.pagination .button.disabled:hover {
    background: var(--dark-grey);
}

.settings-form {
    max-width: 600px;
    margin: 0 auto;
}

.settings-form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 1rem;
}

.settings-form fieldset:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.settings-form legend {
    font-weight: 500;
    color: var(--light-purple);
    margin-bottom: 1rem;
    font-size: 1rem;
    padding: 0;
}

.settings-form .form-group {
    margin-bottom: 1rem;
}

.settings-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.settings-form .form-group input {
    width: 100%;
    padding: 0.8rem;
    background: var(--dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-light);
}

.settings-form .field-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.settings-form .form-actions {
    margin-top: 1.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 var(--purple), -0.05em -0.025em 0 var(--pink);
    }

    15% {
        text-shadow: -0.05em -0.025em 0 var(--purple), 0.025em 0.025em 0 var(--pink);
    }

    49% {
        text-shadow: -0.05em -0.025em 0 var(--purple), 0.025em 0.025em 0 var(--pink);
    }

    50% {
        text-shadow: 0.05em 0.025em 0 var(--purple), 0.05em 0 0 var(--pink);
    }

    99% {
        text-shadow: 0.05em 0.025em 0 var(--purple), 0.05em 0 0 var(--pink);
    }

    100% {
        text-shadow: -0.05em 0 0 var(--purple), -0.025em -0.025em 0 var(--pink);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 95%;
    }

    .info-boxes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .glitch {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    header {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    header nav ul.main-nav-list {
        justify-content: center;
        gap: 0.5rem;
    }

    .filelist li {
        flex-wrap: wrap;
        padding: 0.5rem;
    }

    .filelist li .file-info {
        margin-right: 0.5rem;
        flex-basis: calc(100% - 130px);
    }

    .filelist li .file-size {
        flex-basis: 50px;
        text-align: right;
        margin-right: 1rem;
    }

    .filelist li .file-status {
        flex-basis: 80px;
    }

    #map {
        height: 350px;
    }

    .location-label {
        min-width: 70px;
    }

    .content-section {
        padding: 1.2rem;
    }

    .content-section table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .content-section th,
    .content-section td {
        white-space: nowrap;
    }

    /* Sticky actions might be complex with overflow-x, remove for now if buggy */
    /* #my-files-table td.actions-cell { position: relative; } */
    .action-dropdown .dropdown-menu {
        position: fixed;
        /* Use fixed for mobile table dropdown */
        top: auto;
        bottom: auto;
        left: auto;
        right: 5px;
        transform: none;
        margin-top: 0;
    }

    .action-dropdown:hover>.dropdown-trigger+.dropdown-menu {
        visibility: hidden;
        opacity: 0;
    }

    /* Disable hover on mobile table */
    .action-dropdown>.dropdown-trigger:focus+.dropdown-menu,
    /* Show on focus */
    .action-dropdown>.dropdown-menu:hover {
        /* Keep open on hover */
        visibility: visible;
        opacity: 1;
    }

    .action-dropdown .dropdown-menu::before {
        display: none;
    }

    /* Hide gap filler */
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .glitch {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    header nav ul.main-nav-list {
        gap: 0.2rem;
        font-size: 0.9rem;
    }

    header nav a {
        padding: 0.4rem 0.5rem;
    }

    .nav-separator {
        margin: 0 0.3rem;
    }

    #upload-section {
        padding: 1rem;
    }

    .dragdrop {
        padding: 1.5rem 1rem;
    }

    .filelist li .file-info {
        flex-basis: 100%;
        margin-bottom: 0.5rem;
        margin-right: 0;
    }

    .filelist li .file-size {
        flex-basis: auto;
        text-align: left;
        margin-right: 1rem;
    }

    .filelist li .file-status {
        flex-basis: auto;
        margin-left: auto;
    }

    .option-group label {
        flex-basis: 100%;
        margin-bottom: 0.2rem;
    }

    .option-group small {
        padding-left: 0;
    }

    .auth-form {
        padding: 1.5rem;
    }

    .info-boxes {
        gap: 15px;
    }

    .info-box {
        padding: 15px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-subtitle {
        margin-bottom: 2rem;
    }

    .services-page-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .content-section {
        padding: 1rem;
    }

    th,
    td {
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
    }

    .button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .button.small {
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
    }
}