/* ==================== TAM EKRAN ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-color);
    transition: background 0.3s ease;
}

body {
    padding: 0;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container.fullscreen {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px;
    background: transparent;
}

/* ==================== TEMA RENKLERİ ==================== */
[data-theme="dark"] {
    --bg-color: #0a0c14;
    --card-bg: rgba(26, 30, 42, 0.8);
    --accent-color: #7c3aed;
    --text-main: #e2e8f0;
    --text-dim: #94a3b8;
    --border-color: #2d3748;
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.8);
    --accent-color: #7c3aed;
    --text-main: #1e293b;
    --text-dim: #64748b;
    --border-color: #cbd5e1;
}

[data-theme="blue"] {
    --bg-color: #0c4a6e;
    --card-bg: rgba(7, 89, 133, 0.8);
    --accent-color: #38bdf8;
    --text-main: #f0f9ff;
    --text-dim: #bae6fd;
    --border-color: #0284c7;
}

[data-theme="purple"] {
    --bg-color: #2e1065;
    --card-bg: rgba(76, 29, 149, 0.8);
    --accent-color: #c084fc;
    --text-main: #f5f3ff;
    --text-dim: #ddd6fe;
    --border-color: #6d28d9;
}

[data-theme="green"] {
    --bg-color: #14532d;
    --card-bg: rgba(22, 101, 52, 0.8);
    --accent-color: #4ade80;
    --text-main: #f0fdf4;
    --text-dim: #bbf7d0;
    --border-color: #22c55e;
}

[data-theme="pink"] {
    --bg-color: #831843;
    --card-bg: rgba(157, 23, 77, 0.8);
    --accent-color: #f9a8d4;
    --text-main: #fdf2f8;
    --text-dim: #fbcfe8;
    --border-color: #db2777;
}

/* ==================== SAAT VE TARİH ==================== */
.datetime-container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 15px 30px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.time {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.date {
    font-size: 1.1rem;
    color: var(--text-dim);
}

.greeting {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 500;
}

/* ==================== HEADER ==================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent-color), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
}

/* ==================== TEMA BUTONLARI ==================== */
.theme-selector {
    display: flex;
    gap: 8px;
    background: var(--card-bg);
    padding: 8px 12px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
}

.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    color: var(--text-main);
}

.theme-btn:hover {
    transform: scale(1.15);
    border-color: var(--accent-color);
}

.theme-btn.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
}

/* ==================== İSTATİSTİK KARTLARI ==================== */
.stats-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stats {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

/* ==================== BUTON GRUPLARI ==================== */
.button-group-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-filter {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-filter.filter-all {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.btn-filter.filter-toread {
    background: linear-gradient(45deg, #f093fb, #f5576c);
}

.btn-filter.filter-reading {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
}

.btn-filter.filter-read {
    background: linear-gradient(45deg, #43e97b, #38f9d7);
}

.btn-filter:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-filter.active {
    transform: scale(1.05);
    box-shadow: 0 0 30px currentColor;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-buttons button {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-success {
    background: linear-gradient(45deg, #43e97b, #38f9d7);
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.action-buttons button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* ==================== ARAMA ==================== */
.search-container {
    margin-bottom: 25px;
}

.search-box {
    width: 100%;
    padding: 18px 28px;
    border-radius: 60px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.search-box::placeholder {
    color: var(--text-dim);
}

.search-box:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 30px var(--accent-color);
}

/* ==================== KİTAP GRİD ==================== */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* ==================== KİTAP KARTLARI ==================== */
.book-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    display: flex;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.book-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px var(--accent-color);
}

.book-cover {
    width: 130px;
    height: 180px;
    object-fit: cover;
    border-right: 2px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
    background: var(--card-bg);
}

.book-cover:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.book-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-main);
    line-height: 1.4;
}

.book-author {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.status-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    width: fit-content;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

.status-badge.okundu {
    background: linear-gradient(45deg, #43e97b, #38f9d7);
}

.status-badge.okunuyor {
    background: linear-gradient(45deg, #f093fb, #f5576c);
}

.status-badge.okunacak {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
}

/* PDF Bölümü */
.pdf-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid var(--border-color);
}

.pdf-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pdf-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-color);
    font-weight: 600;
}

.btn-pdf {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-pdf:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px var(--accent-color);
}

/* Buton grubu */
.button-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.btn-small {
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.btn-progress {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
}

.btn-cover {
    background: linear-gradient(45deg, #f093fb, #f5576c);
}

.btn-edit {
    background: linear-gradient(45deg, #f9d423, #f83600);
}

.btn-note {
    background: linear-gradient(45deg, #43e97b, #38f9d7);
}

.btn-delete {
    background: linear-gradient(45deg, #ff0844, #ffb199);
}

.btn-small:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* İlerleme çubuğu */
.book-progress {
    height: 6px;
    background: var(--border-color);
    border-radius: 10px;
    margin: 8px 0 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #ffd700);
    border-radius: 10px;
    transition: width 0.3s;
}

.badge-pdf {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.6rem;
    margin-left: 5px;
    font-weight: 700;
}

/* ==================== MODAL ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid var(--border-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.close-btn:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* ==================== KAPAK ARAMA ==================== */
.cover-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.cover-item {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
    aspect-ratio: 2/3;
}

.cover-item:hover {
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.cover-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== KAPAK SEÇ MODAL ==================== */
.photo-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.photo-item {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s;
    aspect-ratio: 1/1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-item[data-kaynak="kapaklar"] {
    border-color: var(--accent-color);
}

.photo-item[data-kaynak="album"] {
    border-color: #f97316;
}

/* ==================== KAPAK SEÇİM MENÜSÜ ==================== */
#kapakSecimMenu .btn-primary {
    text-align: left;
    border: none;
    transition: all 0.3s;
}

#kapakSecimMenu .btn-primary:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

#kapakSecimMenu small {
    font-weight: normal;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* ==================== İSTATİSTİK ==================== */
.stats-content {
    padding: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
}

.stat-value {
    color: var(--accent-color);
    font-weight: bold;
}

.stat-progress {
    height: 25px;
    background: var(--border-color);
    border-radius: 15px;
    margin: 20px 0;
    overflow: hidden;
}

.stat-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #ffd700);
    border-radius: 15px;
    transition: width 0.3s;
}

/* ==================== EPUB GÖRÜNTÜLEYİCİ ==================== */
#epubViewerContainer {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
}

#epubViewerContainer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==================== MOBİL ==================== */
@media (max-width: 768px) {
    .datetime-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .time {
        font-size: 1.8rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .header-left {
        width: 100%;
        justify-content: space-between;
    }

    .stats-container {
        width: 100%;
        justify-content: center;
    }

    .book-grid {
        grid-template-columns: 1fr;
    }

    .book-card {
        flex-direction: column;
    }

    .book-cover {
        width: 100%;
        height: 250px;
        border-right: none;
        border-bottom: 2px solid var(--border-color);
    }

    .filter-buttons,
    .action-buttons {
        justify-content: center;
    }

    .action-buttons button {
        flex: 1;
        justify-content: center;
    }
}

/* ==================== ANİMASYONLAR ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.book-card {
    animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--accent-color);
    }

    70% {
        box-shadow: 0 0 0 10px transparent;
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

.btn-filter.active {
    animation: pulse 2s infinite;
}
/* ==================== KİTAP ARAMA MODAL - GÜZELLEŞTİRİLMİŞ ==================== */
#aramaModal .modal-content {
    max-width: 900px !important;
    width: 95%;
    background: var(--card-bg);
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #f97316, #f59e0b, #f97316);
    border-image-slice: 1;
    box-shadow: 0 30px 60px rgba(249, 115, 22, 0.3);
    animation: modalPulse 2s infinite;
}

@keyframes modalPulse {
    0% {
        box-shadow: 0 30px 60px rgba(249, 115, 22, 0.3);
    }

    50% {
        box-shadow: 0 30px 80px rgba(249, 115, 22, 0.5);
    }

    100% {
        box-shadow: 0 30px 60px rgba(249, 115, 22, 0.3);
    }
}

#aramaModal .modal-header {
    border-bottom: 3px solid #f97316;
    padding: 20px 30px;
}

#aramaModal .modal-header h3 {
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#aramaModal .modal-header h3 span:first-child {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px #f97316);
}

/* Bilgi Kartı */
#aramaModal [style*="background: linear-gradient(45deg, rgba(249, 115, 22, 0.1)"] {
    transform: scale(1.02);
    margin: 25px 20px !important;
    padding: 20px !important;
    border-left-width: 8px !important;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.2);
    animation: slideInLeft 0.5s ease-out;
}

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

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

#aramaModal [style*="background: linear-gradient(45deg, rgba(249, 115, 22, 0.1)"] span {
    font-size: 3rem !important;
    filter: drop-shadow(0 0 15px #f97316);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

#aramaModal [style*="background: linear-gradient(45deg, rgba(249, 115, 22, 0.1)"] strong {
    font-size: 1.3rem !important;
    display: block;
    margin-bottom: 5px;
}

#aramaModal [style*="background: linear-gradient(45deg, rgba(249, 115, 22, 0.1)"] p {
    font-size: 1rem !important;
    line-height: 1.5;
}

/* Arama Kutusu */
#aramaModal .search-box {
    height: 70px;
    font-size: 1.2rem !important;
    padding: 0 30px !important;
    border-width: 3px !important;
    transition: all 0.3s;
    background: var(--card-bg);
    color: var(--text-main);
}

#aramaModal .search-box:focus {
    transform: scale(1.02);
    border-color: #f97316 !important;
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.5) !important;
}

#aramaModal .btn-primary[onclick="kitapAra()"] {
    height: 60px;
    right: 5px;
    top: 5px;
    padding: 0 40px !important;
    font-size: 1.2rem !important;
    font-weight: bold;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #f97316, #f59e0b) !important;
    border: 2px solid white;
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.5);
    transition: all 0.3s;
}

#aramaModal .btn-primary[onclick="kitapAra()"]:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.8);
}

/* Filtre Butonları */
#aramaModal .btn-filter {
    padding: 12px 25px !important;
    font-size: 1rem !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all 0.3s;
    margin: 5px;
}

#aramaModal .btn-filter:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

#aramaModal .btn-filter.active {
    transform: scale(1.1);
    border: 3px solid white;
    box-shadow: 0 0 30px currentColor;
    z-index: 10;
}

/* Sonuçlar Alanı */
#aramaSonuclari {
    max-height: 600px !important;
    padding: 25px !important;
    background: var(--card-bg);
    border: 3px solid var(--border-color) !important;
    border-radius: 20px !important;
    margin: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: #f97316 var(--border-color);
}

#aramaSonuclari::-webkit-scrollbar {
    width: 8px;
}

#aramaSonuclari::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 10px;
}

#aramaSonuclari::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #f97316, #f59e0b);
    border-radius: 10px;
}

/* Sonuç Kartları */
#aramaSonuclari>div {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    margin-bottom: 20px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

#aramaSonuclari>div:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #f97316;
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.3);
}

#aramaSonuclari>div::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.1), transparent);
    transition: left 0.5s;
}

#aramaSonuclari>div:hover::before {
    left: 100%;
}

/* Kapak Resmi */
#aramaSonuclari [style*="width: 80px; height: 110px;"] {
    width: 100px !important;
    height: 140px !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

#aramaSonuclari>div:hover [style*="width: 80px; height: 110px;"] {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 20px 30px rgba(249, 115, 22, 0.5);
}

/* Kitap Başlığı */
#aramaSonuclari h4 {
    font-size: 1.3rem !important;
    font-weight: 700;
    margin-bottom: 10px !important;
    background: linear-gradient(45deg, #f97316, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Fiyat Etiketi */
#aramaSonuclari [style*="background:"] span {
    padding: 6px 15px !important;
    font-size: 0.85rem !important;
    font-weight: 700;
    border-radius: 30px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Yazar ve Kaynak Bilgisi */
#aramaSonuclari [style*="display: flex; gap: 10px; margin-bottom: 8px;"] {
    font-size: 1rem !important;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 15px;
    border-radius: 30px;
    display: inline-flex;
    margin: 10px 0 !important;
}

#aramaSonuclari [style*="display: flex; gap: 10px; margin-bottom: 8px;"] span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Açıklama */
#aramaSonuclari p[style*="color: var(--text-dim); font-size: 0.9rem;"] {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    background: rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0 !important;
    border-left: 4px solid #f97316;
}

/* Butonlar */
#aramaSonuclari .btn-small {
    padding: 12px 25px !important;
    font-size: 0.95rem !important;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s;
    margin: 5px;
}

#aramaSonuclari .btn-small:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Loading Animasyonu */
#aramaSonuclari [style*="animation: spin"] {
    width: 70px !important;
    height: 70px !important;
    border-width: 5px !important;
    border-top-color: #f97316 !important;
    margin-bottom: 25px !important;
}

#aramaSonuclari h3 {
    font-size: 1.8rem !important;
    margin: 15px 0 !important;
}

#aramaSonuclari p {
    font-size: 1.1rem !important;
}

/* Boş Sonuç Sayfası */
#aramaSonuclari [style*="text-align: center; padding: 40px 20px;"] span {
    font-size: 6rem !important;
    filter: drop-shadow(0 0 30px #f97316);
    animation: float 3s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

#aramaSonuclari [style*="text-align: center; padding: 40px 20px;"] h3 {
    font-size: 2rem !important;
    color: #f97316 !important;
    margin: 20px 0 !important;
}

/* Alt Bilgi */
#aramaModal [style*="margin-top: 15px; text-align: center;"] {
    font-size: 1rem !important;
    padding: 15px;
    background: linear-gradient(45deg, rgba(249, 115, 22, 0.1), rgba(245, 158, 11, 0.1));
    border-radius: 50px;
    margin-top: 20px !important;
}

#aramaModal [style*="margin-top: 15px; text-align: center;"] span {
    font-weight: 600;
    color: #f97316;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    #aramaModal .modal-content {
        padding: 15px !important;
    }

    #aramaModal .modal-header h3 {
        font-size: 1.5rem !important;
    }

    #aramaModal .search-box {
        height: 60px;
        font-size: 1rem !important;
        padding-right: 100px !important;
    }

    #aramaModal .btn-primary[onclick="kitapAra()"] {
        padding: 0 20px !important;
        font-size: 1rem !important;
    }

    #aramaSonuclari>div>div {
        flex-direction: column !important;
    }

    #aramaSonuclari [style*="width: 80px; height: 110px;"] {
        width: 100% !important;
        height: 200px !important;
    }

    #aramaSonuclari [style*="display: flex; gap: 10px; margin-bottom: 8px;"] {
        flex-wrap: wrap;
    }
}

/* ==================== DOSYALAR MODAL ==================== */
#dosyaModal .modal-content {
    max-width: 900px !important;
    background: var(--card-bg);
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #8b5cf6, #a78bfa, #c084fc);
    border-image-slice: 1;
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.3);
    animation: dosyaModalPulse 2s infinite;
}

@keyframes dosyaModalPulse {
    0% {
        box-shadow: 0 30px 60px rgba(139, 92, 246, 0.3);
    }

    50% {
        box-shadow: 0 30px 80px rgba(139, 92, 246, 0.5);
    }

    100% {
        box-shadow: 0 30px 60px rgba(139, 92, 246, 0.3);
    }
}

#dosyaModal .modal-header {
    border-bottom: 3px solid #8b5cf6;
    padding: 20px 30px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), transparent);
}

#dosyaModal .modal-header h3 span:first-child {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px #8b5cf6);
    animation: dosyaIconBounce 2s infinite;
}

@keyframes dosyaIconBounce {

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

    25% {
        transform: rotate(5deg);
    }

    75% {
        transform: rotate(-5deg);
    }
}

/* Bölüm başlıkları */
#dosyaModal h4 {
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

#dosyaModal h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    border-radius: 5px;
}

#dosyaModal h4[style*="color: #3b82f6"]::before {
    background: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
}

#dosyaModal h4[style*="color: #8b5cf6"]::before {
    background: #8b5cf6;
    box-shadow: 0 0 10px #8b5cf6;
}

#dosyaModal h4[style*="color: #f97316"]::before {
    background: #f97316;
    box-shadow: 0 0 10px #f97316;
}

/* Dosya listesi container */
#dosyaModal [style*="display: flex; flex-direction: column; gap: 8px;"] {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 15px !important;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 var(--border-color);
}

#dosyaModal [style*="display: flex; flex-direction: column; gap: 8px;"]::-webkit-scrollbar {
    width: 8px;
}

#dosyaModal [style*="display: flex; flex-direction: column; gap: 8px;"]::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 10px;
}

#dosyaModal [style*="display: flex; flex-direction: column; gap: 8px;"]::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #8b5cf6, #a78bfa);
    border-radius: 10px;
}

/* Dosya satırları */
#dosyaModal [style*="background: rgba(59, 130, 246, 0.1)"] {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05)) !important;
    border-left: 4px solid #3b82f6;
    border-radius: 10px;
    padding: 10px 15px !important;
    transition: all 0.3s;
}

#dosyaModal [style*="background: rgba(139, 92, 246, 0.1)"] {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05)) !important;
    border-left: 4px solid #8b5cf6;
    border-radius: 10px;
    padding: 10px 15px !important;
    transition: all 0.3s;
}

#dosyaModal [style*="background: rgba(249, 115, 22, 0.1)"] {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05)) !important;
    border-left: 4px solid #f97316;
    border-radius: 10px;
    padding: 10px 15px !important;
    transition: all 0.3s;
}

#dosyaModal [style*="background:"]:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Dosya adı */
#dosyaModal [style*="font-size: 0.9rem; color: var(--text-main);"] {
    font-weight: 500;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Butonlar */
#dosyaModal .btn-small {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 20px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

#dosyaModal .btn-small:hover {
    transform: translateY(-2px);
    border-color: white;
}

#dosyaModal .btn-small.btn-success {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
}

#dosyaModal .btn-small.btn-progress {
    background: linear-gradient(45deg, #10b981, #34d399);
}

#dosyaModal .btn-small.btn-cover {
    background: linear-gradient(45deg, #8b5cf6, #a78bfa);
}

#dosyaModal .btn-small.btn-photo {
    background: linear-gradient(45deg, #f97316, #fb923c);
}

/* İkonlar */
#dosyaModal [style*="font-size: 1.2rem;"] {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
    transition: all 0.3s;
}

#dosyaModal [style*="background:"]:hover [style*="font-size: 1.2rem;"] {
    transform: scale(1.2);
}

/* Sayı göstergeleri */
#dosyaModal [style*="display: flex; align-items: center; gap: 10px; margin-bottom: 10px;"] {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 15px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

#dosyaModal [style*="display: flex; align-items: center; gap: 10px; margin-bottom: 10px;"] span {
    font-size: 1.8rem !important;
}

/* Boş klasör mesajı */
#dosyaModal p[style*="color: var(--text-dim); text-align: center; padding: 20px;"] {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    font-style: italic;
    border: 1px dashed var(--border-color);
}

/* Kapat butonu */
#dosyaModal .btn-secondary {
    background: linear-gradient(45deg, #6b7280, #9ca3af);
    color: white;
    border: none;
    padding: 10px 30px !important;
    font-size: 1rem !important;
    border-radius: 30px;
    transition: all 0.3s;
}

#dosyaModal .btn-secondary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Animasyonlu giriş */
@keyframes dosyaSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

#dosyaModal [style*="background:"] {
    animation: dosyaSlideIn 0.3s ease-out;
    animation-fill-mode: both;
}

#dosyaModal [style*="background:"]:nth-child(1) {
    animation-delay: 0.05s;
}

#dosyaModal [style*="background:"]:nth-child(2) {
    animation-delay: 0.1s;
}

#dosyaModal [style*="background:"]:nth-child(3) {
    animation-delay: 0.15s;
}

#dosyaModal [style*="background:"]:nth-child(4) {
    animation-delay: 0.2s;
}

#dosyaModal [style*="background:"]:nth-child(5) {
    animation-delay: 0.25s;
}

#dosyaModal [style*="background:"]:nth-child(6) {
    animation-delay: 0.3s;
}

#dosyaModal [style*="background:"]:nth-child(7) {
    animation-delay: 0.35s;
}

#dosyaModal [style*="background:"]:nth-child(8) {
    animation-delay: 0.4s;
}

#dosyaModal [style*="background:"]:nth-child(9) {
    animation-delay: 0.45s;
}

#dosyaModal [style*="background:"]:nth-child(10) {
    animation-delay: 0.5s;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    #dosyaModal .modal-content {
        padding: 15px !important;
    }

    #dosyaModal [style*="font-size: 0.9rem; color: var(--text-main);"] {
        max-width: 150px;
    }

    #dosyaModal [style*="display: flex; justify-content: space-between;"] {
        flex-direction: column;
        gap: 10px;
    }

    #dosyaModal [style*="display: flex; gap: 5px;"] {
        justify-content: flex-end;
    }

    #dosyaModal .btn-small {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
    }
}
/* ==================== DÜZENLE MODAL ==================== */
#editModal .modal-content {
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #f59e0b, #f97316, #f59e0b);
    border-image-slice: 1;
    box-shadow: 0 30px 60px rgba(249, 115, 22, 0.3);
    animation: editModalPulse 2s infinite;
}

@keyframes editModalPulse {
    0% {
        box-shadow: 0 30px 60px rgba(249, 115, 22, 0.3);
    }

    50% {
        box-shadow: 0 30px 80px rgba(249, 115, 22, 0.5);
    }

    100% {
        box-shadow: 0 30px 60px rgba(249, 115, 22, 0.3);
    }
}

#editModal .modal-header {
    border-bottom: 3px solid #f97316;
}

#editModal input[type="text"],
#editModal input[type="number"] {
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

#editModal input[type="text"]:focus,
#editModal input[type="number"]:focus {
    border-color: #f97316;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

.status-select {
    transition: all 0.3s;
    border: 2px solid transparent;
}

.status-select:hover {
    transform: scale(1.02) !important;
    opacity: 1 !important;
    border-color: white;
}

input[type="radio"]:checked+.status-select {
    border-color: white;
    box-shadow: 0 0 20px currentColor;
}

#editModal label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Toast mesajı */
div[style*="position: fixed; bottom: 20px; right: 20px;"] {
    border: 2px solid white;
    backdrop-filter: blur(10px);
}
/* ==================== YENİ GİRİŞ EKRANI ==================== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transform: translateY(0);
    animation: loginSlideUp 0.6s ease-out;
}

@keyframes loginSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

/* Animasyonlu Kitaplar */
.login-books {
    text-align: center;
    margin-bottom: 20px;
}

.book-animation {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 2.5rem;
}

.book-animation span {
    animation: bookBounce 2s infinite;
    display: inline-block;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

.book-animation span:nth-child(1) {
    animation-delay: 0s;
}

.book-animation span:nth-child(2) {
    animation-delay: 0.2s;
}

.book-animation span:nth-child(3) {
    animation-delay: 0.4s;
}

.book-animation span:nth-child(4) {
    animation-delay: 0.6s;
}

.book-animation span:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes bookBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Başlık */
.login-title {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gradient-text {
    background: linear-gradient(45deg, #667eea, #764ba2, #ff69b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 1.6rem;
}

.login-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Input Grubu */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transform: scale(1.02);
}

.input-group input::placeholder {
    color: #999;
    font-style: italic;
}

/* Giriş Butonu */
.login-button {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.6);
}

.login-button:hover::before {
    left: 100%;
}

.button-icon {
    font-size: 1.3rem;
    animation: rotate 2s infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-10deg);
    }

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

/* Hata Mesajı */
.error-message {
    display: none;
    background: linear-gradient(45deg, #ff6b6b, #ff4757);
    color: white;
    padding: 15px;
    border-radius: 50px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    animation: shake 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Alt Bilgi */
.login-footer {
    margin-top: 25px;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}

.login-footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }

    .gradient-text {
        font-size: 1.3rem;
    }

    .book-animation {
        font-size: 2rem;
    }

    .input-group input {
        padding: 15px 15px 15px 45px;
    }
}
/* ==================== KİTAP EKLE MODAL ==================== */
#ekleModal .modal-content {
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #10b981, #34d399, #10b981);
    border-image-slice: 1;
    box-shadow: 0 30px 60px rgba(16, 185, 129, 0.3);
    animation: ekleModalPulse 2s infinite;
}

@keyframes ekleModalPulse {
    0% {
        box-shadow: 0 30px 60px rgba(16, 185, 129, 0.3);
    }

    50% {
        box-shadow: 0 30px 80px rgba(16, 185, 129, 0.5);
    }

    100% {
        box-shadow: 0 30px 60px rgba(16, 185, 129, 0.3);
    }
}

#ekleModal .modal-header {
    border-bottom: 3px solid #10b981;
}

#ekleModal input[type="text"],
#ekleModal input[type="number"] {
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    background: var(--card-bg);
    color: var(--text-main);
}

#ekleModal input[type="text"]:focus,
#ekleModal input[type="number"]:focus {
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    transform: scale(1.01);
}

#ekleModal label {
    font-size: 0.95rem;
}

/* Karakter sayacı */
#ekleAdKarakter {
    color: #10b981;
    font-weight: bold;
}

/* Kitap ikonları animasyonu */
@keyframes bookWave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes bookBounce {

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

    25% {
        transform: translateY(-10px) rotate(-5deg);
    }

    75% {
        transform: translateY(-5px) rotate(5deg);
    }
}

/* Checkbox stili */
#ekleDosyaVar {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #10b981;
}

#ekleDosyaVar:checked+span {
    text-decoration: line-through;
    opacity: 0.8;
}

/* Durum seçiciler */
#ekleModal .status-select {
    transition: all 0.3s;
    border: 2px solid transparent;
}

#ekleModal .status-select:hover {
    transform: scale(1.02) !important;
    opacity: 1 !important;
    border-color: white;
}

input[type="radio"]:checked+.status-select {
    opacity: 1 !important;
    transform: scale(1) !important;
    border-color: white;
    box-shadow: 0 0 20px currentColor;
}

/* Input grup animasyonu */
#ekleModal .modal-content>div {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

#ekleModal .modal-content>div:nth-child(1) {
    animation-delay: 0.1s;
}

#ekleModal .modal-content>div:nth-child(2) {
    animation-delay: 0.15s;
}

#ekleModal .modal-content>div:nth-child(3) {
    animation-delay: 0.2s;
}

#ekleModal .modal-content>div:nth-child(4) {
    animation-delay: 0.25s;
}

#ekleModal .modal-content>div:nth-child(5) {
    animation-delay: 0.3s;
}

#ekleModal .modal-content>div:nth-child(6) {
    animation-delay: 0.35s;
}

#ekleModal .modal-content>div:nth-child(7) {
    animation-delay: 0.4s;
}

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

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

/* Mobil uyumluluk */
@media (max-width: 768px) {
    #ekleModal .modal-content {
        padding: 20px !important;
    }

    #ekleModal [style*="display: grid; grid-template-columns: 1fr 1fr;"] {
        grid-template-columns: 1fr !important;
    }

    #ekleModal [style*="display: flex; gap: 10px; flex-wrap: wrap;"] {
        flex-direction: column;
    }

    #ekleModal .status-select {
        padding: 10px !important;
    }
}
/* Gradient text için uyumlu versiyon */
.gradient-text {
    background: linear-gradient(45deg, #667eea, #764ba2, #ff69b4);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    color: transparent;
}

/* Modal başlıkları için */
.modal-header h3 span:last-child {
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    color: transparent;
}

/* Kitap Ara için */
#aramaModal .modal-header h3 span:last-child {
    background: linear-gradient(45deg, #f97316, #f59e0b);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    color: transparent;
}

/* Düzenle için */
#editModal .modal-header h3 span:last-child {
    background: linear-gradient(45deg, #f59e0b, #f97316);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    color: transparent;
}

/* Kitap Ekle için */
#ekleModal .modal-header h3 span:last-child {
    background: linear-gradient(45deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    color: transparent;
}

/* Dosyalar için */
#dosyaModal .modal-header h3 span:last-child {
    background: linear-gradient(45deg, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    color: transparent;
}

/* Ana başlık için */
h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent-color), #ffd700);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
}
/* ==================== NOT MODAL ==================== */
#noteModal .modal-content {
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #f59e0b, #f97316, #f59e0b);
    border-image-slice: 1;
    box-shadow: 0 30px 60px rgba(245, 158, 11, 0.3);
    animation: noteModalPulse 2s infinite;
}

@keyframes noteModalPulse {
    0% {
        box-shadow: 0 30px 60px rgba(245, 158, 11, 0.3);
    }

    50% {
        box-shadow: 0 30px 80px rgba(245, 158, 11, 0.5);
    }

    100% {
        box-shadow: 0 30px 60px rgba(245, 158, 11, 0.3);
    }
}

@keyframes noteIcon {

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

    25% {
        transform: rotate(5deg);
    }

    75% {
        transform: rotate(-5deg);
    }
}

#noteModal textarea {
    transition: all 0.3s;
    line-height: 1.6;
}

#noteModal textarea:focus {
    outline: none;
    border-color: #f59e0b !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.note-color {
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.note-color:hover {
    transform: scale(1.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.note-color.active {
    border-color: white !important;
    transform: scale(1.1);
    box-shadow: 0 0 20px currentColor;
}

#noteGecmisi {
    scrollbar-width: thin;
    scrollbar-color: #f59e0b var(--border-color);
}

#noteGecmisi::-webkit-scrollbar {
    width: 6px;
}

#noteGecmisi::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 10px;
}

#noteGecmisi::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #f59e0b, #f97316);
    border-radius: 10px;
}

.gecmis-item {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 4px solid;
    transition: all 0.3s;
}

.gecmis-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gecmis-item .tarih {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 5px;
}
/* ==================== DOSYA YÖNETİCİSİ ==================== */
.dosya-modal-content {
    max-width: 1000px !important;
    width: 95% !important;
    max-height: 90vh !important;
    background: var(--card-bg);
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #8b5cf6, #a78bfa, #c084fc, #8b5cf6);
    border-image-slice: 1;
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.4);
    animation: dosyaModalGlow 2s infinite;
}

@keyframes dosyaModalGlow {
    0% {
        box-shadow: 0 30px 60px rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 40px 80px rgba(139, 92, 246, 0.6);
    }

    100% {
        box-shadow: 0 30px 60px rgba(139, 92, 246, 0.4);
    }
}

@keyframes dosyaIconSpin {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-10deg);
    }

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

/* İstatistik Kartları */
.dosya-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    padding: 20px;
    border-radius: 15px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    animation: statCardAppear 0.5s ease-out;
    animation-fill-mode: both;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

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

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

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: statCardShine 3s infinite;
}

@keyframes statCardShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    20% {
        transform: translateX(100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    display: block;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    line-height: 1.2;
}

/* Bölümler */
.dosya-bolum {
    margin-bottom: 25px;
}

.bolum-baslik {
    padding: 12px 20px;
    border-radius: 50px 50px 0 0;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.bolum-sayi {
    background: rgba(255, 255, 255, 0.3);
    padding: 3px 12px;
    border-radius: 30px;
    font-size: 0.9rem;
}

.dosya-liste {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 15px 15px;
    padding: 15px;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 var(--border-color);
}

.dosya-liste::-webkit-scrollbar {
    width: 8px;
}

.dosya-liste::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 10px;
}

.dosya-liste::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #8b5cf6, #a78bfa);
    border-radius: 10px;
}

/* Dosya Satırları */
.dosya-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    animation: dosyaItemAppear 0.3s ease-out;
    animation-fill-mode: both;
}

@keyframes dosyaItemAppear {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

.dosya-item:hover {
    transform: translateX(5px);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.kitap-item:hover {
    border-left: 4px solid #3b82f6;
}

.kapak-item:hover {
    border-left: 4px solid #8b5cf6;
}

.album-item:hover {
    border-left: 4px solid #f97316;
}

.dosya-actions {
    display: flex;
    gap: 8px;
}

.dosya-actions .btn-small {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.dosya-actions .btn-small:hover {
    transform: translateY(-3px) scale(1.1);
}

.bos-klasor {
    text-align: center;
    padding: 40px;
    color: var(--text-dim);
    font-style: italic;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: 2px dashed var(--border-color);
}

/* Mobil için */
@media (max-width: 768px) {
    .dosya-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dosya-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .dosya-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}
/* ==================== TAM EKRAN EPUB OKUYUCU ==================== */
#epubViewerModal {
    padding: 0 !important;
}

#epubViewerModal .modal-content {
    border: none !important;
    border-radius: 0 !important;
    animation: fadeIn 0.3s ease;
}

#epubViewerModal .modal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-color);
    padding: 15px 30px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes bookRead {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

@keyframes controlsAppear {
    from {
        opacity: 0;
        transform: translate(-50%, 50px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

#epubViewerContainer {
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
}

#epubViewerContainer iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

#epubBookContainer {
    width: 100%;
    height: 100%;
    background: white;
}

/* EPUB kontroller */
#epubControls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 60px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 20px;
    z-index: 1000;
    animation: controlsAppear 0.5s;
}

#epubControls button {
    border: none;
    background: linear-gradient(45deg, var(--accent-color), #ff69b4);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

#epubControls button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

#epubControls select {
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

#epubPageInfo {
    color: var(--accent-color);
    font-weight: bold;
    min-width: 100px;
    text-align: center;
}

/* Mobil için */
@media (max-width: 768px) {
    #epubControls {
        flex-direction: column;
        width: 90%;
        bottom: 20px;
        padding: 15px;
    }

    #epubControls button {
        width: 100%;
        justify-content: center;
    }

    .modal-header {
        padding: 10px 15px;
    }

    .modal-header h3 span:first-child {
        font-size: 1.5rem;
    }
}
/* ==================== PDF TAM EKRAN ==================== */
.pdf-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1e2a;
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.pdf-fullscreen-modal object,
.pdf-fullscreen-modal iframe {
    width: 100%;
    flex: 1;
    border: none;
    background: white;
}

.pdf-fullscreen-modal .pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: rgba(26, 30, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #ef4444;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10001;
}

.pdf-fullscreen-btn {
    background: #3b82f6;
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.pdf-fullscreen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pdf-fullscreen-btn.delete {
    background: #ef4444;
}

/* Mobil için */
@media (max-width: 768px) {
    .pdf-fullscreen-modal .pdf-header {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .pdf-fullscreen-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}
/* ==================== MOBİL KAPAK DÜZELTMESİ ==================== */
@media (max-width: 768px) {
    .book-cover {
        width: 100px !important;
        height: 140px !important;
        object-fit: cover !important;
        display: block !important;
        border-right: 2px solid var(--border-color) !important;
    }

    .book-card {
        display: flex !important;
        flex-direction: row !important;
        min-height: 140px !important;
    }

    .book-info {
        padding: 10px !important;
    }

    /* Resim yüklenmezse yedek */
    .book-cover[src=""],
    .book-cover:not([src]),
    .book-cover[src="undefined"] {
        background: linear-gradient(45deg, #667eea, #764ba2) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 2.5rem !important;
        color: white !important;
    }
}