 /* Reset ve temel stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}




 /* Üst menü stilleri */
 
        
        .logo {
            font-size: 24px;
            font-weight: bold;
        }
        
        .nav-links {
            display: flex;
            gap: 20px;
            align-items: center;
        }
        
        .nav-links a {
            color: white;
            text-decoration: none;
            padding: 8px 15px;
            border-radius: 4px;
            transition: background 0.3s;
        }
        
        .nav-links a:hover {
            background: #34495e;
        }
        
        .user-menu {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .btn {
            padding: 8px 15px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            transition: background 0.3s;
            font-weight: 600;
        }
        
        .btn-login { background: #3498db; color: white; }
        .btn-login:hover { background: #2980b9; }
        
        .btn-logout { background: #e74c3c; color: white; }
        .btn-logout:hover { background: #c0392b; }
        
        .btn-admin { background: #9b59b6; color: white; }
        .btn-admin:hover { background: #8e44ad; }
        
        .cart-icon {
            position: relative;
            cursor: pointer;
            display: flex;
            align-items: center;
            padding: 8px 15px;
            border-radius: 4px;
            transition: background 0.3s;
        }
        
        .cart-icon:hover {
            background: #34495e;
        }
        
        .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #e74c3c;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
        }

        
       
        

        
        /* Mobil uyumluluk */
        @media (max-width: 768px) {
            .cart-sidebar {
                width: 100%;
                right: -100%;
            }
            .nav-links {
                flex-direction: column;
                gap: 10px;
            }
            .user-menu {
                flex-direction: column;
                gap: 10px;
            }
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            margin: 0;
            padding: 0;
            background-color: #f5f7fa;
            color: #333;
        }
.container2 {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 15px;
}
        
        /* Ana içerik düzeni */
        .main-content {
            display: flex;
            gap: 30px;
            margin-bottom: 30px;
        }
        
        .viewer-section {
            flex: 1;
            min-width: 0;
        }
        
        .settings-section {
            flex: 0 0 350px;
        }
        
        .form-group {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 20px;
        }
        .form-group > div {
            flex: 1;
            min-width: 250px;
        }
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #2c3e50;
        }
        input[type="file"],
        select,
        input[type="number"],
        input[type="color"],
        input[type="text"] {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 16px;
            transition: border-color 0.3s;
        }
        input[type="file"]:focus,
        select:focus,
        input[type="number"]:focus,
        input[type="color"]:focus,
        input[type="text"]:focus {
            border-color: #3498db;
            outline: none;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        }
        .btn {
            padding: 8px 15px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            transition: background 0.3s;
            font-weight: 600;
        }
        .btn:hover {
            background: #2980b9;
        }
        .btn-add-cart2 {
            background: #27ae60;
            margin-top: 15px;
        }
 
        .btn-add-cart:hover {
            background: #219653;
        }
        .btn-clear {
            background: #e74c3c;
        }
        .btn-clear:hover {
            background: #c0392b;
        }

        .error {
            color: #e74c3c;
            padding: 15px;
            background: #fadbd8;
            border-radius: 6px;
            margin-bottom: 20px;
            display: <?php echo isset($error) ? 'block' : 'none'; ?>;
            border-left: 4px solid #e74c3c;
        }

        .viewer-container {
            width: 100%;
            height: 500px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
        }
        #stl-viewer {
            width: 100%;
            height: 100%;
        }
        .viewer-controls {
            position: absolute;
            bottom: 15px;
            left: 15px;
            background: rgba(255,255,255,0.9);
            padding: 12px;
            border-radius: 6px;
            z-index: 10;
            display: flex;
            gap: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .viewer-controls button {
            padding: 10px 15px;
            background: #3498db;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.3s;
        }
        .viewer-controls button:hover {
            background: #2980b9;
        }
        .file-controls {
            position: absolute;
            top: 15px;
            left: 15px;
            background: rgba(255,255,255,0.9);
            padding: 12px;
            border-radius: 6px;
            z-index: 10;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            display: flex;
            gap: 10px;
        }
        .axis-info {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255,255,255,0.9);
            padding: 10px;
            border-radius: 6px;
            z-index: 10;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            font-size: 14px;
        }
        .axis-color {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 5px;
        }
        .axis-x { background-color: #ff0000; }
        .axis-y { background-color: #00ff00; }
        .axis-z { background-color: #0000ff; }
        .screenshot-preview {
            margin-top: 15px;
            text-align: center;
            display: none;
        }
        .screenshot-preview img {
            max-width: 100%;
            max-height: 200px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        .color-preview {
            display: inline-block;
            width: 20px;
            height: 20px;
            border-radius: 4px;
            vertical-align: middle;
            margin-left: 5px;
        }
        .current-file-info {
            background: #e8f4fc;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            border-left: 4px solid #3498db;
        }
        
        /* Yükleniyor göstergesi için stil */
        .loading {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255,255,255,0.8);
            z-index: 9999;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }
        .loading-spinner {
            border: 5px solid #f3f3f3;
            border-top: 5px solid #3498db;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Form stilleri */
        .settings-form {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        .settings-form h3 {
            margin-top: 0;
            color: #2c3e50;
            border-bottom: 2px solid #eee;
            padding-bottom: 12px;
            font-weight: 600;
        }
        .form-row {
            margin-bottom: 15px;
        }
        .color-picker {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 10px;
        }

        .color-option {
            width: 28px;
            height: 28px;
            border-radius: 4px;
            border: 2px solid #ccc;
            cursor: pointer;
            box-sizing: border-box;
            transition: transform 0.2s;
        }

        .color-option:hover {
            transform: scale(1.1);
        }

        .color-option.selected {
            border: 3px solid #2c3e50;
            transform: scale(1.1);
        }

        #selectedColorName {
            font-weight: bold;
            margin-top: 8px;
            color: #2c3e50;
        }
        
        /* YATAY SONUÇLAR STİLİ - Tam genişlikte yatay düzen */
        .full-width-results {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            justify-content: space-between;
            align-items: stretch;
            margin-top: 30px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 12px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
            width: 100%;
            box-sizing: border-box;
        }

        .full-width-results .result-item {
            flex: 1;
            min-width: 180px;
            padding: 15px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            border-top: 4px solid #3498db;
            text-align: center;
            margin-bottom: 0;
            box-sizing: border-box;
        }

        .full-width-results .dimension-badge {
            display: block;
            background: #e8f4fc;
            color: #3498db;
            padding: 6px 10px;
            border-radius: 4px;
            margin: 6px 0;
            font-size: 13px;
            font-weight: 500;
        }

        .full-width-results .price-tag {
            background: #27ae60;
            color: white;
            padding: 10px 15px;
            border-radius: 6px;
            font-size: 18px;
            font-weight: bold;
            margin-top: 8px;
            display: inline-block;
        }

        .full-width-results .btn-add-cart {
            align-self: center;
            margin-top: 0;
            height: fit-content;
            padding: 12px 20px;
            font-size: 16px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .value-highlight {
            font-size: 18px;
            font-weight: 600;
            color: #2c3e50;
            display: block;
            margin: 6px 0;
        }

        .unit {
            font-size: 13px;
            color: #7f8c8d;
        }

        .price-info {
            font-size: 12px;
            color: #7f8c8d;
            margin-top: 4px;
        }

        /* Ekran küçüldüğünde dikey hale gelsin */
        @media (max-width: 900px) {
            .full-width-results {
                flex-direction: column;
            }
            
            .full-width-results .result-item {
                width: 100%;
            }
            
            .full-width-results .btn-add-cart {
                width: 100%;
                margin-top: 10px;
            }
        }

        /* Çok küçük ekranlar için ek ayarlamalar */
        @media (max-width: 600px) {
            .full-width-results {
                padding: 15px;
                gap: 10px;
            }
            
            .full-width-results .result-item {
                padding: 12px;
                min-width: 0;
            }
            
            .value-highlight {
                font-size: 16px;
            }
            
            .full-width-results .price-tag {
                font-size: 16px;
                padding: 8px 12px;
            }
            
            .full-width-results .btn-add-cart {
                padding: 10px 15px;
                font-size: 14px;
            }
        }
        
        .support-row {
            display: none;
        }
        
        .success-message {
            background: #d4edda;
            color: #155724;
            padding: 15px;
            border-radius: 6px;
            margin-bottom: 20px;
            border-left: 4px solid #28a745;
        }



//ayarla hesap kodu



.user-menu {
    position: relative;
}

.user-account-dropdown {
    position: relative;
    display: inline-block;
}

.account-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000000; /* Siyah yazı */
}

.account-trigger:hover {
    background: #e9ecef;
    color: #000000; /* Hover durumunda da siyah */
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    color: #000000; /* Ok işareti siyah */
}

.user-account-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.account-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-account-dropdown:hover .account-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 12px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-size: 12px;
    color: #000000; /* Siyah yazı */
}

.dropdown-item {
    display: block;
    padding: 10px 15px;
    color: #000000; /* Siyah yazı */
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #000000; /* Hover durumunda da siyah */
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 5px 0;
}

.dropdown-item.logout {
    color: #000000; /* Çıkış yazısı da siyah */
    border-bottom: none;
}

.dropdown-item.logout:hover {
    background: #f8f9fa;
    color: #000000; /* Hover durumunda siyah */
}

/* Mobile responsive */
@media (max-width: 768px) {
    .account-dropdown-menu {
        right: -50px;
        width: 180px;
    }
}