/* =========================================================
    GENEL
========================================================= */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f2f2f2;
}


/* =========================================================
    ÜST BAR
========================================================= */
.header {
    background: #0066cc;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}


/* =========================================================
    GELİŞTİRİCİ PANELİ
========================================================= */
.dev-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
}

.dev-box span {
    font-size: 16px;
    color: white;
    font-weight: 600;
    white-space: nowrap;
}

.dev-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
}


/* =========================================================
    ANA LAYOUT
========================================================= */
.main-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px;
}


/* =========================================================
    SOL PANEL
========================================================= */
.left-panel {
    width: 350px;
    min-width: 280px;
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.12);
}

.left-panel h2 {
    margin: 20px 0 10px;
    font-size: 17px;
    color: #222;
    font-weight: bold;
}

.left-panel label {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
}

.left-panel input,
.left-panel select,
.left-panel textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #bbb;
    font-size: 14px;
    background: #fafafa;
}

.left-panel textarea {
    height: 60px;
    resize: vertical;
}


/* =========================================================
    SAĞ PANEL (ÇİZİM)
========================================================= */
.right-panel {
    flex: 1;
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.12);
}

canvas {
    width: 100%;
    height: auto !important;
    border: 1px solid #ccc;
    border-radius: 8px;
}


/* =========================================================
    BUTONLAR
========================================================= */
.btn-primary {
    margin-top: 18px;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #005fcc;
}

.btn-secondary {
    padding: 8px 15px;
    background: #444;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    border: none;
}

.btn-secondary:hover {
    background: #333;
}


/* =========================================================
    POPUP (FİRMA AYARLARI)
========================================================= */

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.45);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    width: 380px;
    background: #ffffff;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.22);
    animation: popupShow .25s ease-out;
    position: relative;
}

@keyframes popupShow {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* Başlık */
.popup-content h2 {
    margin: 0 0 20px;
    text-align: center;
    font-size: 20px;
    color: #333;
    font-weight: 700;
}

/* X Butonu */
.popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 18px;
    background: #eee;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: .2s;
}

.popup-close:hover {
    background: #ddd;
}

/* Input alanları */
.popup-content input,
.popup-content textarea {
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    margin-bottom: 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #fafafa;
    font-size: 15px;
    transition: .2s;
}

/* =========================================================
    LOGO ÖNİZLEME + KIRPMA
========================================================= */
/* Logo input */
#firmaLogo {
    padding: 10px;
    border-radius: 10px;
    background: #f0f0f0;
    cursor: pointer;
}


/* =========================================================
    MOBİL RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        text-align: center;
    }

    .dev-box {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }

    .dev-icon {
        width: 22px;
        height: 22px;
    }

    .dev-box span {
        font-size: 15px;
    }
}

@media (max-width: 900px) {
    .main-wrapper {
        flex-direction: column;
        padding: 12px;
    }

    .left-panel,
    .right-panel {
        width: 100%;
    }

    .right-panel {
        margin-top: 15px;
    }

    canvas {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 16px;
    }

    .btn-primary {
        font-size: 15px;
        padding: 12px;
    }

    .left-panel h2 {
        font-size: 16px;
    }
}
