/**
 * Akıllı Tahta Web - PDF Görüntüleyici CSS
 */

/* Tam ekran görüntüleme */
.viewer-container {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
}

/* Toolbar ayarları */
.toolbar {
    width: 250px;
    background: linear-gradient(135deg, #78909C, #546E7A);
    color: white;
    padding: 15px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}

/* PDF Container */
.pdf-container {
    flex: 1;
    position: relative;
    overflow: auto;
    background-color: #888;
}

/* Buton stilleri */
.btn-toolbar {
    width: 100%;
    margin-bottom: 8px;
    background-color: #2196F3;
    border: none;
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-toolbar:hover {
    background-color: #1976D2;
    color: white;
}

.btn-toolbar.active {
    background-color: #FF5722;
}

/* Renk butonları */
.btn-color {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-color:hover,
.btn-color.active {
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(255,255,255,0.5);
}

/* PDF sayfası */
.pdf-page {
    margin: 20px auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    background-color: white;
}

/* Çizim Canvas */
.drawing-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    touch-action: none;
}

/* Yükleme göstergesi */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.progress-container {
    background-color: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

.progress {
    height: 20px;
    background-color: rgba(255,255,255,0.2);
}

.progress-bar {
    background-color: #2196F3;
    transition: width 0.5s ease;
}

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

/* Hata Modalı Stilleri */
.error-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.error-modal {
    background-color: white;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: auto;
}

.error-modal h3 {
    color: #d9534f;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.error-details {
    margin: 15px 0;
}

.error-stack {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-size: 12px;
    overflow-x: auto;
    max-height: 200px;
}

.error-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.error-actions button {
    padding: 8px 15px;
}

/* Büyüteç Cursor */
.cursor-zoom-in {
    cursor: zoom-in;
}

.cursor-zoom-out {
    cursor: zoom-out;
}

.cursor-grab {
    cursor: grab;
}

.cursor-grabbing {
    cursor: grabbing;
}

.cursor-pen {
    cursor: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="black" d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>') 0 20, auto;
}

.cursor-eraser {
    cursor: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="black" d="M15.14 3c-.51 0-1.02.2-1.41.59L2.59 14.73c-.78.77-.78 2.04 0 2.83L7.17 22h9.66l5.6-5.59c.79-.78.79-2.04 0-2.83l-5.83-5.84c-.38-.38-.89-.59-1.46-.59zM10.57 20l-3.94-3.97L12 10.68l3.94 3.94L10.57 20z"/></svg>') 0 20, auto;
}

/* Sayfa göstergesi */
.page-indicator {
    text-align: center;
    margin: 10px 0;
    font-weight: bold;
    font-size: 16px;
}

/* Zoom seviyesi göstergesi */
.zoom-level {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 20;
    pointer-events: none;
}