:root {
    --bg-color: #0f0c29;
    --text-color: #ffffff;
    --primary-color: #a18cd1;
    --secondary-color: #fbc2eb;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(0, 0, 0, 0.3);
    --accent: #d53369;
    /* For errors or highlights */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* Background Animation */
.background-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: #43cea2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(10deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 500px;
    text-align: center;
    padding: 20px;
}

header {
    margin-bottom: 2rem;
}

.logo {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(to right, #a18cd1, #fbc2eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.tagline {
    opacity: 0.7;
    font-size: 1.1rem;
}

/* Card glassmorphism */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 15px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    opacity: 0.5;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
}

.tab-btn:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

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

/* Form Elements */
.input-group {
    display: flex;
    gap: 10px;
}

input[type="url"],
input[type="text"] {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--input-bg);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input[type="url"]:focus,
input[type="text"]:focus {
    border-color: var(--primary-color);
}

.action-btn {
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(161, 140, 209, 0.4);
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--card-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drop-zone:hover,
.drop-zone.dragover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--primary-color);
}

.drop-icon {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Results */
.result-area {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}

.label {
    text-align: left;
    margin-bottom: 8px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.result-group {
    position: relative;
}

.icon-btn {
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    color: white;
    width: 50px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hidden {
    display: none !important;
}

/* Loading */
.loading {
    margin-top: 20px;
    text-align: center;
}

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

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

/* Status Message used for copying mostly */
.status-message {
    margin-top: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Stats Page Specifics */
.stats-container {
    max-width: 800px;
}

.back-link {
    display: block;
    margin-top: 10px;
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 1;
}

.stats-card {
    margin-bottom: 20px;
    text-align: left;
}

.stats-card h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 10px;
}

.stats-overview {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.stat-box {
    flex: 1;
    background: var(--input-bg);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--card-border);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Logs */
.logs-card {
    padding: 0;
    overflow: hidden;
}

.logs-card h3 {
    padding: 20px;
    margin: 0;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.1rem;
}

.logs-list-header {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr 3fr;
    /* Added column */
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.8;
}

.logs-list {
    max-height: 300px;
    overflow-y: auto;
}

.log-item {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr 3fr;
    /* Added column */
    padding: 12px 20px;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.9rem;
}

.log-item:last-child {
    border-bottom: none;
}

.log-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.log-item.empty {
    display: block;
    text-align: center;
    padding: 20px;
    opacity: 0.5;
}

.link-display {
    margin-bottom: 25px;
}

.link-display .label {
    display: block;
    margin-bottom: 8px;
}