/* 
 * Store Requisition System - Custom CSS
 * Inspired by Mobile APK UI (Vibrant, Bold & High Accessibility)
 */

:root {
    --primary: #2196f3; /* Bright Blue */
    --accent: #ff9800;  /* Vibrant Orange */
    --success: #4caf50; /* Green */
    --error: #f44336;   /* Red */
    --bg-light: #f8f9fa;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.1);
    --font-main: 'Outfit', 'Inter', sans-serif;
    --font-size-base: 18px; /* High Accessibility for Aged Users */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main), sans-serif;
}

body {
    background-color: var(--bg-light);
    color: #333;
    font-size: var(--font-size-base);
    line-height: 1.6;
    padding-bottom: 80px; /* Safe space for bottom nav */
}

/* APK Header */
.apk-header {
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.apk-header h1 {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
}

/* Card Components */
.card {
    background: white;
    margin: 15px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    border-left: 6px solid var(--primary);
    transition: transform 0.2s;
}

.card:active {
    transform: scale(0.98);
}

.card h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #222;
    font-weight: 700;
}

/* APK Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-top: 10px;
    transition: opacity 0.3s;
}

.btn-primary { background: var(--primary); color: white; }
.btn-accent { background: var(--accent); color: white; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }

/* Bottom APK Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    z-index: 1001;
}

.nav-item {
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    flex: 1;
}

.nav-item i {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary);
}

/* MPIN Number Pad */
.num-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.num-key {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 0 #ddd;
}

.num-key:active {
    transform: translateY(4px);
    box-shadow: none;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

/* Tabular Requisition List */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.data-table th {
    background: #f1f1f1;
    padding: 12px;
    text-align: left;
    font-size: 15px;
    text-transform: uppercase;
}

.data-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 600;
}

/* Tracking Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 15px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    height: 100%;
    width: 2px;
    background: #ddd;
}

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

.timeline-item::after {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}
