:root {
    --primary-color: #E63946; /* Premium Kırmızı */
    --primary-hover: #D62828;
    --bg-dark: #0B090A; /* Siyah Arka Plan */
    --bg-card: #161A1D; /* Koyu Gri Kart */
    --text-main: #F5F3F4;
    --text-muted: #B1A7A6;
    --border-color: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    max-width: 260px;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar nav a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar nav a:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.sidebar nav a.active {
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 3rem 4rem;
    overflow-y: auto;
}

header h2 {
    font-size: 32px;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 2.5rem;
}

/* Form Styles */
.form-section {
    max-width: 800px;
}

.form-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(230, 57, 70, 0.3);
}

.form-card h3 {
    font-size: 20px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.step-num {
    background-color: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
}

.input-group-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-group {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.input-group-row .input-group {
    margin-bottom: 0;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.input-group input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

/* Toggle Switch */
.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.toggle-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.toggle-label {
    display: flex;
    flex-direction: column;
}

.toggle-title {
    font-weight: 600;
    font-size: 16px;
}

.toggle-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* AR Section */
.ar-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, #1a1012 100%);
    border-color: rgba(230, 57, 70, 0.2);
}

.ar-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 1.5rem;
}

/* Button */
.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Response Msg */
.response-msg {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.response-msg.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.response-msg.error {
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(230, 57, 70, 0.2);
}

/* AR Preview Area */
.ar-preview-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 500px;
    margin: 0 auto 2rem auto;
    background-color: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ar-background {
    position: absolute;
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, #eee, #ccc);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-weight: 600;
    pointer-events: none; /* Arka plan sürüklenmesin */
}

.ar-video-overlay {
    position: absolute;
    width: 150px;
    height: 250px;
    background-color: rgba(230, 57, 70, 0.6);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    cursor: grab;
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
    transform-origin: center center;
    transition: box-shadow 0.2s ease;
}

.ar-video-overlay:active {
    cursor: grabbing;
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.6);
}

/* Logo Image */
.logo-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    filter: invert(1);
    mix-blend-mode: screen;
}
