:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-hover: #4f46e5;
    --bg-main: #020617;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(51, 65, 85, 0.5);
    --success: #10b981;
    --error: #f43f5e;
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --glass: blur(12px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: radial-gradient(circle at top left, #0f172a, #020617);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    /* Temel ortalama */
    min-height: 100vh;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

.setup-container,
.dashboard-container {
    background: var(--bg-card);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: calc(100% - 2rem);
    max-width: 1100px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    animation: fadeInScale 0.6s var(--transition);
    margin: 2rem auto;
    /* Hem dikey hem yatay ortalar, taşmaları yönetir */
}

.setup-container {
    max-width: 450px;
}

/* Custom Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.custom-modal {
    background: #1e293b;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .custom-modal {
    transform: translateY(0);
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.modal-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 0.875rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-confirm-delete {
    background: var(--error);
    color: white;
}

.btn-confirm-delete:hover {
    background: #e11d48;
    box-shadow: 0 10px 15px -3px rgba(244, 63, 94, 0.3);
}

.nav .logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav .logo-area h1 {
    display: none;
}

h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
    background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 50%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.025em;
}

p.subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    padding: 0.875rem 1.125rem;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    background: rgba(15, 23, 42, 0.8);
}

.btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Upload & Dashboard Common Styles */
.upload-section {
    background: rgba(99, 102, 241, 0.05);
    border: 2px dashed rgba(99, 102, 241, 0.3);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--radius);
    margin-bottom: 3rem;
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
}

.upload-section:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Inline Link Area Styles */
.link-area {
    display: none;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    animation: slideDown 0.4s ease;
}

.link-area.active {
    display: block;
}

.link-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.link-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.copy-input-group {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 5px;
    transition: var(--transition);
}

.copy-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 15px;
    color: white;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    outline: none;
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

/* Dashboard Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 20px;
}

.nav .user-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* File List Styles */
.file-list-card {
    background: rgba(15, 23, 42, 0.3);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 2rem;
}

.file-list {
    width: 100%;
    border-collapse: collapse;
}

.file-list th {
    text-align: left;
    padding: 1.25rem 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
}

.file-list td {
    padding: 1.25rem 1rem;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--border);
}

.file-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.btn-download {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.btn-download:hover {
    background: var(--primary);
    color: white;
}

.btn-share {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.btn-share:hover {
    background: var(--success);
    color: white;
}

.btn-delete {
    background: rgba(244, 63, 94, 0.1);
    color: var(--error);
}

.btn-delete:hover {
    background: var(--error);
    color: white;
}

.actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.logout-btn {
    background: rgba(244, 63, 94, 0.1);
    color: var(--error);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.logout-btn:hover {
    background: var(--error);
    color: white;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Search Bar Styles */
.search-bar {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.search-bar input {
    background: rgba(15, 23, 42, 0.4) !important;
    border: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    width: 100%;
}

/* Scroll Bar & Card Adjustments */
.file-list-card {
    max-height: 550px;
    overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

/* Webkit Scrollbar */
.file-list-card::-webkit-scrollbar {
    width: 6px;
}

.file-list-card::-webkit-scrollbar-track {
    background: transparent;
}

.file-list-card::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 10px;
}

.file-list-card:hover::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
}

/* Sticky Header */
.file-list thead {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #0f172a;
}

.file-list th {
    background: #0f172a;
}

/* Landing Page Specific Styles */
.landing-page {
    align-items: flex-start !important;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), #1e1b4b 0%, #020617 100%);
    overflow-x: hidden;
    position: relative;
}

.interactive-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(192, 132, 252, 0.15));
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.2s ease-out;
}

.blob-1 {
    top: -100px;
    left: -100px;
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
}

.blob-3 {
    top: 40%;
    left: 50%;
    width: 400px;
    height: 400px;
    opacity: 0.5;
}

.landing-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
    animation: fadeInDown 0.8s var(--transition);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links .btn {
    width: auto;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none !important;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--primary-light);
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    padding: 6rem 0;
    align-items: center;
}

.hero-content {
    animation: fadeInLeft 1s var(--transition);
}

.badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 2rem;
    display: inline-block;
}

.hero-section h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    background: var(--primary);
    color: white;
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.4);
    text-decoration: none !important;
}

.btn-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.5);
    color: white;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    border: 1px solid var(--border);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none !important;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Glass Preview Visual */
.hero-visual {
    position: relative;
    animation: fadeInRight 1s var(--transition);
}

.glass-preview {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
}

.preview-header {
    display: flex;
    gap: 8px;
    margin-bottom: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.skeleton-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 1rem;
    width: 100%;
}

.skeleton-line.short {
    width: 60%;
    margin-bottom: 3rem;
}

.preview-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.landing-footer {
    padding: 4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

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

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

/* Media Queries */
@media (max-width: 992px) {
    .landing-container {
        padding: 0 1.5rem;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding: 4rem 0;
    }

    .hero-section h1 {
        font-size: 3.5rem;
    }

    .hero-section p {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .glass-preview {
        transform: none;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .landing-nav {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .nav-links {
        gap: 1.5rem;
        width: 100%;
        justify-content: center;
    }

    .nav-links .btn {
        flex: 1;
        max-width: 200px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        padding: 4rem 0;
    }

    .landing-footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .nav-links .btn {
        max-width: none;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .nav {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .nav .logo-area {
        justify-content: center;
    }

    .nav .user-meta {
        flex-direction: column;
        width: 100%;
        background: rgba(255, 255, 255, 0.03);
        padding: 1.5rem;
        border-radius: 15px;
    }

    .nav .user-meta .btn,
    .nav .user-meta .logout-btn {
        width: 100%;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .setup-container,
    .dashboard-container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .upload-section {
        padding: 2.5rem 1rem;
        margin-bottom: 2rem;
    }

    /* Stackable Table */
    .file-list thead {
        display: none;
    }

    .file-list tr {
        display: block;
        margin-bottom: 1rem;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 12px;
        border: 1px solid var(--border);
        overflow: hidden;
    }

    .file-list td {
        display: block;
        text-align: right;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        font-size: 0.85rem;
    }

    .file-list td:before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        font-size: 0.75rem;
    }

    .file-list td:last-child {
        border-bottom: none;
        background: rgba(255, 255, 255, 0.01);
    }

    .file-name-cell {
        justify-content: flex-end;
    }

    .actions {
        justify-content: flex-end;
    }

    /* Link Area Adjustments */
    .copy-input-group {
        flex-direction: column;
        gap: 10px;
        background: transparent;
        border: none;
        padding: 0;
    }

    .copy-input {
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

    .copy-btn {
        width: 100%;
        padding: 15px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 1rem;
        border-radius: 0;
        border: none;
    }

    .logo-area img {
        height: 2.5rem !important;
    }
}