/* GLOBAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f6fa;
    color: #333;
}

/* --------------------------
   LOGIN PAGE (login.html)
--------------------------- */

.login-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eef1f7;
}

.login-box {
    width: 350px;
    background: #fff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    text-align: center;
}

.login-box h2 {
    margin-bottom: 20px;
    font-size: 26px;
    color: #111;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    outline: none;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #0d6efd;
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

.login-box button:hover {
    background: #0b5ed7;
}

/* --------------------------
   ADMIN DASHBOARD (admin.html)
--------------------------- */

.admin-header {
    background: #0d6efd;
    padding: 18px;
    color: white;
    font-size: 22px;
    text-align: center;
    letter-spacing: 1px;
}

.admin-container {
    padding: 25px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.section-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* --------------------------
   FORMS (create & edit pages)
--------------------------- */

.form-container {
    max-width: 650px;
    margin: 40px auto;
}

.form-container input,
.form-container select,
.form-container textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.form-container button {
    width: 100%;
    padding: 12px;
    background: #198754;
    color: white;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.form-container button:hover {
    background: #157347;
}

/* --------------------------
   TABLE FOR PACKAGE LIST
--------------------------- */

.table-container {
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table thead {
    background: #0d6efd;
    color: white;
}

table th,
table td {
    padding: 14px;
    border-bottom: 1px solid #ddd;
}

table tr:hover {
    background: #eef3ff;
}

/* BUTTONS */
.btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.btn-view {
    background: #0d6efd;
    color: white;
}

.btn-edit {
    background: #ffc107;
    color: black;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn:hover {
    opacity: 0.9;
}

/* --------------------------
   PUBLIC TRACKING PAGE
--------------------------- */

.track-page {
    background: #f2f4fb;
    min-height: 100vh;
    padding: 40px 15px;
    font-family: 'Inter', Arial, sans-serif;
}

.track-wrapper {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.track-header h1 {
    font-size: 32px;
    margin-bottom: 6px;
}

.subtitle {
    color: #6c7485;
}

.mini-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    color: #6c7485;
}

.header-cta {
    border: none;
    background: #0d6efd;
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

.track-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

.primary-card {
    background: linear-gradient(135deg, #f4f6ff, #ffffff);
}

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

.card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.card-title {
    display: flex;
    gap: 15px;
    align-items: center;
}

.card-heading {
    font-weight: 600;
    font-size: 18px;
    color: #1f2943;
}

.input-with-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 16px;
    padding: 8px 12px;
}

.input-with-icon input {
    border: none;
    flex: 1;
    font-size: 16px;
    padding: 14px 8px;
    outline: none;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #edf0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.icon-button {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: none;
    background: #0047ff;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.cta-outline {
    border: none;
    background: #0047ff;
    color: #fff;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
}

.details-card h3 {
    margin-top: 24px;
    margin-bottom: 12px;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.timestamp {
    color: #6c7485;
    font-size: 14px;
    margin-top: 4px;
}

.status-pill {
    background: #e6f4ff;
    color: #0066ff;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
}

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

.label {
    font-size: 13px;
    color: #8a92a6;
}

.value {
    display: block;
    font-weight: 600;
    margin-top: 4px;
}

.timeline {
    list-style: none;
    margin-top: 10px;
}

.timeline li {
    padding: 12px 0;
    border-bottom: 1px solid #edf0f5;
    font-size: 15px;
}

.timeline li:last-child {
    border-bottom: none;
}

.error-text {
    color: #dc3545;
    margin-top: 8px;
}
