:root {
    --primary: #d32f2f;
    /* Red */
    --primary-light: #ff6659;
    --primary-dark: #9a0007;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-main: #1a1a1b;
    --text-muted: #5e6c84;
    --border: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.84);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.company-logo {
    max-width: 320px;
    /* Logo boyutunu büyüttük */
    height: auto;
    transition: var(--transition);
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.company-logo:hover {
    transform: scale(1.05);
}

.hero {
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* Glass Card */
.track-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    max-width: 500px;
    margin: 0 auto;
    transition: var(--transition);
}

.track-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.input-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.input-group input {
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    outline: none;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: 8px;
}

.btn-primary {
    background: #3182ce;
    color: white;
}

.btn-primary:hover {
    background: #2b6cb0;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.btn-secondary {
    background: #4a5568;
    color: white;
}

.btn-secondary:hover {
    background: #2d3748;
    box-shadow: 0 4px 12px rgba(74, 85, 104, 0.3);
}

.btn-danger {
    background: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background: #c53030;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.action-group {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
}

/* Tracking Result Styles */
.result-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto 1rem;
    padding-bottom: 2rem;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 5%;
    right: 5%;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-bubble {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 4px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #e2e8f0;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.step-item.active .step-bubble {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 8px rgba(211, 47, 47, 0.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(211, 47, 47, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 161, 105, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(56, 161, 105, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 161, 105, 0);
    }
}

.step-item.active .step-bubble {
    border-color: var(--primary);
    color: var(--primary);
    animation: pulse 2s infinite;
}

.step-item.completed .step-bubble {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Stage 5 Green Variant */
.step-item.active.stage-5 .step-bubble {
    border-color: #38a169;
    color: #38a169;
    animation: pulse-green 2s infinite;
}

.step-item.active.stage-5 .step-label {
    color: #38a169;
}

.step-item.completed.stage-5 .step-bubble {
    background: #38a169;
    border-color: #38a169;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    max-width: 120px;
}

.step-item.active .step-label {
    color: var(--primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Public View */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 2rem 1rem;
    }

    .header-titles {
        text-align: center;
    }

    .stepper {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding-left: 1rem;
        margin-bottom: 3rem;
        position: relative;
    }

    .stepper::before {
        content: '';
        display: block;
        position: absolute;
        top: 22px;
        bottom: 22px;
        left: 32px;
        /* Center of bubble (bubble 45px + padding) */
        width: 4px;
        height: auto;
        background: #e2e8f0;
        z-index: 1;
        transform: none;
    }

    .step-item {
        flex-direction: row;
        /* Yan yana */
        align-items: center;
        gap: 1rem;
        width: 100%;
        z-index: 2;
    }

    .step-bubble {
        margin-bottom: 0;
        flex-shrink: 0;
        width: 45px;
        height: 45px;
        font-size: 0.875rem;
        background: #fff;
    }

    .step-label {
        text-align: left;
        max-width: 100%;
        font-size: 0.9375rem;
    }

    .job-details-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 0.5rem;
    }

    .job-description-row p {
        text-align: left;
    }
}

/* Admin Layout Framework */
.admin-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

aside {
    background: var(--bg-white);
    border-right: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    padding: 3rem;
    background: #f8fafc;
}

.nav-menu {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
}

.nav-link:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.nav-link.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

.nav-link.logout {
    color: #e53e3e;
    border-top: 1px solid var(--border);
    border-radius: 0;
    padding-top: 1.5rem;
    margin-top: auto;
}

.nav-link.logout:hover {
    background: transparent;
    color: var(--primary-dark);
}

/* Page Components */
.card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

/* Responsive Admin */
@media (max-width: 992px) {
    .admin-container {
        grid-template-columns: 1fr;
    }

    aside {
        height: auto;
        position: relative;
        padding: 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
        margin-top: 1rem;
        padding-bottom: 0.5rem;
    }

    .nav-link {
        white-space: nowrap;
    }

    .nav-link.logout {
        border-top: none;
        padding-top: 1rem;
        margin-top: 0;
    }
}