/* Ortak stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
    min-height: 100vh;
    padding-top: 220px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    color: #e0e0e0;
}

.logo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 400px;
    height: auto;
}

.container {
    background: rgba(27, 38, 59, 0.95);
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

/* Hotspot Sayfasına Özel Stiller (index.html) */
.hotspot-container .controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

/* Dosya seçme alanını özelleştirme */
.hotspot-container .control-group input[type="file"] {
    display: none; /* Varsayılan dosya seçme alanını gizle */
}

/* Özel dosya seçme butonu */
.hotspot-container .control-group label[for="imageInput"] {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(45deg, #415a77, #778da9);
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
    text-align: center;
}

.hotspot-container .control-group label[for="imageInput"]:hover {
    background: linear-gradient(45deg, #778da9, #415a77);
    transform: scale(1.05);
}

/* Seçilen dosya isimlerini göstermek için bir alan (isteğe bağlı) */
.hotspot-container .control-group .file-names {
    margin-top: 5px;
    font-size: 0.9em;
    color: #778da9;
    word-break: break-all;
}

.hotspot-container .preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.hotspot-container .preview-item {
    background: transparent;
    padding: 10px;
    text-align: center;
    display: flex; /* Flexbox kullanarak düzenleyelim */
    flex-direction: column; /* Elemanları dikey olarak sırala */
    align-items: center; /* Ortala */
    gap: 10px; /* İsim ve buton arasında boşluk */
}

.hotspot-container .preview-item img {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
    border-radius: 10px;
}

/* Remove butonu için stil */
.hotspot-container .preview-item button {
    background: #e63946; /* Kırmızı renk */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s;
}

.hotspot-container .preview-item button:hover {
    background: #d00000; /* Daha koyu kırmızı */
    transform: scale(1.05);
}

.hotspot-container button#downloadBtn {
    display: block;
    margin: 20px auto;
    padding: 12px 40px;
    background: linear-gradient(45deg, #415a77, #778da9);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.hotspot-container button#downloadBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Button Maker Sayfasına Özel Stiller (button-maker.html) */
.button-maker-container .controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.button-maker-container .control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.button-maker-container .size-group {
    flex-direction: row;
    gap: 20px;
}

.button-maker-container .size-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 120px;
}

.button-maker-container .preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.button-maker-container .preview-item {
    background: transparent;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.button-maker-container .preview-item img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.button-maker-container .download-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.button-maker-container #resolutionSelect {
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #1b263b;
    color: #e0e0e0;
    font-size: 1em;
    cursor: pointer;
}

.button-maker-container #resolutionSelect:hover {
    background: #2a3b5a;
}

.button-maker-container button#downloadBtn {
    display: block;
    width: 200px;
    padding: 12px 20px;
    background: linear-gradient(45deg, #415a77, #778da9);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.button-maker-container button#downloadBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Ortak Input ve Dropdown Stilleri */
label {
    color: #e0e0e0;
    font-weight: 500;
}

input[type="text"],
input[type="number"],
select,
input[type="color"] {
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #1b263b;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 1em;
    color: #e0e0e0;
    transition: background 0.3s;
}

input[type="text"]:hover,
input[type="number"]:hover,
select:hover,
input[type="color"]:hover {
    background: #2a3b5a;
}

input[type="color"] {
    padding: 5px;
    height: 40px;
    width: 60px;
    cursor: pointer;
}

.custom-dropdown {
    position: relative;
    width: 200px;
}

.custom-dropdown .selected-style {
    padding: 10px;
    border-radius: 8px;
    background: #1b263b;
    color: #e0e0e0;
    font-size: 1em;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.custom-dropdown .selected-style::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #778da9;
}

.custom-dropdown .dropdown-content {
    display: none;
    position: absolute;
    background: #1b263b;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
}

.custom-dropdown .dropdown-content.show {
    display: block;
}

.style-option {
    padding: 10px;
    color: #e0e0e0;
    cursor: pointer;
    transition: background 0.3s;
}

.style-option:hover {
    background: #2a3b5a;
}

/* Dropdown stilleri için arka planlar (Button Maker için) */
.style-option[data-value="basic"] { background: #ff6347; }
.style-option[data-value="neon-circuit"] { background: linear-gradient(45deg, #00ffcc, #00ffcc80); }
.style-option[data-value="cyber-gradient"] { background: linear-gradient(45deg, #ff007a, #00d4ff); }
.style-option[data-value="luxury-gold"] { background: linear-gradient(45deg, #ffd700, #b8860b); }
.style-option[data-value="glass-morph"] { background: rgba(255, 255, 255, 0.2); }
.style-option[data-value="retro-vapor"] { background: linear-gradient(45deg, #ff66cc, #66ccff); }
.style-option[data-value="metallic-edge"] { background: linear-gradient(45deg, #d9d9d9, #666666); }
.style-option[data-value="holo-shine"] { background: radial-gradient(circle, #ff00ff80, #00ffff80); }
.style-option[data-value="prism-glow"] { background: linear-gradient(45deg, #ff4040, #40ff40, #4040ff); }
.style-option[data-value="futuristic-panel"] { background: #1e90ff; }
.style-option[data-value="velvet-shadow"] { background: #8a2be2; }
.style-option[data-value="crystal-cut"] { background: linear-gradient(45deg, #ffffff80, #00ced180); }
.style-option[data-value="tech-pulse"] { background: #00ff00; }
.style-option[data-value="gradient-wave"] { background: linear-gradient(90deg, #ff4500, #4682b4); }
.style-option[data-value="industrial-steel"] { background: linear-gradient(45deg, #cccccc, #666666); }
.style-option[data-value="cosmic-orbit"] { background: radial-gradient(circle, #191970, #ff00ff80); }
.style-option[data-value="bold-minimal"] { background: #ff6347; }
.style-option[data-value="soft-aura"] { background: radial-gradient(circle, #ffb6c1, #ffb6c140); }
.style-option[data-value="electric-strike"] { background: #ffd700; }
.style-option[data-value="royal-velvet"] { background: linear-gradient(45deg, #4b0082, #8a2be2); }
.style-option[data-value="quantum-flux"] { background: linear-gradient(45deg, #00ffcc, #ff00cc); }
.style-option[data-value="midnight-bliss"] { background: linear-gradient(45deg, #2c003e, #00b7eb); }
.style-option[data-value="sunset-vibe"] { background: linear-gradient(90deg, #ff4500, #ff1493); }
.style-option[data-value="emerald-depth"] { background: #008080; }
.style-option[data-value="galactic-core"] { background: radial-gradient(circle, #000080, #ff00ff40); }
.style-option[data-value="lava-flow"] { background: linear-gradient(45deg, #ff4500, #8b0000); }
.style-option[data-value="aurora-borealis"] { background: linear-gradient(45deg, #00ff99, #ff00cc, #00ccff); }
.style-option[data-value="molten-core"] { background: radial-gradient(circle, #ff4500, #8b0000, #000000); }
.style-option[data-value="stellar-dust"] { background: radial-gradient(circle, #ffd700, #ffffff40, #000080); }
.style-option[data-value="infinity-loop"] { background: linear-gradient(90deg, #00ffcc, #ff00cc, #00ffcc); }
.style-option[data-value="prismatic-shard"] { background: linear-gradient(135deg, #ff4040, #40ff40, #4040ff, #ff40ff); }
.style-option[data-value="dark-energy"] { background: radial-gradient(circle, #1a1a1a, #ff00ff40, #000000); }
.style-option[data-value="glacial-frost"] { background: linear-gradient(45deg, #b0e0e6, #00ced1, #4682b4); }
.style-option[data-value="solar-flare"] { background: radial-gradient(circle, #ffeb3b, #ff4500, #ff0000); }
.style-option[data-value="ethereal-mist"] { background: linear-gradient(45deg, #e6e6fa80, #dda0dd80, #afeeee80); }
.style-option[data-value="chrono-pulse"] { background: linear-gradient(90deg, #00ff00, #00ff0080, #00ff00); }

.note {
    background-color: #2c2c2e;
    color: #f1f1f1;
    padding: 1rem 1.5rem;
    border-left: 5px solid #aad807;
    margin: 0 auto 1.5rem auto;
    border-radius: 8px;
    text-align: center;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .note {
        max-width: 700px;
    }
}

.menu {
    position: absolute;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0;
    background: rgba(27, 38, 59, 0.95);
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    z-index: 5;
    overflow: hidden;
}

.menu-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(45deg, #415a77, #778da9);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    transition: all 0.3s;
    border-radius: 0;
}

.menu-btn:hover {
    background: linear-gradient(45deg, #778da9, #415a77);
}

.menu-btn.active {
    background: linear-gradient(45deg, #e63946, #d00000);
}

.menu-btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.menu-btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}