/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dynamic site color - loaded from database via header.php */
    --primary-color: var(--site-primary-color, #4f46e5); /* Fallback to default if not set */
    --primary-dark: #4338ca;
    --secondary-color: #06b6d4;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobile Container Spacing - Prevent content from touching edges */
@media (max-width: 768px) {
    .container {
        padding: 0 16px; /* Slightly reduced on mobile but still comfortable */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px; /* Optimized for small screens */
    }
    
    /* Add extra spacing to main content areas on mobile */
    .hero-section,
    .content-section,
    .features-section,
    .shorten-main {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Header & Navigation */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 0.5rem 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo-link:hover {
    opacity: 0.8;
}

.site-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* File Upload Styling */
.file-upload-wrapper {
    margin-top: 0.75rem;
}

.file-upload-wrapper input[type="file"] {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-light);
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-wrapper input[type="file"]:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.current-logo-preview,
.current-favicon-preview {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    text-align: center;
}

.current-logo-preview img {
    max-height: 60px;
    width: auto;
    margin-bottom: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.current-favicon-preview img {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.current-logo-preview p,
.current-favicon-preview p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.field-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.settings-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
    border-bottom: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.user-greeting {
    color: var(--text-light);
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Profile Dropdown */
.profile-dropdown-wrapper {
    position: relative;
}

.profile-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: transparent;
    border: 2px solid var(--border-color);
    padding: 0.25rem 0.625rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.8125rem;
    color: var(--text-dark);
}

.profile-dropdown-toggle:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
}

.profile-name {
    font-weight: 600;
}

.dropdown-arrow {
    transition: transform 0.3s;
    color: var(--text-light);
    width: 8px;
    height: 8px;
}

.profile-dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-white);
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
}

.profile-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 0.75rem;
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.dropdown-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9375rem;
    color: white;
    flex-shrink: 0;
}

.dropdown-info {
    flex: 1;
    min-width: 0;
}

.dropdown-name {
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-email {
    font-size: 0.6875rem;
    opacity: 0.9;
    margin-top: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.25rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.8125rem;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.dropdown-icon {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.dropdown-logout {
    color: var(--error-color);
}

.dropdown-logout:hover {
    background: #fee2e2;
}

/* Header Auth Buttons */
.header-auth-buttons {
    display: flex;
    gap: 0.75rem;
}

/* Desktop Only - Hide on Mobile */
.desktop-only {
    display: flex;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;  /* Hide navigation buttons on mobile/tablet */
    }
}

/* Mobile Only - Hide on Desktop */
.mobile-only {
    display: flex;
}

@media (min-width: 1025px) {
    .mobile-only {
        display: none !important;  /* Hide navigation buttons on desktop */
    }
}

.btn-ghost {
    background: transparent;
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-ghost:hover {
    background: var(--primary-color);
    color: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    opacity: 0.9;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.btn-edit {
    background-color: #3b82f6;
    color: white;
}

.btn-delete {
    background-color: var(--error-color);
    color: white;
}

/* Loading State */
.loading {
    display: inline-block;
    position: relative;
}

.loading:after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ========================================
   MODERN HOMEPAGE DESIGN
   ======================================== */

/* Hero Section Modern */
.hero-modern {
    position: relative;
    padding: 4rem 0 5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Login CTA Card */
.login-cta-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.25rem;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.login-cta-card h3 {
    font-size: 1.75rem;
    color: white;
    margin-bottom: 0.5rem;
}

.login-cta-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-glow {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.btn-glow:hover {
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Shortener Form Modern */
.shortener-form-modern {
    margin-top: 2rem;
}

.alert-modern {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.alert-modern .alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.short-url-result-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 0.75rem;
}

.short-url-result-modern code {
    flex: 1;
    font-family: 'Courier New', monospace;
    color: white;
    font-size: 0.9rem;
    word-break: break-all;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
    white-space: nowrap;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.url-form-modern {
    max-width: 700px;
    margin: 0 auto;
}

.input-group-modern {
    display: flex;
    gap: 0;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.input-group-modern:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.input-group-modern input {
    flex: 1;
    border: none;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    outline: none;
}

.input-group-modern .btn-submit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.input-group-modern .btn-submit:hover {
    filter: brightness(1.1);
    transform: translateX(2px);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Features Modern */
.features-modern {
    padding: 6rem 0;
    background: #f9fafb;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon {
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.7;
}

/* How It Works Modern */
.how-it-works-modern {
    padding: 6rem 0;
    background: white;
}

.steps-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step-modern {
    text-align: center;
}

.step-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.step-modern h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.step-modern p {
    color: #6b7280;
    line-height: 1.7;
}

/* CTA Modern */
.cta-modern {
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.cta-button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Shortener Form */
.shortener-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.url-form .form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}

.url-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.short-url-result {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.short-url-result input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    background-color: var(--bg-light);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature p {
    color: var(--text-light);
}

/* How It Works */
.how-it-works {
    padding: 4rem 0;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-light);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--error-color);
}

.alert ul {
    margin-left: 1.5rem;
}

/* Auth Pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.auth-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-light);
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.auth-form input,
.auth-form select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Password Toggle Button */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

.eye-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard {
    padding: 3rem 0;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.urls-table {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.urls-table h2 {
    margin-bottom: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--bg-light);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    color: var(--text-dark);
}

.url-original {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-code {
    font-family: monospace;
    color: var(--primary-color);
    font-weight: bold;
}

.url-views {
    font-weight: bold;
    color: var(--secondary-color);
}

.url-actions {
    display: flex;
    gap: 0.5rem;
}

.no-urls {
    text-align: center;
    padding: 3rem;
}

.no-urls p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Settings Form */
.settings-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.settings-form .form-group {
    margin-bottom: 1.5rem;
}

.settings-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.settings-form input[type="text"],
.settings-form input[type="email"],
.settings-form input[type="tel"],
.settings-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.settings-form input:focus,
.settings-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.settings-form textarea {
    resize: vertical;
    min-height: 100px;
}

.settings-info {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

.settings-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.settings-info ul {
    list-style: none;
    padding-left: 0;
}

.settings-info li {
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.settings-info li:before {
    content: '✓ ';
    color: var(--success-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.close:hover {
    color: var(--text-dark);
}

/* Footer */
.site-footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0;
    margin-top: auto;
    width: 100%;
}

/* Footer Responsive - Full Width */
.admin-body .site-footer {
    margin-left: 0;                    /* No sidebar offset */
    width: 100%;                       /* Full width on all screens */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* ========================================
   MODERN ADMIN DASHBOARD DESIGN
   ======================================== */

/* Admin Body Layout */
.admin-body {
    background: #f8fafc;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.admin-wrapper {
    display: flex;
    min-height: calc(100vh - 70px);
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;              /* Prevent horizontal scroll */
}

/* Admin Sidebar - Hidden on Desktop, Visible on Mobile Only */
.admin-sidebar {
    width: 300px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: calc(100vh - 70px);
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);  /* Hidden by default on desktop */
}

.admin-sidebar.active {
    transform: translateX(0);  /* Slide in when active */
}

/* Scrollbar Styling - Modern */
.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 3px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

/* Sidebar Header */
.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1), transparent);
    position: relative;
    transition: all 0.3s;
}

.admin-sidebar.collapsed .sidebar-header {
    padding: 2rem 0.75rem;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
}

.sidebar-header h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.025em;
    transition: opacity 0.3s;
}

.admin-sidebar.collapsed .sidebar-header h3 {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.admin-sidebar.collapsed .nav-item {
    padding: 0.875rem 0.75rem;
    justify-content: center;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #6366f1, #4f46e5);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.nav-item:hover::before,
.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(79, 70, 229, 0.2);
    transform: translateX(4px);
}

.nav-item.nav-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

/* Icon Animations */
.nav-icon {
    font-size: 1.375rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.nav-item:hover .nav-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Hide text when collapsed */
.admin-sidebar.collapsed .nav-item span:not(.nav-icon) {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

/* Sidebar User Profile - Enhanced Fintech Style */
.sidebar-user {
    padding: 1.5rem;
    margin: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.admin-sidebar.collapsed .sidebar-user {
    padding: 1rem 0.75rem;
    justify-content: center;
}

.sidebar-user:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Sidebar Developer Credit */
.sidebar-credit {
    padding: 1rem 1.5rem;
    margin: 0.5rem 1rem 1rem 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    line-height: 1.4;
}

.admin-sidebar.collapsed .sidebar-credit {
    display: none;
}

/* Sidebar WhatsApp Button */
.sidebar-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 1rem 1rem 1rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.sidebar-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

.sidebar-whatsapp:active {
    transform: translateY(0);
}

.sidebar-whatsapp span:first-child {
    font-size: 1.125rem;
}

.admin-sidebar.collapsed .sidebar-whatsapp {
    display: none;
}

.user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.4);
    flex-shrink: 0;
    position: relative;
}

.user-avatar::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 3px solid #0f172a;
    border-radius: 50%;
}

.user-info {
    flex: 1;
    min-width: 0;
    transition: opacity 0.3s;
}

.admin-sidebar.collapsed .user-info {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.user-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.user-role::before {
    content: '👑';
    font-size: 0.875rem;
}

/* Admin Main Content - Full Width on Desktop */
.admin-main {
    flex: 1;
    margin-left: 0;                    /* No sidebar offset on desktop */
    padding: 2rem;
    transition: padding 0.3s ease;
    max-width: 100%;                   /* Full width */
    box-sizing: border-box;
}

.admin-main.sidebar-collapsed {
    margin-left: 280px;              /* Keep same margin on desktop */
}

/* Admin Header */
.admin-header {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content .page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.header-content .page-subtitle {
    color: #64748b;
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Search Bar Container */
.search-bar-container {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.search-form-modern {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-input-modern {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input-modern:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1);
}

/* Table Serial Number */
.serial-number-cell {
    font-weight: 600;
    color: #64748b;
    font-size: 0.875rem;
}

/* Card Body Responsive */
.card-body {
    padding: 1.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Pagination Container */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    gap: 1rem;
}

.pagination-info {
    color: #64748b;
    font-size: 0.875rem;
}

.pagination-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn,
.pagination-number {
    text-decoration: none;
    min-width: 40px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Modal Small Variant */
.modal-container-small {
    max-width: 400px;
}

/* Modal Large Variant */
.modal-container-large {
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
}

/* Stats Detail Container */
.stats-detail-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* URL Info Card */
.url-info-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #64748b;
    min-width: 100px;
    font-size: 0.875rem;
}

.info-value {
    flex: 1;
    color: #1e293b;
    font-size: 0.875rem;
}

.info-value.code-badge {
    background: #818cf8;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
    display: inline-block;
}

.info-value.truncate-text {
    word-break: break-all;
}

.info-value.link-text {
    color: #4f46e5;
    text-decoration: none;
}

.info-value.link-text:hover {
    text-decoration: underline;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.metric-card {
    background: white;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.metric-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.875rem;
    color: #64748b;
}

.metric-card.metric-primary .metric-value {
    color: #4f46e5;
}

.metric-card.metric-success .metric-value {
    color: #10b981;
}

.metric-card.metric-info .metric-value {
    color: #3b82f6;
}

.metric-card.metric-warning .metric-value {
    color: #f59e0b;
}

/* Chart Section */
.chart-section,
.sources-section,
.device-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
}

/* Bar Chart */
.bar-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.5rem;
    height: 200px;
    padding: 1rem 0;
}

.bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.bar-container {
    width: 100%;
    height: 160px;
    background: #f1f5f9;
    border-radius: 0.375rem;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    border-radius: 0.375rem 0.375rem 0 0;
    transition: height 0.5s ease;
}

.bar-label {
    font-size: 0.6875rem;
    color: #64748b;
    text-align: center;
}

.bar-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
}

/* Traffic Sources */
.source-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.source-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.source-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.source-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
}

.source-count {
    color: #64748b;
    font-size: 0.875rem;
}

.source-bar {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.source-fill {
    height: 100%;
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Device Grid */
.device-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.device-stat {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.device-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.device-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.device-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.device-percent {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
}

/* Modal Content Centered */
.modal-content-centered {
    text-align: center;
    padding: 1rem 0;
}

.modal-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-description {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.modal-footer-centered {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.modal-btn-full {
    flex: 1;
}

.btn-icon {
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #e2e8f0;
}

.icon-badge {
    font-size: 1.25rem;
    position: relative;
}

/* Stats Cards Modern */
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Stats Grid Modern (for Users Page) */
.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-modern {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.0rem;
}

.stat-card-modern.stat-primary .stat-icon-box {
    background: linear-gradient(135deg, #818cf8, #4f46e5);
}

.stat-card-modern.stat-success .stat-icon-box {
    background: linear-gradient(135deg, #34d399, #10b981);
}

.stat-card-modern.stat-info .stat-icon-box {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

.stat-trend.trend-positive {
    background: #d1fae5;
    color: #059669;
}

.stat-value-large {
    font-size: 2.0rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-value-medium {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label-modern {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Content Card */
.content-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-filter,
.btn-export {
    background: #f1f5f9;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-filter:hover,
.btn-export:hover {
    background: #e2e8f0;
}

.card-body {
    padding: 2rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Modern Table */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px; /* Force horizontal scroll on small screens instead of squishing */
}

.modern-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

.modern-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.modern-table tr:last-child td {
    border-bottom: none;
}

.th-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.url-cell-truncate {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-code {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.875rem;
}

.link-short {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.link-short:hover {
    text-decoration: underline;
}

.views-count {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.country-flag {
    font-size: 0.875rem;
    color: #475569;
}

.date-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    flex-shrink: 0; /* Prevent button shrinking */
}

.btn-edit-action {
    background: #dbeafe;
    color: #1e40af;
}

.btn-edit-action:hover {
    background: #1e40af;
    color: white;
}

.btn-delete-action {
    background: #fee2e2;
    color: #991b1b;
}

.btn-delete-action:hover {
    background: #991b1b;
    color: white;
}

/* Alert Modern */
.alert-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.alert-modern .alert-icon {
    font-size: 1.25rem;
}

.alert-success-modern {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error-modern {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Form Modern */
.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
}

.form-description {
    color: #64748b;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.input-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.input-modern:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.textarea-modern {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.color-picker-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.color-picker {
    width: 60px;
    height: 44px;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    cursor: pointer;
}

.color-input {
    flex: 1;
}

/* File Upload Modern */
.file-upload-modern {
    margin-top: 0.75rem;
}

.file-preview {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    text-align: center;
}

.file-preview img {
    max-height: 80px;
    width: auto;
    margin-bottom: 0.5rem;
}

.file-preview-small img {
    max-height: 40px;
}

.preview-label {
    font-size: 0.75rem;
    color: #64748b;
}

.file-input-label {
    display: block;
    cursor: pointer;
}

.file-drop-area {
    border: 2px dashed #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s;
}

.file-drop-area:hover {
    border-color: #4f46e5;
    background: #f8fafc;
}

.file-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.file-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.file-subtitle {
    font-size: 0.75rem;
    color: #64748b;
}

.file-input {
    display: none;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

/* Info List */
.info-list {
    list-style: none;
    padding: 0;
}

.info-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-content strong {
    display: block;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.info-content span {
    color: #64748b;
    font-size: 0.875rem;
}

/* Buttons Modern */
.btn-gradient {
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.btn-ghost-modern {
    background: transparent;
    color: #64748b;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost-modern:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-main {
        margin-left: 0;
        padding-top: 1rem;
        width: 100%;
    }
    
    .admin-main.sidebar-collapsed {
        margin-left: 0;
        width: 100%;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        position: fixed;
        top: 70px;
        left: 0;
        width: 300px;
        height: calc(100vh - 70px);
        z-index: 99;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    /* Ensure body doesn't scroll when sidebar is open */
    body.sidebar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100vh;
    }
    
    /* Adjust admin wrapper on tablet */
    .admin-wrapper {
        position: relative;
    }
    
    /* Ensure overlay covers everything */
    .admin-sidebar-overlay {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 70px);
        z-index: 98;
    }
    
    .admin-sidebar-overlay.active {
        display: block;
    }
    
    /* Stats Grid Responsive */
    .stats-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .stat-card-modern {
        padding: 1.25rem;
    }
    
    .stat-icon-modern {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .stat-value-modern {
        font-size: 1.75rem;
    }
    
    /* Enhanced Mobile Menu Toggle - Fintech Style */
    .mobile-menu-toggle-admin {
        display: none;                    /* Hidden on desktop */
        position: fixed;
        bottom: 24px;
        right: 24px;
        width: 64px;
        height: 64px;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--primary-dark) 100%);
        border-radius: 50%;
        box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), 0.5), 
                    0 0 0 4px rgba(var(--primary-color-rgb), 0.1);
        z-index: 100;
        border: none;
        cursor: pointer;
        font-size: 1.75rem;
        color: white;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    /* Show only on mobile/tablet */
    @media (max-width: 1024px) {
        .mobile-menu-toggle-admin {
            display: flex;                /* Visible on mobile */
        }
    }
    
    .mobile-menu-toggle-admin::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }
    
    .mobile-menu-toggle-admin:hover::before {
        left: 100%;
    }
    
    .mobile-menu-toggle-admin:hover {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 12px 32px rgba(79, 70, 229, 0.6),
                    0 0 0 6px rgba(79, 70, 229, 0.15);
    }
    
    .mobile-menu-toggle-admin:active {
        transform: scale(0.95);
    }
    
    /* Sidebar Overlay - Enhanced */
    .admin-sidebar-overlay {
        backdrop-filter: blur(8px);
        background: rgba(15, 23, 42, 0.7);
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Sidebar Navigation Items - Fintech Polish */
    .sidebar-nav {
        padding: 2rem 0 1rem 0;
    }
    
    .nav-item {
        margin: 0.5rem 1rem;
        padding: 1rem 1.25rem;
        border-radius: 0.75rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .nav-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
        transform: scaleY(0);
        transition: transform 0.3s;
    }
    
    .nav-item:hover::before,
    .nav-item.active::before {
        transform: scaleY(1);
    }
    
    .nav-item:hover {
        background: rgba(99, 102, 241, 0.15);
        transform: translateX(4px);
    }
    
    .nav-item.active {
        background: rgba(79, 70, 229, 0.2);
        transform: translateX(4px);
    }
    
    .nav-item.nav-danger:hover {
        background: rgba(239, 68, 68, 0.15);
        color: #fca5a5;
    }
    
    /* Icon Animations */
    .nav-icon {
        font-size: 1.375rem;
        transition: transform 0.3s;
    }
    
    .nav-item:hover .nav-icon {
        transform: scale(1.2) rotate(5deg);
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Enhanced Mobile Menu Responsiveness */
    .admin-sidebar {
        width: 280px;
    }
    
    .mobile-menu-toggle-admin {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        font-size: 1.625rem;
    }
    
    /* Stats Grid Responsive for Mobile */
    .stats-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0.75rem;
    }
    
    .stat-card-modern {
        padding: 1rem;
    }
    
    .stat-icon-modern {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }
    
    .stat-value-modern {
        font-size: 1.5rem;
    }
    
    .stat-label-modern {
        font-size: 0.75rem;
    }
    
    /* Settings Page Responsive Styles */
    .settings-form {
        padding: 1.5rem;
    }
    
    .settings-section {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
    
    .settings-section h3 {
        font-size: 1.25rem;
    }
    
    .field-description {
        font-size: 0.8125rem;
    }
    
    /* Make file upload wrappers fully responsive */
    .file-upload-wrapper {
        width: 100%;
    }
    
    .file-upload-wrapper input[type="file"] {
        width: 100%;
        max-width: 100%;
    }
    
    /* Ensure previews don't overflow */
    .current-logo-preview,
    .current-favicon-preview {
        padding: 0.75rem;
    }
    
    .current-logo-preview img {
        max-width: 100%;
        height: auto;
    }
    
    /* Stack color picker vertically on mobile */
    .form-group input[type="color"] {
        width: 100%;
        height: 50px;
        margin-bottom: 0.5rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group textarea {
        width: 100%;
        max-width: 100%;
    }
    
    /* Make buttons touch-friendly */
    .btn-large {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .stats-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .form-row,
    .form-row-profile {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .card-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-filter,
    .btn-export,
    .btn-new-shortened {
        width: 100%;
        justify-content: center;
    }
    
    /* Modal Responsive for Mobile */
    .modal-overlay {
        padding: 0.5rem;
        align-items: flex-end;
    }
    
    .modal-container {
        max-width: 100%;
        max-height: 85vh;
        margin: 0 auto;
        border-radius: 1rem 1rem 0 0;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.125rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .admin-main {
        padding: 1rem;
    }
    
    .admin-header {
        padding: 1rem 1.25rem;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .header-content .page-title {
        font-size: 1.5rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .stats-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card-modern {
        padding: 1.25rem;
    }
    
    .stat-value-large {
        font-size: 1.75rem;
    }
    
    /* Search Form Responsive */
    .search-bar-container {
        padding: 1rem;
    }
    
    .search-form-modern {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-input-modern {
        width: 100%;
    }
    
    .search-form-modern .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Pagination Responsive */
    .pagination-container {
        flex-direction: column;
        padding: 1rem;
        align-items: stretch;
    }
    
    .pagination-info {
        text-align: center;
        font-size: 0.8125rem;
    }
    
    .pagination-buttons {
        justify-content: center;
    }
    
    .pagination-btn,
    .pagination-number {
        min-width: 36px;
        font-size: 0.875rem;
    }
    
    /* Modal Buttons Full Width on Mobile */
    .modal-footer-centered {
        flex-direction: column;
    }
    
    .modal-btn-full {
        width: 100%;
    }
    
    /* Stats Modal Responsive */
    .modal-container-large {
        max-width: 100%;
        margin: 0.5rem;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .device-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .bar-chart {
        height: 160px;
    }
    
    .bar-label {
        font-size: 0.625rem;
    }
    
    /* Card Body Responsive on Mobile */
    .card-body {
        padding: 1rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-icon {
        font-size: 2.5rem;
    }
    
    /* Table Container - Enable Horizontal Scroll */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }
    
    /* Modern Table Responsive */
    .modern-table {
        min-width: 800px; /* Maintain minimum readable width */
        width: 100%;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 0.75rem;
        white-space: nowrap;
    }
    
    /* Reduce cell max-widths on mobile */
    .url-cell-truncate {
        max-width: 140px;
    }
    
    .link-short {
        max-width: 120px;
    }
    
    .badge.badge-code {
        max-width: 80px;
    }
    
    .country-flag {
        max-width: 90px;
    }
    
    /* URL Cell Truncate */
    .url-cell-truncate {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Link Short - Constrain Width */
    .link-short {
        max-width: 150px;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Badge Code - Compact */
    .badge.badge-code {
        max-width: 100px;
        display: inline-block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Views Count - Compact */
    .views-count {
        white-space: nowrap;
    }
    
    /* Country Flag - Compact */
    .country-flag {
        max-width: 120px;
        display: inline-block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Date Badge - Compact */
    .date-badge {
        white-space: nowrap;
        font-size: 0.8125rem;
    }
    
    /* Action Buttons Container */
    .action-buttons {
        display: flex;
        gap: 0.5rem;
        justify-content: flex-start;
    }
    
    /* Action Buttons Stack on Very Small Screens */
    @media (max-width: 480px) {
        .action-buttons {
            flex-direction: column;
            gap: 0.25rem;
        }
        
        .btn-action {
            width: 32px;
            height: 32px;
            font-size: 0.9375rem;
        }
    }
    
    .content-card {
        border-radius: 0.75rem;
    }
    
    .card-header {
        padding: 1rem 1.25rem;
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    /* Modal on Mobile - Slide from bottom */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .modal-container {
        max-width: 100%;
        margin: 0 auto;
        border-radius: 1rem 1rem 0 0;
        max-height: 85vh;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .modern-table {
        font-size: 0.75rem;
    }
    
    /* Stats Grid for Small Mobile */
    .stats-grid-modern {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .stat-card-modern {
        padding: 0.875rem;
    }
    
    .stat-icon-modern {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .stat-value-modern {
        font-size: 1.25rem;
    }
    
    .stat-label-modern {
        font-size: 0.6875rem;
    }
    
    /* Table Responsive - Tablet */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modern-table {
        min-width: 800px; /* Maintain readable width */
    }
    
    .modern-table th,
    .modern-table td {
        padding: 0.75rem;
        font-size: 0.8125rem;
    }
    
    .url-cell-truncate {
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .action-buttons {
        gap: 0.375rem;
    }
    
    .btn-action {
        width: 32px;
        height: 32px;
        font-size: 0.9375rem;
    }
    
    .badge-code {
        font-size: 0.8125rem;
        padding: 0.25rem 0.625rem;
    }
    
    .views-count,
    .country-flag,
    .date-badge {
        font-size: 0.8125rem;
        padding: 0.25rem 0.625rem;
    }
    
    .action-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .mobile-menu-toggle-admin {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Additional Settings Page Styles for Small Screens */
    .settings-form {
        padding: 1rem;
    }
    
    .settings-section h3 {
        font-size: 1.125rem;
    }
    
    .settings-info {
        padding: 1rem;
    }
    
    .settings-info h3 {
        font-size: 1.125rem;
    }
    
    .settings-info li {
        font-size: 0.875rem;
    }
}

/* ========================================
   URL SHORTENING PAGE DESIGN
   ======================================== */

.shorten-page {
    background: var(--shorten-bg);
    min-height: 100vh;
}

.shorten-wrapper {
    min-height: calc(100vh - 70px);
    padding: 2rem 1rem;
}

.shorten-main {
    max-width: 900px;
    margin: 0 auto;
}

.shorten-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Shorten Header */
.shorten-header {
    text-align: center;
    padding: 2rem 1rem;
}

.shorten-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--shorten-text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.shorten-subtitle {
    font-size: 1.125rem;
    color: var(--shorten-text-secondary);
    margin: 0;
}

/* Alerts */
.shorten-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.shorten-alert-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.shorten-alert-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.shorten-alert .alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-content strong {
    display: block;
    margin-bottom: 0.5rem;
}

.short-link-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0.5rem;
}

.short-link-result code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    color: #1e293b;
}

.btn-copy {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #4338ca;
    transform: scale(1.05);
}

/* Shorten Card */
.shorten-card {
    background: var(--shorten-card-bg);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

/* Form Styles */
.shorten-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group-large {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--shorten-text-primary);
    font-size: 1rem;
}

.input-large {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--shorten-border);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

.input-large:focus {
    outline: none;
    border-color: var(--shorten-accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-hint {
    font-size: 0.875rem;
    color: var(--shorten-text-secondary);
    margin-top: 0.25rem;
}

.form-actions-centered {
    display: flex;
    justify-content: center;
}

.btn-submit-shorten {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.btn-submit-shorten:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(79, 70, 229, 0.3);
}

/* Features Compact Grid */
.features-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-compact-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s;
}

.feature-compact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon-small {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-compact-card h3 {
    font-size: 1.125rem;
    color: var(--shorten-text-primary);
    margin-bottom: 0.5rem;
}

.feature-compact-card p {
    color: var(--shorten-text-secondary);
    font-size: 0.875rem;
}

/* Quick Stats Bar */
.quick-stats-bar {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 0 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--shorten-text-secondary);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--shorten-border);
}

/* Back to Dashboard */
.back-to-dashboard {
    text-align: center;
    margin-top: 1rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--shorten-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--shorten-border);
    border-radius: 0.75rem;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--shorten-text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .shorten-title {
        font-size: 2rem;
    }
    
    .shorten-header {
        padding: 1.5rem 1rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .quick-stats-bar {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .stat-divider {
        width: 100%;
        height: 1px;
    }
    
    .features-compact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .shorten-wrapper {
        padding: 1rem;
    }
    
    .shorten-title {
        font-size: 1.75rem;
    }
    
    .shorten-subtitle {
        font-size: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .input-large {
        padding: 1rem;
        font-size: 0.9375rem;
    }
    
    .btn-submit-shorten {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .short-link-result {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-copy {
        width: 100%;
    }
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-page h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--error-color);
}

.error-page p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow-md);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Improved Header Responsiveness */
    .navbar-content {
        padding: 0.75rem 1rem;
    }
    
    .site-logo {
        max-height: 40px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .user-greeting {
        display: none;
    }
    
    /* Profile Dropdown Mobile Fix */
    .profile-dropdown-wrapper {
        position: relative;
    }
    
    .profile-dropdown-toggle {
        padding: 0.25rem 0.625rem;
        font-size: 0.8125rem;
    }
    
    .profile-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    .profile-name {
        display: none; /* Hide name on mobile, show only avatar */
    }
    
    .dropdown-arrow {
        display: none;
    }
    
    .profile-dropdown-menu {
        right: -10px; /* Adjust position to stay on screen */
        min-width: 260px;
        max-width: calc(100vw - 20px); /* Don't exceed screen width */
    }
    
    /* Footer Responsiveness */
    .site-footer {
        padding: 1.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .shortener-form {
        padding: 1.5rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.5rem;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 800px;
        font-size: 0.875rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }
    
    /* Table Responsive - Mobile */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
    }
    
    .modern-table {
        min-width: 750px;
        font-size: 0.75rem;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 0.625rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Hide less important columns on mobile */
    .modern-table th:nth-child(3), /* Original URL - hidden since Title shows */
    .modern-table td:nth-child(3),
    .modern-table th:nth-child(8), /* Created Date */
    .modern-table td:nth-child(8) {
        display: none;
    }
    
    /* FORCE column 5 (Views) to be visible */
    .modern-table th:nth-child(8),
    .modern-table td:nth-child(8) {
        display: table-cell !important;
    }
    
    .url-cell-truncate {
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Ensure touch-friendly action buttons */
    .btn-action {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }
    
    .action-buttons {
        gap: 0.5rem;
    }
    
    .badge-code {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .link-short {
        font-size: 0.75rem;
    }
    
    .views-count,
    .country-flag,
    .date-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Pagination Responsive */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .pagination-btn {
        min-width: 40px;
        min-height: 40px;
        font-size: 0.875rem;
    }
    
    /* Stack pagination vertically on very small screens */
    @media (max-width: 400px) {
        .pagination {
            flex-direction: column;
            align-items: center;
        }
        
        .pagination-btn {
            width: 100%;
            max-width: 200px;
        }
    }
    
    .url-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .btn-sm {
        padding: 0.375rem 0.625rem;
        font-size: 0.8rem;
    }
    
    /* Modern Homepage Mobile */
    .hero-modern {
        padding: 4rem 0 6rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .login-cta-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .input-group-modern {
        flex-direction: column;
    }
    
    .input-group-modern .btn-submit {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-modern {
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button-group .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .auth-card {
        padding: 1.25rem;
    }
    
    .btn-large {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    /* Extra Small Mobile Profile Dropdown */
    .profile-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.8125rem;
    }
    
    .profile-dropdown-menu {
        right: -20px;
        min-width: 240px;
        max-width: calc(100vw - 30px);
    }
    
    /* Modern Homepage Small Mobile */
    .hero-modern {
        padding: 3rem 0 4rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* ========================================
   NEW HERO DESIGN - COMPLETE REDESIGN
   ======================================== */

.hero-new {
    position: relative;
    padding: 5rem 0 6rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 30%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
}

.hero-badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: #818cf8;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #818cf8;
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-heading-new {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.highlight-gradient {
    display: block;
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.5rem;
}

.hero-subtitle-new {
    font-size: 1.125rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.auth-cta-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cta-content h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.cta-content p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-glow-new {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 40px rgba(129, 140, 248, 0.4);
}

.btn-glow-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(129, 140, 248, 0.6);
}

.btn-ghost-new {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-ghost-new:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.url-shortener-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.success-banner,
.error-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.success-banner {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.error-banner {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.success-icon {
    width: 24px;
    height: 24px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.error-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.success-content strong {
    display: block;
    color: white;
    margin-bottom: 0.75rem;
}

.short-link-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem;
    border-radius: 0.75rem;
}

.short-link-display code {
    flex: 1;
    font-family: 'Courier New', monospace;
    color: #818cf8;
    font-size: 0.9rem;
    word-break: break-all;
}

.btn-copy-new {
    background: rgba(129, 140, 248, 0.2);
    border: none;
    color: #818cf8;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.btn-copy-new:hover {
    background: rgba(129, 140, 248, 0.3);
    transform: scale(1.05);
}

.modern-url-form {
    margin-top: 1.5rem;
}

.input-wrapper {
    display: flex;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.input-wrapper:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.input-wrapper input {
    flex: 1;
    border: none;
    padding: 1.125rem 1.5rem;
    font-size: 1rem;
    outline: none;
    color: #1e293b;
}

.input-wrapper input:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
}

.btn-shorten {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2rem;
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-shorten:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateX(2px);
}

.btn-shorten:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hero-visual {
    position: relative;
}

.visual-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    position: relative;
}

.link-animation {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.long-url-example,
.short-url-example {
    width: 100%;
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.url-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.url-text {
    color: #f1f5f9;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    word-break: break-all;
    line-height: 1.5;
}

.url-text.short {
    color: #818cf8;
    font-weight: 700;
}

.arrow-down {
    color: #818cf8;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.stats-floating {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-stat {
    text-align: center;
}

.mini-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #818cf8;
    margin-bottom: 0.25rem;
}

.mini-stat .stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-heading-new {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-new {
        padding: 3rem 0 4rem;
        min-height: auto;
    }
    
    .hero-heading-new {
        font-size: 2rem;
    }
    
    .hero-subtitle-new {
        font-size: 1rem;
    }
    
    .visual-card {
        padding: 1.5rem;
    }
    
    .stats-floating {
        gap: 0.5rem;
    }
    
    .mini-stat .stat-value {
        font-size: 1.25rem;
    }
}

/* ========================================
   NEW SHORTENED BUTTON & MODAL
   ======================================== */

.btn-new-shortened {
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-new-shortened:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-new-shortened svg {
    width: 18px;
    height: 18px;
}

/* Modal Overlay - Unified */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-overlay.show {
    display: flex !important;
}

.modal-container {
    background: white;
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 0.25rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.form-group-modern {
    margin-bottom: 1.25rem;
}

.form-group-modern label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group-modern input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group-modern input:focus {
    outline: none;
    border-color: #818cf8;
}

/* Alert in Modal */
.alert-modern {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.75rem;
}

.alert-success-modern {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-error-modern {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-icon {
    font-size: 1.25rem;
}

.short-link-result {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.short-link-result code {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    border-radius: 0.375rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    word-break: break-all;
}

.short-link-result button {
    padding: 0.5rem 1rem;
    background: #818cf8;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.short-link-result button:hover {
    background: #6366f1;
}

/* ========================================
   PROFILE PAGE STYLES
   ======================================== */

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    font-weight: 700;
}

.profile-name {
    text-align: center;
    margin-bottom: 0.5rem;
}

.profile-name h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1e293b;
}

.profile-role {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.profile-stats {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.info-value {
    color: #1f2937;
    font-weight: 600;
    font-size: 0.875rem;
}

.badge-success {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #dcfce7;
    color: #166534;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-card h3 {
    margin: 0 0 1.5rem;
    font-size: 1.125rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-row-profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.form-group-full {
    margin-bottom: 1rem;
}

.form-group-full label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group-full input,
.form-group-full select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group-full input:focus,
.form-group-full select:focus {
    outline: none;
    border-color: #818cf8;
}

.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.password-strength-bar.weak {
    width: 33%;
    background: #ef4444;
}

.password-strength-bar.medium {
    width: 66%;
    background: #f59e0b;
}

.password-strength-bar.strong {
    width: 100%;
    background: #10b981;
}

/* Profile Responsive */
@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .form-row-profile {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .profile-card {
        padding: 1.25rem;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ========================================
   SIDEBAR OVERLAY
   ======================================== */

.admin-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 98;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 1024px) {
    .admin-sidebar-overlay.active {
        display: block;
    }
}

/* User Management Styles */
.badge-role {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-admin {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-user {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.badge-suspended {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-generate {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.875rem;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-suspend {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 44px;
    min-height: 44px;
}

.btn-suspend:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-activate {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 44px;
    min-height: 44px;
}

.btn-activate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Enhanced Admin Designs */
.admin-body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.admin-wrapper {
    position: relative;
}

.admin-main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Enhanced Card Headers with Gradient Backgrounds */
.card-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-radius: 1rem 1rem 0 0;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.card-title {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Enhanced Stats Cards */
.stat-card-modern {
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.stat-card-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card-modern:hover::after {
    transform: scaleX(1);
}

/* Profile Grid Layout */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Enhancements */
.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
}

.input-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

.input-modern:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Enhanced Buttons */
.btn-new-shortened {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.btn-new-shortened:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
}

.btn-new-shortened svg {
    width: 18px;
    height: 18px;
}

/* Settings Section Styling */
.settings-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Info List Styling */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

.info-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
}

/* Loading States */
.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Country Flag Badge */
.country-flag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

/* Date Badge */
.date-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Views Count */
.views-count {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #92400e;
}

/* Enhanced Alert Styles */
.alert-modern {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.alert-success-modern {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.alert-error-modern {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    color: inherit;
}

.alert-close:hover {
    opacity: 1;
}

/* Modal Enhancements */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #1e293b;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
}

/* Sidebar User Section Enhancement */
.sidebar-user {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    padding: 1rem;
    border-radius: 0.75rem;
    margin: 1rem;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3); 
}

.dropdown-avatar,
.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}
