:root {
    --primary: #e11d48; /* Canlı Crimson Kırmızısı */
    --primary-glow: rgba(225, 29, 72, 0.4);
    --bg-dark: #0f172a;
    --surface: rgba(255, 255, 255, 0.03);
    --glass: rgba(15, 23, 42, 0.8);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    color: var(--text-main);
}

/* Animasyonlu Mesh Gradient Arka Plan */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 30%, #4c0519 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, #881337 0%, transparent 40%);
    animation: moveBg 15s infinite alternate ease-in-out;
}

@keyframes moveBg {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

/* Ana Panel Tasarımı */
.app-container {
    width: 100%;
    max-width: 900px;
    height: 550px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 32px;
    display: flex;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

/* Sol Navigasyon */
.side-nav {
    width: 280px;
    background: rgba(225, 29, 72, 0.05);
    border-right: 1px solid var(--border);
    padding: 40px;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-list {
    list-style: none;
    flex-grow: 1;
}

.step-node {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 35px;
    position: relative;
    opacity: 0.3;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step-node.active {
    opacity: 1;
    transform: translateX(10px);
}

.node-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-dim);
}

.step-node.active .node-icon {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
    border: none;
}

.node-text {
    font-size: 14px;
    font-weight: 600;
}

/* İçerik Alanı */
.main-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.view-panel {
    display: none;
    animation: fadeIn 0.6s ease;
}

.view-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.status-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.status-header p {
    color: var(--text-dim);
    font-size: 14px;
}

.timer-chip {
    background: rgba(225, 29, 72, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(225, 29, 72, 0.2);
}

/* Modern Inputlar */
.form-row {
    margin-bottom: 24px;
}

.form-row label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.field-group {
    position: relative;
}

.field-group::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
    font-size: 12px;
}

.field-group select {
    padding-right: 45px;
}

.field-group input, .field-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 14px 18px;
    border-radius: 14px;
    color: white;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.field-group input:focus, .field-group select:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.field-group select option {
    background: var(--bg-dark);
    color: var(--text-main);
    padding: 10px;
}

.field-group select::-ms-expand {
    display: none;
}

.copy-pill {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.copy-pill:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Butonlar */
.action-group {
    margin-top: auto;
    padding-top: 20px;
}

.btn-main {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-main:hover {
    background: #be123c;
    box-shadow: 0 10px 25px -5px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
    display: block;
    text-align: center;
    width: 100%;
}

/* Toast Bildirim */
#custom-toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #fff;
    color: #000;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    z-index: 1000;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

#custom-toast.active {
    transform: translateX(-50%) translateY(0);
}

/* Toastify Özel Stiller - Formu bozmaması için */
.custom-toastify {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    margin: 0 !important;
    max-width: 90% !important;
    width: auto !important;
}

/* Toastify container'ı formu etkilemesin */
#toast-container {
    position: fixed !important;
    z-index: 9999 !important;
    pointer-events: none !important;
}

#toast-container > div {
    pointer-events: auto !important;
}

/* Login Sayfası Stilleri */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 450px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-box h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.error-message {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f44336;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobil */
@media (max-width: 768px) {
    body {
        padding: 0;
        overflow: auto;
    }
    .app-container {
        flex-direction: column;
        height: 100vh;
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        margin: 0;
    }
    .side-nav {
        width: 100%;
        padding: 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .brand-box { margin-bottom: 0; font-size: 18px; }
    .step-list { display: none; }
    .main-content { 
        padding: 30px 20px;
        flex: 1;
        overflow-y: auto;
    }
    .login-box {
        padding: 30px 20px;
    }
}
