/* Military Logistics Portal - Main Stylesheet */
/* Color Scheme: Military Green, Dark Grey, Black, Gold Accents */

:root {
    --military-green: #2d3b2d;
    --military-green-light: #4a5d4a;
    --military-green-dark: #1a251a;
    --dark-grey: #2c2c2c;
    --darker-grey: #1a1a1a;
    --black: #0d0d0d;
    --gold: #c9a227;
    --gold-light: #e5c158;
    --gold-dark: #9a7b1a;
    --white: #ffffff;
    --light-grey: #e0e0e0;
    --medium-grey: #888888;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    text-decoration: none;
    color: var(--gold);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-light);
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, var(--military-green-dark) 0%, var(--military-green) 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 3px solid var(--gold);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-brand-text {
    color: var(--white);
}

.navbar-brand-text h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar-brand-text span {
    font-size: 0.75rem;
    color: var(--light-grey);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-item a {
    display: block;
    padding: 1.5rem 1rem;
    color: var(--light-grey);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-item a:hover,
.nav-item a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    background-color: rgba(201, 162, 39, 0.1);
}

.navbar-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--black);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--black);
}

.btn-dark {
    background: linear-gradient(135deg, var(--dark-grey) 0%, var(--black) 100%);
    color: var(--white);
    border: 2px solid var(--military-green);
}

.btn-dark:hover {
    background: var(--military-green);
    border-color: var(--gold);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.85) 0%, rgba(45, 59, 45, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.hero h1 span {
    color: var(--gold);
}

.hero p {
    font-size: 1.2rem;
    color: var(--light-grey);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Tracking Search Bar */
.tracking-search {
    background: linear-gradient(135deg, var(--military-green) 0%, var(--military-green-dark) 100%);
    padding: 2rem;
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
}

.tracking-search-container {
    max-width: 800px;
    margin: 0 auto;
}

.tracking-search h3 {
    text-align: center;
    color: var(--gold);
    margin-bottom: 1rem;
}

.tracking-form {
    display: flex;
    gap: 1rem;
}

.tracking-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid var(--gold-dark);
    background: var(--black);
    color: var(--white);
    border-radius: 4px;
    text-transform: uppercase;
}

.tracking-form input::placeholder {
    color: var(--medium-grey);
    text-transform: none;
}

.tracking-form input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.3);
}

/* Sections */
.section {
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--gold);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
}

.section-header p {
    color: var(--medium-grey);
    margin-top: 1.5rem;
}

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

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

.card {
    background: linear-gradient(135deg, var(--dark-grey) 0%, var(--darker-grey) 100%);
    border: 1px solid var(--military-green);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.2);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    color: var(--gold);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.card-content p {
    color: var(--light-grey);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--military-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 2px solid var(--gold);
}

.card-icon i {
    font-size: 1.5rem;
    color: var(--gold);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--military-green-dark) 0%, var(--military-green) 100%);
    padding: 4rem 2rem;
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light-grey);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    background: var(--dark-grey);
    border-radius: 8px;
    border: 1px solid var(--military-green);
}

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

thead {
    background: var(--military-green);
}

th {
    padding: 1rem;
    text-align: left;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--gold);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--military-green);
    color: var(--light-grey);
}

tbody tr:hover {
    background: rgba(201, 162, 39, 0.05);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-received { background: var(--info); color: var(--white); }
.status-clearance { background: var(--warning); color: var(--black); }
.status-dispatched { background: var(--success); color: var(--white); }
.status-transit { background: #6f42c1; color: var(--white); }
.status-processing { background: #fd7e14; color: var(--white); }
.status-arrived { background: #20c997; color: var(--white); }
.status-delivered { background: var(--success); color: var(--white); }

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--military-green);
    background: var(--black);
    color: var(--white);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Login/Register Forms */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--black) 0%, var(--military-green-dark) 100%);
}

.auth-card {
    background: linear-gradient(135deg, var(--dark-grey) 0%, var(--darker-grey) 100%);
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-card h2 {
    text-align: center;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.auth-card p {
    text-align: center;
    color: var(--medium-grey);
    margin-bottom: 2rem;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    height: 80px;
}

/* Tracking Results */
.tracking-result {
    background: var(--dark-grey);
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--military-green);
}

.tracking-number {
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 700;
}

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

.tracking-info-item {
    background: var(--black);
    padding: 1rem;
    border-radius: 4px;
    border-left: 3px solid var(--gold);
}

.tracking-info-item label {
    display: block;
    color: var(--medium-grey);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.tracking-info-item span {
    color: var(--white);
    font-weight: 600;
}

/* Progress Bar */
.progress-container {
    margin: 2rem 0;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--military-green);
    z-index: 1;
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 0;
    height: 4px;
    background: var(--gold);
    z-index: 2;
    transition: width 0.5s ease;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    flex: 1;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--military-green);
    border: 3px solid var(--military-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--medium-grey);
    transition: all 0.3s ease;
}

.progress-step.active .step-circle,
.progress-step.completed .step-circle {
    background: var(--gold);
    border-color: var(--gold-light);
    color: var(--black);
}

.step-label {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--medium-grey);
    text-align: center;
    text-transform: uppercase;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: var(--gold);
    font-weight: 600;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--military-green);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateX(-5px);
}

.timeline-date {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
}

.timeline-content {
    background: var(--black);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    border-left: 3px solid var(--gold);
}

.timeline-content h4 {
    color: var(--white);
    margin-bottom: 0.25rem;
}

.timeline-content p {
    color: var(--medium-grey);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--black);
    border-top: 3px solid var(--gold);
    padding: 3rem 2rem 1rem;
}

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

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

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

.footer-section ul li a {
    color: var(--medium-grey);
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: var(--gold);
}

.footer-section p {
    color: var(--medium-grey);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--military-green);
}

.footer-bottom p {
    color: var(--medium-grey);
    font-size: 0.85rem;
}

.footer-bottom .security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

/* Map Container */
.map-container {
    background: var(--black);
    border: 2px solid var(--military-green);
    border-radius: 8px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-placeholder {
    text-align: center;
    color: var(--medium-grey);
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 80px);
}

.dashboard-sidebar {
    background: var(--military-green-dark);
    border-right: 2px solid var(--gold);
    padding: 2rem 0;
}

.dashboard-sidebar ul {
    list-style: none;
}

.dashboard-sidebar li a {
    display: block;
    padding: 1rem 2rem;
    color: var(--light-grey);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.dashboard-sidebar li a:hover,
.dashboard-sidebar li a.active {
    background: rgba(201, 162, 39, 0.1);
    color: var(--gold);
    border-left-color: var(--gold);
}

.dashboard-main {
    padding: 2rem;
    background: var(--black);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--military-green);
}

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

.dashboard-card {
    background: linear-gradient(135deg, var(--dark-grey) 0%, var(--darker-grey) 100%);
    border: 1px solid var(--military-green);
    border-radius: 8px;
    padding: 1.5rem;
}

.dashboard-card h4 {
    color: var(--medium-grey);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.dashboard-card .value {
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item a {
        padding: 1rem;
        font-size: 0.75rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .tracking-form {
        flex-direction: column;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        display: none;
    }
    
    .progress-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-bar::before {
        display: none;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.bg-dark { background: var(--dark-grey); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
/* MOBILE MENU */

.menu-toggle{
display:none;
font-size:24px;
background:none;
border:none;
color:#fff;
cursor:pointer;
}

/* Mobile layout */

@media (max-width: 768px){

.menu-toggle{
display:block;
}

.navbar-nav{
position:absolute;
top:70px;
left:0;
width:100%;
background:#1a1a1a;
flex-direction:column;
display:none;
padding:20px 0;
}

.navbar-nav.active{
display:flex;
}

.navbar-nav li{
text-align:center;
padding:10px 0;
}

}