/* ================= Reset & Base ================= */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f6f9;
}

body {
    font-size: 10px; /* set global font size to 11px or 12px */
    font-family: "Segoe UI", Roboto, Arial, sans-serif; /* keep your font consistent */
}
/* ================= Header ================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: linear-gradient(135deg, #6C5CE7, #00BFA6);
    color: white;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left img {
    max-width: 80px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.header-left img:hover {
    transform: scale(1.05);
}

.header-left span {
    font-weight: 600;
    font-size: 1.2rem;
}

.header-right {
    font-weight: 600;
    font-size: 1rem;
}

/* Hamburger in header */
/* Hamburger in header */
.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hamburger-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hamburger-header span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animate to X when sidebar is collapsed */
.sidebar.collapsed ~ header .hamburger-header span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sidebar.collapsed ~ header .hamburger-header span:nth-child(2) {
    opacity: 0;
}

.sidebar.collapsed ~ header .hamburger-header span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================= Sidebar ================= */
.sidebar {
    width: 220px;
    background: linear-gradient(160deg, #6C5CE7, #00BFA6);
    color: white;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px 15px;
    overflow-y: auto;
    transition: all 0.3s ease;
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* collapse button at bottom */
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    padding: 12px 15px;
    text-decoration: none;
    margin-bottom: 12px;
    border-radius: 10px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.sidebar a i {
    width: 20px;
    min-width: 20px;
}

.sidebar a:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

/* Sidebar header */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.sidebar.collapsed .menu-text {
    display: none;
}

/* ================= Collapse button ================= */
.toggle-btn {
    cursor: pointer;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: auto;
}

.toggle-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

/* ================= Main content ================= */
.main {
    margin-left: 220px;
    padding: 60px 40px;
    transition: all 0.3s ease;
    min-height: 100vh;
    background: #f4f6f9;
}

.main.collapsed {
    margin-left: 60px;
}

.main h2, .main p {
    text-align: center;
    animation: fadeIn 1s ease forwards;
}

.main img {
    display: block;
    margin: 30px auto;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.main img:hover {
    transform: scale(1.03);
}

/* ================= Animations ================= */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Scrollbar styling for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

/* ================= Polished Main Buttons ================= */
.main-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
}

.main-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #333;
    text-decoration: none;
    padding: 25px 15px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-align: center;
}

.main-btn .btn-icon {
    font-size: 2rem;
    color: #6C5CE7;
}

.main-btn .btn-text {
    font-size: 1rem;
    font-weight: 600;
}

.main-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #6C5CE7, #00BFA6);
    color: #fff;
}

.main-btn:hover .btn-icon {
    color: #fff;
}

/* =================================
TRACK REQUEST PAGE
================================= */

.container{
width:850px;
margin:40px auto;
background:white;
padding:30px;
border-radius:12px;
box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

.error{
color:red;
}

.actions{
margin-top:20px;
display:flex;
gap:10px;
}

.rejection-box{
background:#ffe6e6;
border-left:6px solid red;
padding:15px;
margin-top:20px;
color:#900;
font-weight:bold;
}


/* =================================
/* =================================
TABLE STYLE
================================= */

table{
border-collapse:collapse;
width:100%;
margin-top:20px;
}

th, td{
border:1px solid #ddd;
padding:10px;
text-align:center;   /* centers all text in the table */
}

th{
background:#f4f4f4;
}
/* Track Request Button */

.track-btn{
background:#007bff;
color:white;
border:none;
padding:10px 20px;
font-size:15px;
border-radius:5px;
cursor:pointer;
transition:0.3s;
}

.track-btn:hover{
background:#0056b3;
}

.track-btn:active{
transform:scale(0.98);
}

.header-right{
display:flex;
align-items:center;
gap:15px;   /* creates space between welcome text and button */
}

.home-btn{
background:#007bff;
color:white;
padding:6px 14px;
text-decoration:none;
border-radius:4px;
font-size:14px;
transition:0.3s;
}

.home-btn:hover{
background:#0056b3;
}

/* ================= FOOTER ================= */
footer {
    width: 100%;
    background: linear-gradient(90deg, #6C5CE7, #00BFA6); /* the gradient */
    color: white;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    flex-shrink: 0; /* so it doesn't shrink */
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

/* Sidebar height limited to viewport minus footer */
.sidebar {
    width:220px;
    background: linear-gradient(160deg,#6C5CE7,#00BFA6);
    color:white;
    position:fixed;      /* fixed on screen */
    top:0;
    left:0;
    padding:20px 15px;
    overflow-y:auto;     /* scroll if needed */
    transition:all 0.3s ease;
    box-shadow:2px 0 15px rgba(0,0,0,0.1);
    z-index:50;          /* below footer */
}

/* When collapsed */
.sidebar.collapsed {
    width: 60px;
}
.sidebar a:last-child{
    margin-bottom:60px; /* leave extra space above footer */
}

/* ---------------- Container ---------------- */
.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
    text-align: center;
}

/* ---------------- Form ---------------- */
form {
    margin-bottom: 30px;
}

form small {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #555;
}

input[type="text"] {
    width: 60%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
}

.track-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    margin: 5px;
}

.track-btn:hover {
    background: #0056b3;
}

/* ---------------- Error ---------------- */
.error-message {
    color: red;
    font-weight: bold;
    margin-bottom: 15px;
}

/* ---------------- Table ---------------- */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    text-align: center;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px 8px;
}

th {
    background: #f4f4f4;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

/* ---------------- Status Colors ---------------- */
.status-current { font-weight: bold; color: #1a73e8; }
.status-payment-confirmed { color: #28a745; font-weight: bold; }
.status-rejected { color: #dc3545; font-weight: bold; }
.status-pending { color: #fd7e14; font-weight: bold; }

/* ---------------- Rejection Box ---------------- */
.rejection-box{
    background:#ffe6e6;
    border-left:6px solid red;
    padding:15px;
    margin-top:20px;
    color:#900;
    font-weight:bold;
    text-align: left;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 600px) {
    input[type="text"] {
        width: 90%;
    }
    .track-btn {
        width: 90%;
    }
}

/* ================= Footer ================= */
footer {
    width: 100%;
    background: linear-gradient(90deg, #6C5CE7, #00BFA6); /* keep your gradient */
    color: white;
    text-align: center;       /* center all text */
    padding: 20px 0;          /* good vertical spacing */
    font-size: 16px;          /* readable font size */
    font-weight: 500;
    line-height: 1.5;         /* spacing if multi-line */
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    display: block;
}

/* For footer content split into two lines */
footer .footer-left,
footer .footer-right {
    display: block;
    margin: 5px 0;            /* spacing between lines */
}

footer .footer-left {
    font-size: 16px;
}

footer .footer-right {
    font-size: 15px;
    font-weight: 400;
}

.centered-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #fdfdfd;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* two equal columns */
    gap: 20px 40px; /* row gap, column gap */
}

.form-grid-full {
    grid-column: 1 / -1; /* span both columns */
}

.centered-form input[type="text"],
.centered-form input[type="email"],
.centered-form input[type="date"],
.centered-form select,
.centered-form input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    text-align: left; /* ensures typing starts from left */
}
.centered-form input[type="checkbox"] {
    width: auto;
}
.centered-form button.track-btn {
    padding: 10px 18px;
    font-size: 15px;
    border: none;
    border-radius: 5px;
    background: #008080; /* army green */
    color: white;
    cursor: pointer;
}
.centered-form button.track-btn:hover {
    background: #006666;
}
.centered-form input[type="checkbox"] {
    transform: scale(1.1);
    margin-right: 8px;
}

/* ================= Transaction reference inline ================= */
.form-grid-transaction {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: flex-end;
}

/* ================= Checkboxes ================= */
.form-checkboxes {
    display: flex;
    flex-direction: column; /* stack items vertically */
}

.form-checkboxes label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
}

.form-checkboxes input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px; /* small vertical alignment */
}
.success-box{
    max-width:500px;
    margin:60px auto;
    padding:25px;
    background:#fff;
    border-radius:8px;
    text-align:center;
    box-shadow:0 4px 10px rgba(0,0,0,0.08);
}

.tracking-code{
    font-size:22px;
    font-weight:bold;
    background:#f4f6f9;
    padding:10px;
    border-radius:6px;
    margin:12px 0 18px 0;
    letter-spacing:2px;
}

.success-actions{
    margin-top:15px;
}

.cancel-btn{
    background:#6c757d;
    color:white;
    border:none;
    padding:10px 16px;
    border-radius:5px;
    margin-left:8px;
    cursor:pointer;
}


.success-card{
    text-align:center;
    padding:40px;
}

.success-icon{
    width:80px;
    height:80px;
    background:#22c55e;
    color:white;
    font-size:45px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 20px auto;
}

.tracking-code{
    font-size:22px;
    font-weight:bold;
    background:#e8f0fe;
    color:#1a3faa;
    padding:12px 25px;
    border-radius:30px;
    display:inline-block;
    margin:15px 0;
}

.success-actions{
    margin-top:25px;
}

.success-actions button{
    margin:5px;
}