/* Temel Stil */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Logo ve Başlık Stili */
.brand-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.logo {
    height: auto;
    margin-right: 16px;
    vertical-align: middle;
}

.mdl-layout-title {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
}

.mdl-layout-title + .mdl-layout-title {
    margin-left: 8px;
}

/* Responsive tasarım - küçük ekranlarda başlık stilini ayarla */
@media (max-width: 768px) {
    .brand-container {
        margin-right: 10px;
    }
    
    .logo {
        width: 28px;
        margin-right: 12px;
    }
    
    .mdl-layout-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .brand-container .mdl-layout-title:last-child {
        display: none; /* En küçük ekranlarda yazıyı gizle, sadece logo kalsın */
    }
}

/* Header Stili */
.mdl-layout__header {
    background-color: #1a237e;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    height: 64px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
}

.mdl-layout__header-row {
    height: 64px;
    padding: 0 16px;
    display: flex;
    align-items: center;
}

.mdl-layout-title {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
}

.mdl-layout-spacer {
    flex-grow: 1;
}

/* Adım Göstergesi */
#step-indicator {
    display: flex;
    gap: 20px;
}

.step {
    padding: 8px 16px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.step.active {
    background-color: #fff;
    color: #1a237e;
    font-weight: 500;
}

/* Responsive tasarım - küçük ekranlarda adım göstergesini ayarla */
@media (max-width: 768px) {
    #step-indicator {
        gap: 10px;
    }
    
    .step {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .language-toggle {
        margin-right: 8px;
    }
    
    #theme-toggle {
        margin-right: 8px;
    }
    
    #step-indicator {
        gap: 5px;
    }
    
    .step {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* Ana İçerik */
.mdl-layout__content {
    flex: 1;
    width: 100%;
    padding-top: 64px; /* header yüksekliği */
}

.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Sihirbaz Adımları */
.wizard-step {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.wizard-step.active {
    display: block;
    opacity: 1;
}

/* Kartlar */
.mdl-card {
    width: 100%;
    margin-bottom: 20px;
    overflow: visible;
}

.mdl-card__title {
    padding: 16px;
    background-color: #f0f0f0;
}

.mdl-card__title-text {
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mdl-card__supporting-text {
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
}

.upload-card, .settings-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mdl-card__actions {
    display: flex;
    justify-content: flex-end;
    padding: 8px 16px;
}

/* Sürükle-Bırak Alanı */
#drop-area {
    border: 3px dashed #1a237e;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    background-color: #f5f5ff;
    position: relative;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Dropzone özel sınıfı - tarayıcı uyumluluğu için */
.dropzone {
    position: relative;
    z-index: 1;
    cursor: copy !important; /* Her durumda "kopyalama" imleci göster */
}

.dropzone::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    z-index: -1;
}

#drop-area:hover {
    background-color: #ede7f6;
    transform: scale(1.01);
}

#drop-area.highlight {
    background-color: #e8eaf6;
    border-color: #3949ab;
    box-shadow: 0 0 20px rgba(26, 35, 126, 0.3);
    transform: scale(1.02);
    cursor: copy !important; /* Vurgulandığında "kopyalama" imleci göster */
}

#drop-area::before {
    content: 'add_photo_alternate';
    font-family: 'Material Icons';
    font-size: 48px;
    color: #1a237e;
    opacity: 0.5;
    margin-bottom: 10px;
}

#drop-area p {
    margin-bottom: 20px;
    color: #555;
    font-size: 16px;
    font-weight: 500;
}

#file-input {
    display: none;
}

.upload-btn {
    margin: 0 auto;
    display: flex !important;
    align-items: center;
    gap: 8px;
}

/* Önizleme Alanı */
#image-preview {
    margin-top: 20px;
}

#image-preview h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a237e;
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.preview-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    position: relative;
}

.preview-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.preview-image::after {
    content: 'close';
    font-family: 'Material Icons';
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #f44336;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.2s;
}

.preview-image:hover::after {
    opacity: 1;
}

/* Tuval Ayarları */
.size-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.mdl-textfield {
    width: 100%;
}

/* Ön Ayarlar */
.presets {
    margin-top: 24px;
}

.presets h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a237e;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preset-buttons button {
    font-size: 13px;
    padding: 0 8px;
    height: 32px;
    line-height: 32px;
}

/* Düzenleyici Alanı */
.editor-wrapper {
    position: relative;
    height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

.editor-toolbar {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background-color: white;
    border-radius: 4px 4px 0 0;
    gap: 16px;
    z-index: 2;
}

.editor-tools {
    display: flex;
    gap: 8px;
    margin-right: auto;
}

.editor-tools button {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-active {
    background-color: #e8eaf6 !important;
    color: #1a237e !important;
}

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

.editor-canvas {
    flex: 1;
    background-color: #f0f0f0;
    background-image: linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
                      linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
                      linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    position: relative;
    overflow: auto; /* Taşan içerik için kaydırma çubuğu ekle */
    border-radius: 0 0 4px 4px;
}

/* Konva Stage için özel sınır stili */
.konvajs-content {
    margin: 0 auto;
    box-sizing: content-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform-origin: top center;
    transition: transform 0.2s ease;
}

/* Konva Stage için sınır */
.stage-border {
    position: absolute;
    border: 2px dashed #1a237e;
    pointer-events: none;
    box-sizing: border-box;
    background: rgba(26, 35, 126, 0.03);
}

/* Zoom sınıfları */
.zoom-50 .konvajs-content { transform: scale(0.5); }
.zoom-75 .konvajs-content { transform: scale(0.75); }
.zoom-100 .konvajs-content { transform: scale(1); }
.zoom-125 .konvajs-content { transform: scale(1.25); }
.zoom-150 .konvajs-content { transform: scale(1.5); }
.zoom-200 .konvajs-content { transform: scale(2); }

/* Yakınlaştırma ipucu */
.zoom-control {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(26, 35, 126, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.zoom-control button {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.zoom-control button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.zoom-level {
    min-width: 60px;
    text-align: center;
    font-size: 14px;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .mdl-grid {
        padding: 0;
    }
    
    .editor-toolbar {
        flex-wrap: wrap;
    }
    
    .editor-tools {
        order: 2;
        margin: 8px 0;
    }
    
    .editor-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .editor-wrapper {
        height: calc(100vh - 120px);
    }
}

/* Tema Değişikliği - Koyu Mod ve Açık Mod */
#theme-toggle {
    margin-right: 15px;
    color: #fff;
}

.theme-icon {
    transition: transform 0.3s ease;
}

/* Koyu Mod Stilleri */
body.dark-mode {
    background-color: #121212;
    color: #f5f5f5;
}

/* Koyu Mod Logo ve Başlık */
body.dark-mode .logo {
    filter: brightness(1.2);
}

/* Koyu Mod Kart Stilleri */
body.dark-mode .mdl-card {
    background-color: #1e1e1e;
    color: #f5f5f5;
}

body.dark-mode .mdl-card__title {
    background-color: #2d2d2d;
    color: #ffffff;
}

body.dark-mode .mdl-card__title-text {
    color: #ffffff;
    font-weight: 500;
}

body.dark-mode .mdl-textfield__input,
body.dark-mode .mdl-textfield__label {
    color: #ffffff;
}

body.dark-mode .mdl-button:not(.mdl-button--colored):not(.mdl-button--accent) {
    background-color: #333;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

body.dark-mode .mdl-button:not(.mdl-button--colored):not(.mdl-button--accent):hover {
    background-color: #444;
}

/* Koyu Mod Sürükle Bırak Alanı */
body.dark-mode #drop-area {
    border-color: #7986cb;
    background-color: #2d2d2d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body.dark-mode #drop-area:hover,
body.dark-mode #drop-area.highlight {
    background-color: #3d3d3d;
    border-color: #9fa8da;
}

body.dark-mode #drop-area::before {
    color: #7986cb;
    opacity: 0.7;
}

body.dark-mode #drop-area p {
    color: #ffffff;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Koyu Mod Editör Araçları */
body.dark-mode .editor-toolbar {
    background-color: #1e1e1e;
}

body.dark-mode .editor-tools button,
body.dark-mode #back-to-uploads {
    color: #ffffff;
}

body.dark-mode .tool-active {
    background-color: #0d47a1 !important;
    color: #ffffff !important;
}

/* Hazır Boyutlar ve Başlıklar */
body.dark-mode .presets h4,
body.dark-mode #image-preview h3 {
    color: #7986cb;
    font-weight: 500;
}

/* Butonlar ve Kontroller */
body.dark-mode .preset-buttons button {
    background-color: #333;
    color: #ffffff;
    border: 1px solid #444;
}

body.dark-mode .preset-buttons button:hover {
    background-color: #444;
    border-color: #555;
}

body.dark-mode .stage-border {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
    border-color: #7986cb;
}

body.dark-mode .zoom-control {
    background-color: rgba(26, 35, 126, 0.8);
    color: #ffffff;
}

body.dark-mode .zoom-control button {
    color: #ffffff;
    background-color: rgba(26, 35, 126, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .zoom-control button:hover {
    background-color: rgba(26, 35, 126, 0.8);
}

/* Editör canvas arkaplanı */
body.dark-mode .editor-canvas {
    background-color: #2d2d2d;
    background-image: linear-gradient(45deg, #333 25%, transparent 25%),
                      linear-gradient(-45deg, #333 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #333 75%),
                      linear-gradient(-45deg, transparent 75%, #333 75%);
}

/* Konva arkaplanı ve sınırları */
body.dark-mode .konvajs-content {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Butonlar ve Renkli Kontroller */
body.dark-mode .mdl-button--colored {
    background-color: #1a237e;
    color: #ffffff;
}

body.dark-mode .mdl-button--accent {
    background-color: #304ffe;
    color: #ffffff;
}

body.dark-mode .upload-btn {
    background-color: #1a237e;
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Koyu Mod Önizleme ve Görseller */
body.dark-mode .preview-image {
    border-color: #444;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

body.dark-mode .preview-image:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    border-color: #7986cb;
}

body.dark-mode .preview-image::after {
    background-color: #f44336;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Koyu Mod Bilgi Metinleri */
body.dark-mode .mdl-card__supporting-text {
    color: #e0e0e0;
}

/* Form alanları için ek stiller */
body.dark-mode .mdl-textfield__label:after {
    background-color: #7986cb;
}

/* Dil Seçimi */
.language-toggle {
    margin-right: 15px;
    position: relative;
    width: auto;
    padding: 0;
    overflow: visible;
}

.language-selector {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 5px 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.language-selector:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-selector option {
    background-color: #1a237e;
    color: white;
}

/* Koyu Mod Dil Seçimi */
body.dark-mode .language-selector option {
    background-color: #121212;
}

/* Ortalama Stilleri */
.text-center {
    text-align: center;
    margin: 20px auto;
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
}

.text-center a {
    color: #1a237e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-center a:hover {
    text-decoration: underline;
    color: #304ffe;
}

body.dark-mode .text-center a {
    color: #7986cb;
}

body.dark-mode .text-center a:hover {
    color: #9fa8da;
} 