body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-form-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-form-container h1 {
    font-size: 24px;
    color: #1c1e21;
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.btn {
    width: 100%;
    padding: 12px;
    background-color: #1877f2;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #166fe5;
}

.error-message {
    color: #fa383e;
    background-color: #ffebe6;
    border: 1px solid #fa383e;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}

/* Dashboard Styles */
.header {
    background-color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.welcome-text h2 {
    margin: 0;
    font-size: 22px;
}
.welcome-text p {
    margin: 0;
    color: #606770;
}

.logout-button {
    background-color: #e4e6eb;
    color: #000;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s;
}
.logout-button:hover {
    background-color: #d8dadf;
}

.content {
    padding: 0 30px;
    max-width: 1600px;
    margin: 0 auto;
}

.content h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.table-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #dddfe2;
    white-space: nowrap;
}

tr:last-child td {
    border-bottom: none;
}

tr.is-emri-row:hover {
    background-color: #f5f6f7;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}
.status-badge.status-beklemede { background-color: #ffc107; color: #333; }
.status-badge.status-uretimde { background-color: #17a2b8; color: #fff; }
.status-badge.status-tamamlandi { background-color: #28a745; color: #fff; }

.info-container, .error-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: #606770;
}
.error-container {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Production Route Timeline Styles */
.route-timeline-row td {
    padding: 15px 25px;
    background-color: #f8f9fa;
}

.route-timeline {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.route-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-basis: 0;
    flex-grow: 1;
    position: relative;
    text-align: center;
}

.route-step .step-name {
    font-size: 12px;
    font-weight: 500;
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 8px;
    width: 90%;
    white-space: normal;
    min-height: 30px; /* Allow for 2 lines of text */
}

.route-step .step-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: #fff;
    z-index: 1;
}

/* Connecting line */
.route-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 48px; /* Adjusted for circle position */
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #ccc;
    z-index: 0;
}

/* Step Statuses */
.route-step.status-completed .step-circle {
    background-color: #28a745;
    border-color: #28a745;
}
.route-step.status-completed .step-name {
    color: #212529;
}
.route-step.status-completed:not(:last-child)::after {
    background-color: #28a745;
}

.route-step.status-current .step-circle {
    background-color: #007bff;
    border-color: #007bff;
    transform: scale(1.3);
}
.route-step.status-current .step-name {
    background-color: #007bff;
    color: #fff;
    font-weight: 700;
}

.route-step.status-pending .step-circle {
    background-color: #e9ecef;
    border-color: #ced4da;
}
.route-step.status-pending .step-name {
    color: #6c757d;
}