:root {
    --primary: #6941c6;
    --primary-dark: #4b2ba6;
    --primary-light: #efeaff;
    --dark-bg: #101325;
    --accent: #ff7f50;
}

body {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #1c1f3a 100%);
    color: #f6f7ff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #f8f9ff;
}

.card,
.modal-content,
.table {
    color: #f5f6ff;
}

.text-white-50,
.text-white-50 small,
.text-white-50 .small {
    color: rgba(255, 255, 255, 0.78) !important;
}

.text-white-60 {
    color: rgba(255, 255, 255, 0.82) !important;
}

.navbar {
    background: rgba(16, 19, 37, 0.9) !important;
    backdrop-filter: blur(10px);
}

.page-wrapper {
    flex: 1 0 auto;
}

.hero-section {
    padding: 6rem 0;
    background: radial-gradient(circle at top left, rgba(105, 65, 198, 0.4), transparent 55%),
                radial-gradient(circle at bottom right, rgba(255, 127, 80, 0.4), transparent 50%);
}

.hero-card {
    background: rgba(20, 24, 44, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 60px -25px rgba(0, 0, 0, 0.8);
}

.hero-card p {
    color: rgba(255, 255, 255, 0.7);
}

.icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.25rem;
}

.text-accent {
    color: var(--accent) !important;
}

.dropzone {
    border: 2px dashed transparent;
    border-image: repeating-linear-gradient(135deg, var(--primary), var(--primary) 10px, transparent 10px, transparent 20px) 1;
    background: rgba(105, 65, 198, 0.08);
    color: #d7ccff;
    border-radius: 20px;
    padding: 3rem 2rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

.dropzone.dz-clickable,
.dropzone.dz-clickable * {
    cursor: pointer;
}

.dropzone.dz-theme {
    border-image: none;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
    color: #f5f7ff;
    cursor: pointer;
}

.fm-dropzone {
    cursor: pointer;
}

.dropzone.dz-drag-hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px -18px rgba(105, 65, 198, 0.7);
    border-image: repeating-linear-gradient(135deg, var(--accent), var(--accent) 12px, transparent 12px, transparent 22px) 1;
}

.dropzone .dz-message {
    font-size: 1.1rem;
    color: #f2f4ff;
}

.dropzone.dz-theme .dz-message {
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

.progress-glass {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    height: 0.75rem;
}

.progress-glass .progress-bar {
    background: var(--accent);
    border-radius: inherit;
    font-size: 0.75rem;
    line-height: 0.75rem;
}

.timeline {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    width: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.timeline li {
    position: relative;
    padding-left: 1.5rem;
}

.timeline-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    left: 0;
    top: 0.4rem;
}

.mini-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-card p {
    color: rgba(255, 255, 255, 0.7);
}

.card-glass {
    background: rgba(15, 18, 35, 0.75);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 40px -20px rgba(0, 0, 0, 0.8);
}

.card-layer {
    background: rgba(17, 21, 38, 0.72);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 36px -22px rgba(0, 0, 0, 0.75);
    color: #f5f6ff;
}

.card-layer .card-body {
    background: transparent;
}

.card-layer .list-group-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f5f6ff;
}

.card-layer .list-group-item + .list-group-item {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.table-dark-glass {
    --bs-table-bg: rgba(15, 18, 35, 0.7);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-striped-color: #f0f0f7;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.badge-custom {
    background: rgba(105, 65, 198, 0.25);
    border: 1px solid rgba(105, 65, 198, 0.5);
    color: #d7ccff;
}

.card-package-active {
    border: 1px solid rgba(129, 140, 248, 0.8);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
}

.card-package-active .btn[disabled] {
    opacity: 0.8;
    cursor: not-allowed;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    border: none;
}

.btn-gradient:hover {
    filter: brightness(1.05);
}

.footer {
    background: rgba(0, 0, 0, 0.65);
}

.form-control, .form-select {
    background-color: rgba(15, 18, 35, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f7f8ff;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(105, 65, 198, .25);
}

.form-label,
.form-check-label,
label {
    color: rgba(255, 255, 255, 0.88);
}

.form-control::placeholder,
.form-select::placeholder,
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.4);
    color: #f7f8ff;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.btn-outline-light.active,
.btn-outline-light:active {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #0f1124 !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

a.link-light:hover {
    color: var(--accent) !important;
}

.table thead th {
    color: #c7c8ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.table-modern {
    --bs-table-bg: rgba(15, 18, 35, 0.82);
    --bs-table-color: #f5f6ff;
    --bs-table-striped-bg: rgba(105, 65, 198, 0.08);
    --bs-table-striped-color: #f7f8ff;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.08);
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

.table-modern thead th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 1rem;
}

.table-modern tbody tr {
    background: rgba(18, 22, 41, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
}

.table-modern tbody tr td {
    border: none;
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

.table-modern tbody tr td:first-child {
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.table-modern tbody tr td:last-child {
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}

.table-modern tbody tr + tr {
    margin-top: 0.75rem;
}

.data-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.data-table-search {
    max-width: 260px;
}

@media (max-width: 768px) {
    .table-modern thead {
        display: none;
    }

    .table-modern tbody tr {
        display: block;
        border-radius: 20px;
        margin-bottom: 1.25rem;
    }

    .table-modern tbody tr td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .table-modern tbody tr td::before {
        content: attr(data-label);
        font-weight: 600;
        color: rgba(255, 255, 255, 0.7);
    }

    .table-modern tbody tr td:last-child {
        border-bottom: none;
    }
}

.panel-nav {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-nav .nav-link.active {
    border-bottom: 2px solid var(--accent);
    color: #fff;
}

.avatar-sm {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.file-manager .fm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.fm-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 22, 41, 0.85);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
}

.fm-item:hover {
    transform: translateY(-4px);
    border-color: rgba(105, 65, 198, 0.6);
    box-shadow: 0 18px 30px -20px rgba(105, 65, 198, 0.7);
}

.fm-item.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 127, 80, 0.35);
}

.fm-item.is-shared .fm-name::after {
    content: ' • Paylaşıldı';
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-left: 0.35rem;
}

.fm-item.is-protected .fm-icon {
    background: linear-gradient(135deg, rgba(255, 180, 50, 0.4), rgba(255, 140, 0, 0.2));
}

.fm-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(105, 65, 198, 0.28), rgba(105, 65, 198, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #d7ccff;
    position: relative;
}

.fm-icon i {
    font-size: 1.5rem;
}

.fm-info {
    min-width: 0;
}

.fm-name {
    font-weight: 600;
    color: #f5f5ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fm-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fm-context {
    position: fixed;
    z-index: 2000;
    background: rgba(10, 12, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8);
    min-width: 180px;
    padding: 0.25rem 0;
}

.fm-context ul li {
    padding: 0.5rem 1rem;
    color: #f0f0ff;
    cursor: pointer;
    transition: background 0.15s ease;
}

.fm-context ul li:hover {
    background: rgba(105, 65, 198, 0.22);
}

.fm-toolbar .btn {
    border-radius: 14px;
}

.fm-sort {
    background: rgba(15, 17, 34, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    min-width: 190px;
}

.herbie-editor-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 992px) {
    .herbie-editor-wrapper {
        flex-direction: row;
    }
}

.herbie-editor-pane,
.herbie-preview-pane {
    flex: 1;
    background: rgba(15, 17, 34, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.fm-herbie-textarea {
    background: rgba(10, 12, 24, 0.85);
    border-radius: 14px;
    color: #f5f5ff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 320px;
    font-family: 'Fira Code', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    resize: vertical;
}

.fm-herbie-textarea:focus {
    border-color: rgba(105, 65, 198, 0.6);
    box-shadow: 0 0 0 0.25rem rgba(105, 65, 198, 0.15);
}

.herbie-preview-pane {
    overflow: hidden;
}

.fm-herbie-preview {
    background: rgba(10, 12, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem;
    min-height: 320px;
    overflow-y: auto;
    color: #f5f5ff;
}

.fm-herbie-preview h1,
.fm-herbie-preview h2,
.fm-herbie-preview h3,
.fm-herbie-preview h4,
.fm-herbie-preview h5,
.fm-herbie-preview h6 {
    color: #f5f5ff;
}

.herbie-editor-fallback {
    white-space: pre-wrap;
    margin: 0;
    font-family: 'Fira Code', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    color: #f5f5ff;
}

.fm-sort:focus {
    border-color: rgba(255, 127, 80, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(255, 127, 80, 0.12);
    outline: none;
}

.form-control,
.form-select {
    background-color: rgba(15, 17, 34, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(18, 22, 41, 0.95);
    color: #fff;
    border-color: rgba(105, 65, 198, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(105, 65, 198, 0.15);
}

.form-control::placeholder,
.form-select::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.table-dark-glass {
    background: rgba(15, 17, 34, 0.72);
    color: #f5f5ff;
}

.table-dark-glass thead th {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.08);
}

.table-dark-glass tbody tr {
    border-color: rgba(255, 255, 255, 0.04);
}

.table-dark-glass tbody tr:hover {
    background: rgba(105, 65, 198, 0.18);
}

.breadcrumb-dark .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.25);
}

.breadcrumb-dark .breadcrumb-item a {
    color: #d7ccff;
    text-decoration: none;
}

.breadcrumb-dark .breadcrumb-item a:hover {
    color: var(--accent);
}

.breadcrumb-dark .breadcrumb-item.active {
    color: #f8f9ff;
}

.fm-dropzone {
    min-height: 180px;
}

.fm-dropzone .dz-message {
    font-size: 1rem;
}

.dz-theme {
    cursor: pointer;
}

.dz-theme * {
    cursor: inherit;
}

.fm-upload-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fm-upload-item {
    background: rgba(18, 18, 28, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    backdrop-filter: blur(16px);
}

.fm-upload-item .progress {
    background-color: rgba(255, 255, 255, 0.12);
    height: 0.5rem;
    border-radius: 999px;
}

.fm-upload-item .progress-bar {
    background: linear-gradient(90deg, #7f56d9, #9e77ed);
}

.fm-upload-item .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.fm-upload-item .btn-outline-light:hover,
.fm-upload-item .btn-outline-light:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.extra-small {
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
}
