/* Add these styles to your existing CSS file */

/* Authentication Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
    padding: 20px;
}

.auth-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    padding: 30px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    margin-bottom: 10px;
    color: #333;
}

.auth-header p {
    color: #666;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.auth-form input:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}

.auth-form .btn-block {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links p {
    margin: 10px 0;
}

.auth-links a {
    color: #0056b3;
    text-decoration: none;
}

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

.required {
    color: #e74c3c;
}

.error-text {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}
/* 
 * Secured Courier Services - Main Stylesheet
 * This stylesheet contains all the styles for both the public and admin sections
 */

/* ===== GENERAL 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;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin-bottom: 15px;
}

a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #003d7a;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background-color: #0056b3;
    color: #fff;
}

.btn-primary:hover {
    background-color: #003d7a;
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #545b62;
    color: #fff;
    text-decoration: none;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #bd2130;
    color: #fff;
    text-decoration: none;
}

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

.btn-text {
    background: none;
    color: #0056b3;
    padding: 10px 0;
}

.btn-text:hover {
    background: none;
    color: #003d7a;
    text-decoration: underline;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

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

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #0056b3;
    outline: none;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* ===== MESSAGES ===== */
.success-message,
.error-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    transition: opacity 0.5s;
}

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

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

/* ===== HEADER ===== */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 50px;
}

.logo h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #0056b3;
}

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

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover {
    color: #0056b3;
}

.main-nav a.active {
    color: #0056b3;
}

.main-nav a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0056b3;
}

/* ===== HERO SECTION ===== */
.hero {
    background-color: #0056b3;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.tracking-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.tracking-form button {
    padding: 15px 30px;
    border: none;
    border-radius: 0 4px 4px 0;
    background-color: #003d7a;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tracking-form button:hover {
    background-color: #002a56;
}

/* ===== TRACKING RESULTS ===== */
.tracking-results {
    padding: 40px 0;
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tracking-id {
    font-size: 18px;
}

.tracking-status {
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.tracking-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.package-info {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.package-image {
    margin-bottom: 20px;
    text-align: center;
}

.package-image img {
    max-height: 200px;
    border-radius: 4px;
}

.package-details h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.location-map {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.location-map h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.action-buttons {
    margin-top: 20px;
}

/* ===== TIMELINE ===== */
.tracking-history {
    margin-top: 30px;
}

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

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10px;
    width: 2px;
    background-color: #ddd;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: -30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #0056b3;
}

.timeline-date {
    font-weight: 500;
    margin-bottom: 5px;
}

.timeline-content {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.timeline-meta {
    margin-top: 10px;
    font-size: 12px;
    color: #6c757d;
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.status-badge.pending {
    background-color: #FFC107;
    color: #000;
}

.status-badge.processing {
    background-color: #2196F3;
}

.status-badge.dispatched {
    background-color: #3F51B5;
}

.status-badge.in {
    background-color: #00BCD4;
}

.status-badge.out {
    background-color: #009688;
}

.status-badge.delivered {
    background-color: #4CAF50;
}

.status-badge.failed {
    background-color: #FF5722;
}

.status-badge.returned {
    background-color: #795548;
}

.status-badge.cancelled {
    background-color: #F44336;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-info h3,
.footer-links h3 {
    color: #fff;
    margin-bottom: 15px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #ddd;
}

/* ===== ADMIN PANEL STYLES ===== */
.admin-panel {
    background-color: #f8f9fa;
}

.admin-header {
    background-color: #343a40;
    color: #fff;
    padding: 15px 0;
}

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

.admin-logo a {
    color: #fff;
    text-decoration: none;
}

.admin-logo h1 {
    margin: 0;
    font-size: 20px;
}

.admin-logo h1 span {
    font-weight: 300;
    opacity: 0.8;
}

.admin-user-menu {
    display: flex;
    align-items: center;
}

.admin-user {
    margin-right: 20px;
    text-align: right;
}

.admin-username {
    display: block;
    font-weight: 500;
}

.admin-role {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.admin-nav {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.admin-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-menu li {
    margin-right: 5px;
}

.admin-menu a {
    display: block;
    padding: 15px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.admin-menu a:hover {
    background-color: #f8f9fa;
    color: #0056b3;
}

.admin-menu a.active {
    background-color: #f8f9fa;
    color: #0056b3;
    border-bottom: 2px solid #0056b3;
}

.admin-footer {
    background-color: #343a40;
    color: #fff;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.admin-footer p {
    margin: 5px 0;
    font-size: 14px;
}

/* ===== DASHBOARD STYLES ===== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.dashboard-sections {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.dashboard-section {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.dashboard-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.view-all {
    text-align: right;
    margin-top: 15px;
}

.activity-list {
    max-height: 500px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.activity-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 15px;
    background-color: #e9ecef;
    position: relative;
}

.activity-icon:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: #6c757d;
    border-radius: 50%;
}

.activity-icon.login:before {
    background-color: #28a745;
}

.activity-icon.logout:before {
    background-color: #dc3545;
}

.activity-icon.create:before {
    background-color: #17a2b8;
}

.activity-icon.update:before {
    background-color: #ffc107;
}

.activity-icon.delete:before {
    background-color: #dc3545;
}

.activity-details {
    flex: 1;
}

.activity-description {
    margin-bottom: 5px;
}

.activity-meta {
    font-size: 12px;
    color: #6c757d;
}

.activity-user {
    margin-right: 10px;
}

/* ===== TABLE STYLES ===== */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.data-table th a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.data-table th a:hover {
    color: #0056b3;
}

.sort-icon {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
}

.sort-icon.asc {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #333;
}

.sort-icon.desc {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #333;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.data-table .text-center {
    text-align: center;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination-link {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border-radius: 4px;
    background-color: #fff;
    color: #0056b3;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination-link:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

.pagination-link.active {
    background-color: #0056b3;
    color: #fff;
}

.page-summary {
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
}

/* ===== FILTER SECTION ===== */
.filter-section {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-form .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 150px;
}

/* ===== SHIPMENT DETAILS ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-actions {
    display: flex;
    gap: 10px;
}

.shipment-details {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.shipment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.shipment-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shipment-section {
    margin-bottom: 20px;
}

.shipment-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.shipment-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.shipment-image img {
    max-width: 100%;
    border-radius: 4px;
}

.no-image {
    height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #6c757d;
}

.shipment-details-list p {
    margin-bottom: 10px;
}

.shipment-notes {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    white-space: pre-line;
}

/* ===== LOGIN PAGE ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.login-form {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .site-header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
    
    .tracking-form {
        flex-direction: column;
    }
    
    .tracking-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .tracking-form button {
        border-radius: 4px;
    }
    
    .tracking-details {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .shipment-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}