* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4361ee;
    --primary-hover: #3a56d4;
    --secondary-color: #f72585;
    --text-color: #2d3748;
    --light-gray: #f7fafc;
    --gray: #e2e8f0;
    --dark-gray: #718096;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.05), 0 4px 6px rgba(0,0,0,0.05);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    font-size: 16px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

header {
    text-align: center;
    margin-bottom: 32px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

header p {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.workspace {
    display: flex;
    gap: 24px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-height: 700px;
}

.canvas-container {
    flex: 1;
    position: relative;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    width: 100%;
    height: 500px;
}

.canvas-container.visible {
    display: flex;
    animation: fadeIn 0.3s ease;
}

#qrcode-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 300px;
    height: 300px;
}

#qrcode-container svg {
    max-width: 100%;
    max-height: 100%;
}

#qrcode-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.scan-me-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
    text-align: center;
    line-height: 1.2;
    width: auto;
    min-width: 80px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#workspace-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: move;
    background-color: white;
    box-shadow: var(--shadow-sm);
    display: none;
}

.properties-panel {
    width: 350px;
    background: #fff;
    padding: 24px;
    overflow-y: auto;
    border-left: 1px solid var(--gray);
}

.panel-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--gray);
}

.panel-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.panel-section h3 {
    color: var(--text-color);
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-section h3::before {
    content: "";
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
}

.panel-section h4 {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 12px;
    margin-top: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--dark-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.form-group input[type="color"] {
    width: 100%;
    height: 40px;
    padding: 2px;
    border: 1px solid var(--gray);
    border-radius: var(--radius-sm);
    background-color: white;
    cursor: pointer;
}

.form-group input[type="range"] {
    width: 100%;
    margin: 10px 0;
    -webkit-appearance: none;
    background: var(--gray);
    height: 5px;
    border-radius: 5px;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray);
    border-radius: var(--radius-sm);
    background-color: white;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' fill='none'%3E%3Cpath fill='%232D3748' d='M8 12L0 0h16L8 12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.checkbox-group,
.radio-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.checkbox-group:last-child,
.radio-group:last-child {
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-group label,
.radio-group label {
    margin-bottom: 0;
    cursor: pointer;
}

.radio-group {
    margin-right: 16px;
}

.subcategory {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--gray);
}

.subcategory > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

.tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid var(--gray);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
}

.tool-button:hover {
    background: var(--light-gray);
    border-color: var(--dark-gray);
    transform: translateY(-1px);
}

.tool-button.primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 16px;
    margin-top: 8px;
}

.tool-button.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.hidden {
    display: none !important;
}

.download-options {
    display: flex;
    gap: 8px;
}

.download-options button {
    flex: 1;
}

/* Logo Grid */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.logo-item {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--gray);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
}

.logo-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-preview-container {
    margin-top: 12px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.logo-preview {
    width: 100%;
    height: 100px;
    border: 1px solid var(--gray);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    margin-bottom: 8px;
}

.logo-preview img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Gradient Options */
.gradient-options,
.frame-options {
    animation: fadeIn 0.3s ease;
    padding: 12px;
    background-color: var(--light-gray);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

/* Responsive design */
@media (max-width: 1200px) {
    .workspace {
        flex-direction: column;
    }
    
    .properties-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--gray);
    }
    
    .download-options {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    header {
        margin-bottom: 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .workspace {
        padding: 16px;
    }
    
    .properties-panel {
        padding: 16px;
    }
    
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.help-text {
    color: var(--dark-gray);
    font-size: 0.85rem;
    margin-top: 8px;
    font-style: italic;
}

footer {
    text-align: center;
    margin-top: 24px;
    padding: 16px;
    color: var(--dark-gray);
    font-size: 0.9rem;
    border-top: 1px solid var(--gray);
}

/* QR Code Frame Styles */
.qr-frame {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-frame-label {
    background-color: var(--frame-color, #000);
    color: #fff;
    font-weight: bold;
    padding: 5px 10px;
    font-size: 14px;
    text-align: center;
    z-index: 10;
}

.qr-frame.standard .qr-frame-label {
    position: absolute;
    bottom: -25px;
    border-radius: 4px;
}

.qr-frame.banner-top .qr-frame-label {
    position: absolute;
    top: -25px;
    width: 100%;
    border-radius: 4px 4px 0 0;
}

.qr-frame.banner-bottom .qr-frame-label {
    position: absolute;
    bottom: -25px;
    width: 100%;
    border-radius: 0 0 4px 4px;
}

.qr-frame.badge .qr-frame-label {
    position: absolute;
    top: -15px;
    right: -15px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transform: rotate(15deg);
}

.qr-frame.bubble .qr-frame-label {
    position: absolute;
    top: -30px;
    right: -10px;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
}

.qr-frame.bubble .qr-frame-label::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--frame-color, #000);
}

.qr-frame.border {
    border: 4px solid var(--frame-color, #000);
    border-radius: 8px;
    padding: 8px;
}

.qr-frame.corners::before,
.qr-frame.corners::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--frame-color, #000);
    border-style: solid;
}

.qr-frame.corners::before {
    top: -8px;
    left: -8px;
    border-width: 3px 0 0 3px;
    border-radius: 5px 0 0 0;
}

.qr-frame.corners::after {
    bottom: -8px;
    right: -8px;
    border-width: 0 3px 3px 0;
    border-radius: 0 0 5px 0;
}

/* Yeni çerçeve stilleri */
.qr-frame.bottom-tab {
    padding-bottom: 30px;
    position: relative;
}

.qr-frame.bottom-tab::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: 30px;
    border: 4px solid var(--frame-color, #000);
    border-radius: 10px;
    z-index: -1;
}

.qr-frame.bottom-tab .qr-frame-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 0 0 10px 10px;
    background-color: var(--frame-color, #000);
}

.qr-frame.full-frame {
    padding: 40px 5px 5px 5px;
    position: relative;
}

.qr-frame.full-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--frame-color, #000);
    border-radius: 8px;
    z-index: -1;
}

.qr-frame.full-frame .qr-frame-label {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    background-color: transparent;
}

.qr-frame.top-banner {
    padding-top: 40px;
    position: relative;
}

.qr-frame.top-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35px;
    background: var(--frame-color, #000);
    border-radius: 7px;
    z-index: -1;
}

.qr-frame.top-banner .qr-frame-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 7px;
    height: 35px;
    line-height: 35px;
    background-color: transparent;
}

.qr-frame.simple-banner {
    padding-top: 40px;
    position: relative;
}

.qr-frame.simple-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: var(--frame-color, #000);
    z-index: -1;
}

.qr-frame.simple-banner .qr-frame-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    line-height: 30px;
    background-color: transparent;
}

.qr-frame.square-border {
    border: 5px solid var(--frame-color, #000);
    padding: 5px;
}

.qr-frame.corner-markers {
    position: relative;
    margin: 10px;
}

.qr-frame.corner-markers .tl,
.qr-frame.corner-markers .tr,
.qr-frame.corner-markers::before,
.qr-frame.corner-markers::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background: var(--frame-color, #000);
}

.qr-frame.corner-markers .tl {
    top: -10px;
    left: -10px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.qr-frame.corner-markers .tr {
    top: -10px;
    right: -10px;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.qr-frame.corner-markers::before {
    bottom: -10px;
    left: -10px;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.qr-frame.corner-markers::after {
    bottom: -10px;
    right: -10px;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.qr-frame.rounded-corner-markers {
    margin: 10px;
    position: relative;
}

.qr-frame.rounded-corner-markers .circle-1,
.qr-frame.rounded-corner-markers .circle-2,
.qr-frame.rounded-corner-markers .circle-3,
.qr-frame.rounded-corner-markers .circle-4,
.qr-frame.rounded-corner-markers .circle-5,
.qr-frame.rounded-corner-markers .circle-6,
.qr-frame.rounded-corner-markers .circle-7,
.qr-frame.rounded-corner-markers .circle-8 {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--frame-color, #000);
}

.qr-frame.rounded-corner-markers .circle-1 {
    top: -10px;
    left: -10px;
}

.qr-frame.rounded-corner-markers .circle-2 {
    top: -10px;
    left: 20px;
}

.qr-frame.rounded-corner-markers .circle-3 {
    top: -10px;
    right: 20px;
}

.qr-frame.rounded-corner-markers .circle-4 {
    top: -10px;
    right: -10px;
}

.qr-frame.rounded-corner-markers .circle-5 {
    bottom: -10px;
    left: -10px;
}

.qr-frame.rounded-corner-markers .circle-6 {
    bottom: -10px;
    left: 20px;
}

.qr-frame.rounded-corner-markers .circle-7 {
    bottom: -10px;
    right: 20px;
}

.qr-frame.rounded-corner-markers .circle-8 {
    bottom: -10px;
    right: -10px;
}

.qr-frame.arrow-bottom {
    padding-bottom: 30px;
    position: relative;
}

.qr-frame.arrow-bottom::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: var(--frame-color, #000);
    border-radius: 0 0 5px 5px;
    z-index: -1;
}

.qr-frame.arrow-bottom::after {
    content: '';
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid var(--frame-color, #000);
}

.qr-frame.arrow-bottom .qr-frame-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    line-height: 30px;
    background-color: transparent;
}

.qr-frame.arrow-top {
    padding-top: 40px;
    position: relative;
}

.qr-frame.arrow-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: var(--frame-color, #000);
    border-radius: 5px 5px 0 0;
    z-index: -1;
}

.qr-frame.arrow-top::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--frame-color, #000);
}

.qr-frame.arrow-top .qr-frame-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    line-height: 30px;
    background-color: transparent;
}

/* Çerçeve stilleri için buton grid */
.frame-styles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.frame-style-button {
    border: 1px solid var(--gray);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    height: 80px;
    padding: 8px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.frame-style-button:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.frame-style-button.active {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.frame-style-button svg {
    width: 100%;
    height: 60px;
}

.frame-style-button span {
    font-size: 10px;
    margin-top: 5px;
    color: var(--dark-gray);
}

/* Scan Me Yazısı için Ek Stiller */
#scan-me-options {
    animation: fadeIn 0.3s ease;
    padding-top: 10px;
    border-top: 1px dashed var(--gray);
    margin-top: 10px;
}

/* Simple Text Çerçeveleri */
.qr-frame.simple-text-top {
    position: relative;
    padding-top: 30px;
}

.qr-frame.simple-text-top .qr-frame-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    color: inherit;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.qr-frame.simple-text-bottom {
    position: relative;
    padding-bottom: 30px;
}

.qr-frame.simple-text-bottom .qr-frame-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: transparent;
    color: inherit;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

/* Sadece text stilleri için varsayılan renk ayarlarını değiştir */
.qr-frame.simple-text-top .qr-frame-label,
.qr-frame.simple-text-bottom .qr-frame-label {
    background-color: transparent;
    color: var(--frame-color, #000);
}