/* ===============================================
   KısaLink - Ana Stil Dosyası
   Modern, temiz ve responsive tasarım
   =============================================== */

/* ==================== DEĞIŞKENLER ==================== */
:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --primary-light: #8B85FF;
    --primary-glow: rgba(108, 99, 255, 0.25);
    --secondary: #FF6584;
    --secondary-dark: #E0536E;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    --bg: #F8F9FE;
    --bg-card: #FFFFFF;
    --bg-input: #F1F3F9;
    --bg-hover: #ECEDF5;
    --text: #1A1A2E;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --border-focus: var(--primary);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 4px 20px rgba(108, 99, 255, 0.3);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --radius-full: 50px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1200px;
}

/* Dark theme overrides — applied via data-theme="dark" */
[data-theme="dark"] {
    --bg: #0F0F1A;
    --bg-card: #1A1A2E;
    --bg-input: #252540;
    --bg-hover: #2A2A45;
    --text: #E8E8F0;
    --text-secondary: #A0A0B8;
    --text-muted: #6B6B80;
    --border: #2D2D45;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    flex: 1;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-theme="dark"] .navbar {
    background: rgba(26, 26, 46, 0.9);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-brand:hover {
    color: var(--primary);
}

.brand-icon {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-link:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 8px;
}

.nav-username {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.theme-toggle {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition);
    display: flex;
    align-items: center;
}

.theme-toggle:hover {
    background: var(--bg-hover);
    transform: scale(1.05);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(108, 99, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #DC2626;
    color: #fff;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 4px 0;
    transition: color var(--transition);
}

.link-btn:hover {
    color: var(--primary-dark);
}

/* ==================== FORM ELEMENTS ==================== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.input-field,
.textarea-bulk {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: all var(--transition);
    outline: none;
}

.input-field:focus,
.textarea-bulk:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--bg-card);
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.input-prefix {
    display: flex;
    align-items: center;
    gap: 0;
}

.prefix-text {
    background: var(--bg-hover);
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.input-prefix .input-field {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

textarea.input-field {
    resize: vertical;
    min-height: 100px;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

[data-theme="dark"] .alert-error {
    background: #451A1A;
    color: #FCA5A5;
    border-color: #7F1D1D;
}

[data-theme="dark"] .alert-success {
    background: #064E3B;
    color: #6EE7B7;
    border-color: #065F46;
}

[data-theme="dark"] .alert-warning {
    background: #451A03;
    color: #FCD34D;
    border-color: #78350F;
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    top: 85px;
    right: 20px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 9999;
    animation: toastIn 0.4s ease, toastOut 0.4s ease 3.5s forwards;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
}

.toast-success {
    background: var(--success);
    color: #fff;
}

.toast-error {
    background: var(--danger);
    color: #fff;
}

/* ==================== HERO ==================== */
.hero {
    padding: 80px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* ==================== SHORTEN BOX ==================== */
.shorten-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.input-group-main {
    display: flex;
    gap: 0;
}

.input-url {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    background: var(--bg-input);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition);
}

.input-url:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--bg-card);
}

.btn-shorten {
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    border: 2px solid var(--primary);
}

.advanced-toggle {
    text-align: center;
    margin-top: 16px;
}

.advanced-options {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    animation: slideDown 0.3s ease;
}

/* ==================== RESULT BOX ==================== */
.result-box {
    margin-top: 24px;
    padding: 20px;
    border-radius: var(--radius);
    animation: slideDown 0.4s ease;
}

.result-success {
    background: linear-gradient(135deg, #D1FAE5, #E8F5E9);
    border: 1px solid #A7F3D0;
}

[data-theme="dark"] .result-success {
    background: linear-gradient(135deg, #064E3B, #065F46);
    border: 1px solid #10B981;
}

.result-error {
    background: #FEE2E2;
    border: 1px solid #FECACA;
}

[data-theme="dark"] .result-error {
    background: #451A1A;
    border-color: #7F1D1D;
}

.result-label {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #065F46;
}

[data-theme="dark"] .result-label {
    color: #6EE7B7;
}

.result-link-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.result-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--primary);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
}

.btn-copy,
.btn-qr {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-copy {
    background: var(--primary);
    color: #fff;
}

.btn-copy:hover {
    background: var(--primary-dark);
}

.btn-copy.copied {
    background: var(--success);
    animation: pulse 0.3s ease;
}

.btn-qr {
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--border);
    text-decoration: none;
}

.btn-qr:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.result-original {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.result-error-text {
    color: #991B1B;
    font-weight: 500;
}

[data-theme="dark"] .result-error-text {
    color: #FCA5A5;
}

.btn-copy-sm {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all var(--transition);
}

.btn-copy-sm:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ==================== BULK SECTION ==================== */
.bulk-section {
    text-align: center;
    margin-top: 30px;
}

.bulk-form-wrap {
    max-width: 700px;
    margin: 16px auto 0;
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    animation: slideDown 0.3s ease;
}

.textarea-bulk {
    margin-bottom: 16px;
}

.bulk-results {
    margin-top: 20px;
    text-align: left;
}

.bulk-result-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.bulk-result-item.success {
    background: #D1FAE5;
}

.bulk-result-item.error {
    background: #FEE2E2;
}

[data-theme="dark"] .bulk-result-item.success {
    background: #064E3B;
}

[data-theme="dark"] .bulk-result-item.error {
    background: #451A1A;
}

.bulk-short {
    font-weight: 600;
    color: var(--primary);
}

.bulk-arrow {
    color: var(--text-muted);
}

.bulk-original {
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
}

.bulk-error {
    color: var(--danger);
}

/* ==================== STATS SECTION ==================== */
.stats-section {
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

/* ==================== FEATURES SECTION ==================== */
.features-section,
.how-section,
.faq-section,
.cta-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==================== HOW IT WORKS ==================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-primary);
}

.step-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==================== FAQ ==================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: background var(--transition);
}

.faq-question:hover {
    background: var(--bg-hover);
}

.faq-icon {
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 18px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    text-align: center;
}

.cta-content {
    background: linear-gradient(135deg, var(--primary), #4F46E5);
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-content .text-gradient {
    -webkit-text-fill-color: #FFD700;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

.cta-content .btn {
    background: #fff;
    color: var(--primary);
    font-size: 1.05rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-content .btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* ==================== AUTH SECTIONS ==================== */
.auth-section {
    padding: 60px 0;
}

.auth-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-footer,
.auth-terms {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-terms {
    font-size: 0.78rem;
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.forgot-section {
    text-align: center;
}

/* ==================== DASHBOARD ==================== */
.dashboard-section,
.analytics-section,
.admin-section {
    padding: 40px 0 60px;
}

.dashboard-header,
.analytics-header,
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
}

.dashboard-header h1,
.analytics-header h1,
.admin-header h1 {
    font-size: 1.6rem;
}

.dashboard-stats,
.analytics-stats,
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.dash-stat-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.dash-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.dash-stat-icon {
    font-size: 2rem;
}

.dash-stat-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.dash-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dash-stat-today {
    font-size: 0.75rem;
    color: var(--success);
    display: block;
    margin-top: 2px;
}

.dashboard-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-form .input-field {
    width: 250px;
}

.toolbar-info {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==================== DATA TABLE ==================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--bg-input);
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.data-table tr:hover td {
    background: var(--bg-hover);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table-sm th,
.data-table-sm td {
    padding: 10px 12px;
    font-size: 0.82rem;
}

.url-cell {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.short-link {
    font-weight: 600;
    color: var(--primary);
}

.short-link-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.click-count {
    font-weight: 700;
    color: var(--primary);
}

.action-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-info {
    background: #DBEAFE;
    color: #1E40AF;
}

[data-theme="dark"] .badge-success {
    background: #064E3B;
    color: #6EE7B7;
}

[data-theme="dark"] .badge-danger {
    background: #451A1A;
    color: #FCA5A5;
}

[data-theme="dark"] .badge-warning {
    background: #451A03;
    color: #FCD34D;
}

[data-theme="dark"] .badge-info {
    background: #1E3A5F;
    color: #93C5FD;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.page-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ==================== ANALYTICS ==================== */
.analytics-link-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.short-url {
    font-weight: 700;
    color: var(--primary);
    background: var(--bg-input);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

.arrow {
    color: var(--text-muted);
}

.original-url {
    color: var(--text-secondary);
}

.period-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.chart-section {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.chart-section h2 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.chart-container {
    min-height: 200px;
}

.empty-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--text-muted);
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 200px;
    padding-top: 20px;
}

.bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 20px;
}

.bar-fill {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.5s ease;
}

.bar-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
    transform: rotate(-45deg);
    transform-origin: center;
}

.bar-value {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text);
}

.stats-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.stat-box h3 {
    margin-bottom: 16px;
    font-size: 1rem;
}

.stat-bar-item {
    margin-bottom: 12px;
}

.stat-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.stat-bar {
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
    min-width: 2%;
}

.no-data {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 12px 0;
}

.recent-clicks {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.recent-clicks h2 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* ==================== ADMIN ==================== */
.admin-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.admin-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-card-header h3 {
    font-size: 1.05rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    padding: 20px;
}

.settings-toggles {
    padding: 20px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.toggle-label:last-child {
    border-bottom: none;
}

.toggle-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.toggle-text {
    font-size: 0.9rem;
}

.inline-form .form-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.inline-form .input-field {
    flex: 1;
}

/* ==================== MODAL ==================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.modal-content h3 {
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* ==================== PAGES ==================== */
.page-section {
    padding: 50px 0 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.content-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.content-card h2 {
    font-size: 1.3rem;
    margin: 28px 0 12px;
    color: var(--text);
}

.content-card h2:first-child {
    margin-top: 0;
}

.content-card h3 {
    font-size: 1.05rem;
    margin: 20px 0 8px;
}

.content-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.content-card ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.content-card li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 4px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

/* About Features */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.about-feature {
    padding: 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border: 1px solid var(--border);
}

.about-feature h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.about-feature p {
    margin-bottom: 0;
    font-size: 0.88rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.contact-info-list {
    margin-top: 16px;
}

.contact-info-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* QR Code Page */
.qr-page {
    max-width: 600px;
    margin: 0 auto;
}

.qr-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.qr-image {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    padding: 20px;
    background: #fff;
    border-radius: var(--radius);
}

.qr-image img {
    border-radius: 4px;
}

.qr-info {
    text-align: left;
}

.qr-url-box {
    margin-bottom: 20px;
}

.qr-url-box label {
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.qr-sizes {
    margin-bottom: 24px;
}

.size-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.qr-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 50px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 14px;
    color: var(--text);
}

.footer-col p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-seo {
    font-size: 0.72rem !important;
    margin-top: 6px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {

    .features-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 16px 20px;
        flex-direction: column;
        gap: 4px;
        box-shadow: var(--shadow);
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 14px;
    }

    .nav-user {
        margin-left: 0;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }

    .hero {
        padding: 50px 0 30px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .shorten-box {
        padding: 20px;
    }

    .input-group-main {
        flex-direction: column;
        gap: 12px;
    }

    .input-url {
        border-right: 2px solid var(--border);
        border-radius: var(--radius);
    }

    .input-url:focus {
        border-color: var(--primary);
    }

    .btn-shorten {
        border-radius: var(--radius);
        border: 2px solid var(--primary);
    }

    .features-grid,
    .steps-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .dashboard-header,
    .analytics-header,
    .admin-header {
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .auth-card {
        padding: 24px;
    }

    .content-card {
        padding: 24px;
    }

    .search-form .input-field {
        width: 160px;
    }

    .prefix-text {
        display: none;
    }

    .input-prefix .input-field {
        border-radius: var(--radius-sm);
    }

    .admin-nav {
        justify-content: center;
    }

    .result-link-group {
        flex-direction: column;
    }

    .result-input {
        width: 100%;
    }

    .inline-form .form-row {
        flex-direction: column;
    }

    .dashboard-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-actions {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
        font-size: 0.78rem;
    }

    .shorten-box {
        padding: 16px;
    }
}

/* ==================== INFO SECTION (SEO) ==================== */
.info-section {
    padding: 80px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: start;
}

.info-block {
    position: relative;
    padding-left: 20px;
}

.info-block h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    position: relative;
}

.info-block h3::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 4px;
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

.info-block p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.about-cta {
    margin: 40px 0;
    padding: 24px;
    background: var(--bg-input);
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}