* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #10b981;
    --primary-green-dark: #059669;
    --primary-green-light: #34d399;
    --white: #ffffff;
    --dark: #1f2937;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    --error: #ef4444;
    --success: #10b981;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Split Background */
.split-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.split-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    z-index: 1;
}

.split-background::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--white);
    z-index: 1;
}

.curve-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 300px;
    height: 100%;
    background: var(--primary-green);
    clip-path: ellipse(80% 120% at 0% 50%);
    z-index: 2;
    transform: translateX(-50%);
}

/* Page Wrapper */
.page-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    position: relative;
    z-index: 20;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 40px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-text h1 {
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Main Layout */
main {
    position: relative;
    z-index: 15;
    flex: 1;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
    z-index: 16;
    padding: 0 50px 50px;
    min-height: calc(100vh - 200px);
}

/* Left Section */
.left-section {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 17;
    min-height: 600px;
}

.main-title {
    font-size: 64px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
    letter-spacing: -2px;
}

.main-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 60px;
    line-height: 1.6;
    font-weight: 400;
}

.illustration-box {
    margin-top: 40px;
    position: relative;
}

.box-3d {
    font-size: 120px;
    display: inline-block;
    animation: floatBox 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    transform-style: preserve-3d;
}

@keyframes floatBox {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Right Section */
.right-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    z-index: 17;
    min-height: 600px;
}

.query-card {
    background: var(--primary-green);
    border-radius: 30px;
    padding: 60px 50px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.3);
    position: relative;
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.card-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -1px;
}

.query-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-field-wrapper {
    position: relative;
}

.query-input {
    width: 100%;
    padding: 20px 25px;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    background: var(--white);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    outline: none;
}

.query-input:focus {
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.query-input::placeholder {
    color: var(--gray);
}

.status-message {
    background: var(--white);
    border-radius: 15px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.status-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.status-message.error .status-icon {
    color: var(--error);
}

.status-message.success {
    border-left: 4px solid var(--success);
}

.query-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 35px;
    background: var(--primary-green-light);
    color: var(--white);
    border: none;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 10px;
}

.query-button:hover {
    background: var(--primary-green-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.arrow-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.query-button:hover .arrow-icon {
    transform: translateX(5px);
}

/* Kargo Wrapper */
.kargo-wrapper {
    position: relative;
    z-index: 20;
    padding: 0 50px 50px;
    margin-top: 40px;
    clear: both;
    width: 100%;
}

/* Kargo Details */
.kargo-details-card {
    background: var(--white);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kargo-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--gray-light);
    flex-wrap: wrap;
    gap: 20px;
}

.tracking-number {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tracking-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray);
    font-weight: 700;
}

.tracking-value {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-green);
    letter-spacing: -1px;
}

.durum-badge-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.badge-icon {
    font-size: 28px;
}

.badge-text {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.info-card {
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.info-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-content label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray);
    margin-bottom: 10px;
    font-weight: 700;
}

.info-content p {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.4;
}

.aciklama-box-modern {
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    border-left: 5px solid var(--primary-green);
}

.aciklama-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.aciklama-icon {
    font-size: 28px;
}

.aciklama-header h4 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
}

.aciklama-box-modern p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 17px;
}

.timeline-modern {
    margin-top: 40px;
}

.timeline-header-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
}

.timeline-title-icon {
    font-size: 32px;
}

.timeline-header-modern h4 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
}

.timeline-items-modern {
    position: relative;
    padding-left: 50px;
}

.timeline-items-modern::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-radius: 4px;
}

.timeline-item-modern {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot-modern {
    position: absolute;
    left: -38px;
    top: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-green);
    border: 5px solid var(--white);
    box-shadow: 0 0 0 4px var(--primary-green), 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2;
}

.timeline-content-modern {
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.timeline-content-modern:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.timeline-header-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-header-item strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
}

.timeline-date {
    font-size: 15px;
    color: var(--gray);
    font-weight: 600;
}

.timeline-location-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 16px;
}

.location-icon {
    font-size: 20px;
}

.timeline-description {
    color: var(--gray);
    line-height: 1.7;
    font-size: 16px;
}

.main-footer {
    text-align: center;
    color: var(--white);
    padding: 30px 20px;
    font-size: 14px;
    position: relative;
    z-index: 20;
    margin-top: auto;
    width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        padding: 0 30px 30px;
    }

    .left-section {
        padding: 60px 40px;
        min-height: 400px;
    }

    .main-title {
        font-size: 48px;
    }

    .right-section {
        padding: 40px 20px;
        min-height: auto;
    }

    .query-card {
        max-width: 100%;
    }

    .kargo-wrapper {
        padding: 0 30px 30px;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 20px 30px;
        flex-direction: column;
        gap: 20px;
    }

    .logo-section {
        flex-direction: column;
        text-align: center;
    }

    .main-layout {
        padding: 0 20px 30px;
    }

    .left-section {
        padding: 40px 30px;
        text-align: center;
    }

    .main-title {
        font-size: 36px;
    }

    .main-subtitle {
        font-size: 16px;
    }

    .box-3d {
        font-size: 80px;
    }

    .query-card {
        padding: 40px 30px;
    }

    .card-title {
        font-size: 32px;
    }

    .kargo-wrapper {
        padding: 0 20px 30px;
    }

    .kargo-details-card {
        padding: 30px 20px;
    }

    .curve-divider {
        display: none;
    }

    .split-background::before {
        width: 100%;
    }

    .split-background::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 28px;
    }

    .card-title {
        font-size: 24px;
    }

    .query-input {
        font-size: 16px;
        padding: 18px 20px;
    }

    .query-button {
        font-size: 18px;
        padding: 18px 25px;
    }
}
