﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
    /* Açık Tema - Sizin renkleriniz */
    --light-bg: #f0f4f8;
    --light-surface: #ffffff;
    --light-primary: #0b3b5c;
    --light-primary-light: #e3f0ff;
    --light-primary-dark: #062436;
    --light-text: #1e2a3a;
    --light-text-secondary: #4a5b6e;
    --light-border: #d0ddee;
    --light-success: #0f7b5a;
    --light-step-active: #0b3b5c;
    --light-step-completed: #0f7b5a;
    --light-step-inactive: #cbd5e1;
    --light-shadow: 0 20px 40px -15px rgba(0, 30, 50, 0.2);
    --gradient-primary: linear-gradient(145deg, #0b3b5c, #1a5780);
}

.dark-theme {
    /* Koyu Tema - Sizin renkleriniz */
    --light-bg: #111c2a;
    --light-surface: #1a2737;
    --light-primary: #3a7ca5;
    --light-primary-light: #1e3347;
    --light-primary-dark: #0e2438;
    --light-text: #e6edf5;
    --light-text-secondary: #a0b3cc;
    --light-border: #2e3c50;
    --light-success: #2e9a7a;
    --light-step-active: #3a7ca5;
    --light-step-completed: #2e9a7a;
    --light-step-inactive: #3e5068;
    --light-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
    --gradient-primary: linear-gradient(145deg, #1a2737, #253649);
}

body {
    background: var(--light-bg);
    color: var(--light-text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: background 0.3s;
}

/* Ana Container */
.main-container {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    background: var(--light-surface);
    border-radius: 32px;
    box-shadow: var(--light-shadow);
    border: 1px solid var(--light-border);
    overflow: hidden;
}

/* Sol Panel - Proje Bilgileri */
.info-panel {
    background: var(--gradient-primary);
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

    .info-panel::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    }

.project-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.2rem;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 2;
}

.project-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-code {
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-desc {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
}

    .info-item:last-child {
        border-bottom: none;
    }

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.info-text {
    color: white;
}

    .info-text strong {
        display: block;
        font-size: 0.85rem;
        opacity: 0.8;
        font-weight: 400;
        margin-bottom: 0.2rem;
    }

    .info-text span {
        font-size: 1.1rem;
        font-weight: 600;
    }

.deadline-box {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 2;
}

.deadline-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.deadline-date {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.update-text {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

/* Sağ Panel - Form */
.form-panel {
    background: var(--light-surface);
    padding: 2rem;
}

/* Tema */
.theme-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.theme-btn {
    background: var(--light-bg);
    border: 1px solid var(--light-border);
    border-radius: 30px;
    padding: 0.3rem;
    display: inline-flex;
}

.theme-opt {
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    border: none;
    background: none;
    color: var(--light-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .theme-opt.active {
        background: var(--light-primary);
        color: white;
    }

/* Form */
.section {
    display: block;
}

    .section.hide {
        display: none;
    }

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 0.3rem;
}

.sub {
    color: var(--light-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--light-text);
}

input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--light-bg);
    border: 2px solid var(--light-border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--light-text);
    transition: all 0.2s ease;
}

    input:focus {
        outline: none;
        border-color: var(--light-primary);
        background: var(--light-surface);
        box-shadow: 0 0 0 4px rgba(11, 59, 92, 0.1);
    }

    input::placeholder {
        color: var(--light-text-secondary);
        opacity: 0.5;
    }

.btn {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0.7rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: transparent;
    border: 2px solid var(--light-border);
    color: var(--light-text);
}

    .btn-primary:hover {
        border-color: var(--light-primary);
        background: var(--light-primary-light);
    }

.btn-outline {
    background: transparent;
    border: 2px solid var(--light-border);
    color: var(--light-text);
}

    .btn-outline:hover {
        border-color: var(--light-primary);
        background: var(--light-primary-light);
    }

.link-btn {
    background: none;
    border: none;
    color: var(--light-primary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
}

    .link-btn:hover {
        background: var(--light-primary-light);
    }

/* Steps */
.steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0 2rem;
    position: relative;
}

    .steps::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--light-step-inactive);
        transform: translateY(-50%);
        z-index: 1;
    }

.step {
    position: relative;
    z-index: 2;
    width: 34px;
    height: 34px;
    background: var(--light-surface);
    border: 2px solid var(--light-step-inactive);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--light-text-secondary);
    transition: all 0.3s ease;
}

    .step.active {
        border-color: var(--light-step-active);
        background: var(--light-step-active);
        color: white;
    }

    .step.completed {
        border-color: var(--light-step-completed);
        background: var(--light-step-completed);
        color: white;
    }

.step-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.4rem;
    font-size: 0.7rem;
    white-space: nowrap;
    color: var(--light-text-secondary);
}

.step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

    .step-content.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Info Box */
.info-box {
    background: var(--light-primary-light);
    border: 1px solid var(--light-border);
    border-radius: 10px;
    padding: 0.8rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--light-text);
}

    .info-box strong {
        color: var(--light-primary);
        display: block;
        margin-bottom: 0.2rem;
    }

/* Code Inputs */
.code-box {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.code-input {
    width: 45px;
    height: 50px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    background: var(--light-bg);
    border: 2px solid var(--light-border);
    border-radius: 10px;
    color: var(--light-text);
}

    .code-input:focus {
        border-color: var(--light-primary);
        outline: none;
        background: var(--light-surface);
    }

.timer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--light-text-secondary);
    margin: 0.8rem 0;
}

    .timer span {
        color: var(--light-primary);
        font-weight: 600;
        font-size: 1.1rem;
    }

/* Password Hint */
.password-hint {
    font-size: 0.7rem;
    margin-top: 0.3rem;
    color: var(--light-text-secondary);
}

/* Loading */
.loading {
    pointer-events: none;
    opacity: 0.6;
    position: relative;
}

    .loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 1.2rem;
        height: 1.2rem;
        margin-top: -0.6rem;
        margin-left: -0.6rem;
        border: 2px solid var(--light-border);
        border-top-color: var(--light-primary);
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Checkbox Stilleri - Tema Uyumlu */
.checkbox-group {
    margin-bottom: 1.2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    width: fit-content;
}

.checkbox-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--light-text);
    user-select: none;
}

/* Custom Checkbox */
.custom-checkbox {
    position: relative;
    width: 18px;
    height: 18px;
    appearance: none;
    -webkit-appearance: none;
    background: var(--light-bg);
    border: 2px solid var(--light-border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
}

    .custom-checkbox:checked {
        background: var(--light-primary);
        border-color: var(--light-primary);
    }

        .custom-checkbox:checked::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 12px;
            font-weight: bold;
        }

    .custom-checkbox:hover {
        border-color: var(--light-primary);
    }

    .custom-checkbox:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(11, 59, 92, 0.2);
    }

/* Dark tema için checkbox özel ayarları */
.dark-theme .custom-checkbox:checked {
    background: var(--light-primary);
    border-color: var(--light-primary);
}

    .dark-theme .custom-checkbox:checked::after {
        color: white;
    }
/* Webkit autofill için box-shadow hilesi */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px var(--light-bg) inset !important;
    -webkit-text-fill-color: var(--light-text) !important;
    caret-color: var(--light-text) !important;
    border: 2px solid var(--light-border) !important;
    transition: background-color 0s !important;
}

/* Koyu tema autofill */
.dark-theme input:-webkit-autofill,
.dark-theme input:-webkit-autofill:hover,
.dark-theme input:-webkit-autofill:focus,
.dark-theme input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px #111C2a inset !important;
    -webkit-text-fill-color: #e6edf5 !important;
    caret-color: #e6edf5 !important;
    border: 2px solid #2e3c50 !important;
}

/* Açık tema autofill */
body:not(.dark-theme) input:-webkit-autofill,
body:not(.dark-theme) input:-webkit-autofill:hover,
body:not(.dark-theme) input:-webkit-autofill:focus,
body:not(.dark-theme) input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px #f0f4f8 inset !important;
    -webkit-text-fill-color: #1e2a3a !important;
    caret-color: #1e2a3a !important;
    border: 2px solid #d0ddee !important;
}
/* Responsive */
@media (max-width: 800px) {
    body {
        padding: 1rem;
    }

    .main-container {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .info-panel {
        display: none;
    }
}
