/* =============================================
   Fast Delivery Platform - Unified Styles
   ============================================= */

/* =============================================
   GLOBAL STYLES
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* =============================================
   LANDING PAGE STYLES
   ============================================= */

/* Header */
header {
    background: #252525;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

.cta-button {
    background: white;
    color: #252525;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: #252525;
    color: white;
    padding: 120px 2rem 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: -250px;
    right: -250px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s 0.4s backwards;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 2px solid white;
}

.btn-primary {
    background: white;
    color: #252525;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* Features Section */
.features {
    padding: 80px 2rem;
    background: #f8f9fa;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #252525;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.feature-card p {
    color: #718096;
    line-height: 1.7;
}

/* How It Works */
.how-it-works {
    padding: 80px 2rem;
    background: white;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: #252525;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(37, 37, 37, 0.3);
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.step p {
    color: #718096;
    line-height: 1.6;
}

/* Benefits */
.benefits {
    padding: 80px 2rem;
    background: #252525;
    color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-icon {
    font-size: 2rem;
    min-width: 50px;
}

.benefit-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    opacity: 0.9;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 80px 2rem;
    background: #f8f9fa;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.cta-section p {
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 2rem;
}

.cta-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-form input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.cta-form input:focus {
    border-color: #252525;
}

.cta-form button {
    padding: 1rem 2.5rem;
    background: #252525;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.cta-form button:hover {
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #cbd5e0;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =============================================
   LOGIN & REGISTRATION PAGES
   ============================================= */

.login-container,
.registration-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
}

.registration-container {
    max-width: 500px;
}

.login-container .logo,
.registration-container .logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-img {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.login-container .logo h1,
.registration-container .logo h1 {
    font-size: 2rem;
    color: #252525;
    margin-bottom: 0.5rem;
}

.login-container .logo p,
.registration-container .logo p {
    color: #666;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.registration-container .form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
}

.required {
    color: #e53935;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #252525;
}

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

.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: #666;
    font-size: 0.85rem;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    min-width: 120px;
}

.radio-option input[type="radio"] {
    display: none;
    width: auto;
}

.radio-option label {
    display: block;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.radio-option input[type="radio"]:checked + label {
    background: #252525;
    color: white;
    border-color: #252525;
}

.radio-option label:hover {
    border-color: #252525;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #252525;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #404040;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #66bb6a;
}

.links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.links a {
    color: #252525;
    text-decoration: none;
    font-weight: 600;
}

.links a:hover {
    text-decoration: underline;
}

.back-home {
    text-align: center;
    margin-top: 1rem;
}

.back-home a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-home a:hover {
    text-decoration: underline;
}

/* Auth Pages Background */
body.auth-page {
    background: linear-gradient(135deg, #252525 0%, #404040 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* =============================================
   DASHBOARD STYLES (INDEX.PHP)
   ============================================= */

body.dashboard-page {
    background: #f5f5f5;
}

.dashboard-header {
    background: #252525;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-header h1 {
    font-size: 1.5rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo .logo-img {
    height: 50px;
    width: auto;
}

.header-logo span {
    font-size: 1.5rem;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logout-btn {
    background: white;
    color: #252525;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #f0f0f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-card h3 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: bold;
    color: #252525;
}

.section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.section h2 {
    margin-bottom: 1.5rem;
    color: #252525;
}

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

table thead {
    background: #f8f8f8;
}

table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #666;
}

table td {
    padding: 1rem;
    border-top: 1px solid #eee;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-created { background: #e3f2fd; color: #1976d2; }
.status-waiting_pickup { background: #fff3e0; color: #f57c00; }
.status-in_transit { background: #fff3e0; color: #f57c00; }
.status-delivered { background: #e8f5e9; color: #388e3c; }
.status-pending { background: #fce4ec; color: #c2185b; }
.status-in_progress { background: #fff9c4; color: #f9a825; }
.status-completed { background: #c8e6c9; color: #2e7d32; }
.status-cancelled { background: #ffebee; color: #c62828; }
.status-lost { background: #ffebee; color: #c62828; }
.status-returned { background: #e0e0e0; color: #616161; }

.action-btn {
    padding: 0.5rem 1rem;
    background: #252525;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: #404040;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.user-badge {
    background: #404040;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.85rem;
}

/* =============================================
   CREATE PARCEL PAGE
   ============================================= */

.header {
    background: #252525;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.back-btn {
    background: white;
    color: #252525;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
}

.form-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-card h2 {
    margin-bottom: 1.5rem;
    color: #252525;
    border-bottom: 2px solid #252525;
    padding-bottom: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.submit-section {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 5px;
    margin-top: 2rem;
}

.cost-display {
    text-align: center;
    margin-bottom: 1rem;
}

.cost-display .label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.cost-display .amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #252525;
}

.section-icon {
    display: inline-block;
    margin-right: 0.5rem;
}

/* =============================================
   TRACK PAGE STYLES
   ============================================= */

.track-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.track-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.track-number h2 {
    font-size: 1.8rem;
    color: #252525;
    margin-bottom: 0.5rem;
}

.track-status {
    margin-top: 0.5rem;
}

.track-qr {
    text-align: right;
}

.qr-code-display {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 2px dashed #252525;
    font-family: monospace;
    font-size: 0.9rem;
}

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

.track-detail {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.detail-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.detail-value {
    font-size: 1rem;
    color: #252525;
}

.track-comment {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    border-radius: 5px;
}

/* Addresses Timeline */
.addresses-timeline {
    position: relative;
}

.address-item {
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.address-marker {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-icon {
    font-size: 2rem;
}

.address-content {
    flex: 1;
    padding-bottom: 2rem;
}

.address-type {
    font-weight: 700;
    font-size: 1.1rem;
    color: #252525;
    margin-bottom: 0.5rem;
}

.address-full {
    color: #333;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.address-contact {
    color: #666;
    font-size: 0.9rem;
}

.address-connector {
    width: 3px;
    height: 30px;
    background: linear-gradient(to bottom, #252525, #e0e0e0);
    margin-left: 19px;
}

/* Delivery Chain Timeline */
.delivery-chain-timeline {
    position: relative;
}

.chain-step {
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.step-marker {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number-small {
    width: 50px;
    height: 50px;
    background: #252525;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(37, 37, 37, 0.3);
}

.step-content {
    flex: 1;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.step-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.step-couriers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.courier-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.courier-label {
    font-weight: 600;
    color: #666;
    min-width: 80px;
}

.courier-name {
    font-weight: 600;
    color: #252525;
}

.courier-phone {
    color: #666;
    font-size: 0.9rem;
}

.step-time {
    margin: 1rem 0;
    padding: 0.75rem;
    background: white;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #666;
}

.step-location {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: #e3f2fd;
    border-radius: 5px;
    font-size: 0.9rem;
    font-family: monospace;
}

.step-code {
    margin: 0.5rem 0;
    padding: 0.75rem;
    background: #fff3e0;
    border-radius: 5px;
    font-size: 0.9rem;
}

.step-code code {
    font-size: 1.1rem;
    font-weight: bold;
    color: #252525;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
}

.step-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.photo-item {
    text-align: center;
}

.photo-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    margin-bottom: 0.5rem;
}

.photo-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

.step-notes {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f0f0f0;
    border-left: 3px solid #252525;
    border-radius: 3px;
    font-style: italic;
}

.chain-connector {
    width: 3px;
    height: 20px;
    background: #252525;
    margin-left: 23px;
}

/* Payment Info */
.payment-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.payment-detail {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #252525;
}

.event-time {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: #666;
    font-family: monospace;
    min-width: 140px;
}

.event-content {
    flex: 1;
}

.event-type {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #252525;
}

.event-description {
    color: #666;
    line-height: 1.5;
}

/* =============================================
   QR CODE PAGE STYLES
   ============================================= */

.qr-success-card {
    text-align: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.qr-success-card h2 {
    color: #2e7d32;
    border: none;
    margin-bottom: 0.5rem;
}

.success-message {
    color: #1b5e20;
    font-size: 1.1rem;
}

.qr-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.qr-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.info-value {
    font-size: 1.1rem;
    color: #252525;
    font-weight: 600;
}

.tracking-number {
    font-family: monospace;
    background: #f0f0f0;
    padding: 0.5rem;
    border-radius: 5px;
}

.qr-addresses {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

.qr-address-item {
    margin-bottom: 1rem;
}

.address-label {
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #252525;
}

.address-text {
    color: #666;
    line-height: 1.6;
}

.qr-code-card {
    text-align: center;
}

.qr-instruction {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.qr-code-label {
    margin-top: 1rem;
    font-weight: 600;
    color: #252525;
}

.qr-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.qr-code-text {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.qr-text-code {
    display: block;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: white;
    border: 2px dashed #252525;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.receiver-contact {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #e3f2fd;
    border-radius: 8px;
    text-align: left;
}

.receiver-contact p {
    margin-bottom: 0.5rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.instruction-step {
    display: flex;
    gap: 1rem;
}

.instruction-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #252525;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.instruction-content h4 {
    margin-bottom: 0.5rem;
    color: #252525;
}

.instruction-content p {
    color: #666;
    line-height: 1.6;
}

.tracking-card {
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
}

.tracking-card h3 {
    margin-bottom: 0.5rem;
}

.tracking-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.action-btn.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* =============================================
   COURIER DASHBOARD STYLES
   ============================================= */

.quick-actions-section {
    margin-bottom: 2rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.quick-action-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.quick-action-card:hover {
    border-color: #252525;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.quick-action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.quick-action-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #252525;
    margin-bottom: 0.5rem;
}

.quick-action-desc {
    font-size: 0.9rem;
    color: #666;
}

.courier-parcels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.courier-parcel-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.courier-parcel-card:hover {
    border-color: #252525;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.parcel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.parcel-tracking {
    font-family: monospace;
}

.parcel-card-body {
    padding: 1.5rem;
}

.parcel-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.route-point {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.route-icon {
    font-size: 1.5rem;
}

.route-text {
    font-weight: 600;
    color: #252525;
}

.route-arrow {
    font-size: 1.5rem;
    color: #999;
}

.parcel-details-mini {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.detail-mini {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #666;
}

.detail-icon {
    font-size: 1.1rem;
}

.parcel-from-courier {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.85rem;
}

.parcel-card-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 2px solid #e0e0e0;
}

.parcel-card-actions .action-btn {
    flex: 1;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

/* =============================================
   QR SCANNER STYLES
   ============================================= */

.scan-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.scan-action-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.scan-action-btn:hover {
    border-color: #252525;
    transform: translateY(-3px);
}

.scan-action-btn.active {
    border-color: #252525;
    background: #252525;
}

.scan-action-btn.active .scan-action-icon,
.scan-action-btn.active .scan-action-title,
.scan-action-btn.active .scan-action-desc {
    color: white;
}

.scan-action-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.scan-action-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #252525;
}

.scan-action-desc {
    font-size: 0.9rem;
    color: #666;
}

.scanner-card {
    text-align: center;
}

#qr-reader {
    max-width: 500px;
    margin: 0 auto 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.scanner-status {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.scanner-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.instructions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.instruction-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.instruction-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.instruction-text {
    flex: 1;
    line-height: 1.6;
}

.instruction-text strong {
    color: #252525;
}

/* =============================================
   RECEIVER QR PAGE STYLES
   ============================================= */

.receiver-qr-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.receiver-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.receiver-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.receiver-address-info {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #252525;
}

.receiver-address-info h4 {
    margin-bottom: 0.75rem;
    color: #252525;
}

.receiver-address-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.qr-code-container-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0,0,0,0.15);
    margin: 2rem 0;
}

.qr-instructions-box {
    background: #fff9e6;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
    margin: 2rem 0;
}

.qr-instructions-box h4 {
    margin-bottom: 1rem;
    color: #252525;
}

.receiver-steps {
    margin-left: 1.5rem;
    line-height: 2;
}

.receiver-steps li {
    color: #666;
    margin-bottom: 0.5rem;
}

.info-card {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

.info-list {
    margin-left: 1.5rem;
    line-height: 1.8;
}

.info-list li {
    margin-bottom: 1rem;
    color: #666;
}

.info-list strong {
    color: #252525;
}

.contact-card {
    background: #e8f5e9;
    text-align: center;
}

.contact-info {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #666;
}

.contact-info strong {
    color: #252525;
}

/* =============================================
   TRANSFER PARCEL PAGE STYLES
   ============================================= */

.transfer-info-box {
    background: #fff9e6;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
    margin: 1.5rem 0;
}

.transfer-info-box ul {
    margin: 1rem 0 0 1.5rem;
    line-height: 1.8;
}

.transfer-info-box li {
    margin-bottom: 0.5rem;
}

.gps-status {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1.5rem 0;
    font-weight: 600;
}

.transfer-code-display {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
}

.transfer-code-big {
    font-size: 3rem;
    font-weight: 700;
    font-family: monospace;
    color: #252525;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 3px dashed #252525;
    margin: 1rem 0;
    letter-spacing: 0.5rem;
}

.transfer-code-hint {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta-form input {
        min-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    table th,
    table td {
        padding: 0.5rem;
    }
}