/* Base Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #1abc9c;
    --dark-color: #34495e;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --black: #333333;
    --gray: #95a5a6;
    --light-gray: #f5f5f5;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--light-gray);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--black);
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
    text-decoration: none;
    color: var(--white);
}

.btn-secondary {
    background-color: var(--gray);
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}

/* Alert Styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.tracking-form {
    max-width: 600px;
    margin: 0 auto 30px;
}

.tracking-form .form-group {
    display: flex;
    align-items: center;
}

.tracking-form .form-group input {
    flex: 1;
    margin-right: 10px;
}

/* Login Styles */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-color);
}

/* Dashboard Styles */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.stat-card h3 {
    color: var(--gray);
    font-size: 16px;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
}

table tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
}

.status-badge.processing {
    background-color: var(--info-color);
}

.status-badge.in-transit {
    background-color: var(--primary-color);
}

.status-badge.out-for-delivery {
    background-color: var(--warning-color);
}

.status-badge.delivered {
    background-color: var(--secondary-color);
}

.status-badge.on-hold {
    background-color: var(--gray);
}

.status-badge.returned {
    background-color: var(--danger-color);
}

/* Shipment Form Styles */
.shipment-form {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Timeline Styles */
.status-timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-status {
    position: absolute;
    left: -40px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color:;
    font-size: 10px;
    font-weight: bold;
}

.timeline-content {
    background-color: var(--black);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    color: white;
}

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }
}

/* Current Status Styles */
.current-status {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.current-status p {
    margin-bottom: 10px;
}

.current-status p:last-child {
    margin-bottom: 0;
}

/* Shipment Details */
.shipment-details {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.details-grid h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.details-grid p {
    margin-bottom: 8px;
}

/* Item Image */
.item-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Map Container */
.map-container {
    margin-top: 30px;
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .tracking-form .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tracking-form .form-group input {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .tracking-form .form-group button {
        width: 100%;
    }






/* Modern Timeline Styles */
.modern-timeline {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.timeline-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.timeline-container {
    position: relative;
    padding-left: 30px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    height: 100%;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
}

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #3498db;
}

.timeline-content {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.status-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 16px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-date {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.timeline-body {
    font-size: 0.95rem;
}

.timeline-row {
    display: flex;
    margin-bottom: 8px;
}

.timeline-label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 70px;
}

.timeline-text {
    color: #34495e;
    flex: 1;
}

/* Status Colors */
.timeline-item.processing .timeline-marker,
.timeline-item.processing .status-badge {
    background: red;
    box-shadow: 0 0 0 2px #3498db;
}

.timeline-item.in-transit .timeline-marker,
.timeline-item.in-transit .status-badge {
    background: #2980b9;
    box-shadow: 0 0 0 2px #2980b9;
}

.timeline-item.out-for-delivery .timeline-marker,
.timeline-item.out-for-delivery .status-badge {
    background: #f39c12;
    box-shadow: 0 0 0 2px #f39c12;
}

.timeline-item.delivered .timeline-marker,
.timeline-item.delivered .status-badge {
    background: #2ecc71;
    box-shadow: 0 0 0 2px #2ecc71;
}

.timeline-item.on-hold .timeline-marker,
.timeline-item.on-hold .status-badge {
    background: #95a5a6;
    box-shadow: 0 0 0 2px #95a5a6;
}

.timeline-item.returned .timeline-marker,
.timeline-item.returned .status-badge {
    background: #e74c3c;
    box-shadow: 0 0 0 2px #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .timeline-date {
        font-size: 0.8rem;
    }
    
    .timeline-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .timeline-label {
        min-width: auto;
    }
}