/* -------------------------------------------------------------------------- */
/* Kenya POS System Styles                                                    */
/* Author: Mogitech Global Ltd                                               */
/* -------------------------------------------------------------------------- */

/* Import Google Font (Inter is professional and modern) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
    --primary-color: #ef4444; /* Bright Red/Kenyan Flag Red */
    --secondary-color: #10b981; /* Green/Growth */
    --accent-color: #f59e0b; /* Gold/Yellow */
    --background-light: #f9fafb;
    --card-background: #ffffff;
    --text-color-dark: #1f2937;
    --text-color-light: #6b7280;
    --border-color: #e5e7eb;
    --pos-bg: #f3f4f6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-light);
    color: var(--text-color-dark);
    line-height: 1.6;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    margin-top: 80px; /* Space for fixed header */
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--card-background);
    color: var(--text-color-dark);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links a {
    color: var(--text-color-light);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
}

.nav-links .active {
    background-color: var(--primary-color);
    color: white;
}

/* --- Buttons --- */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #dc2626; /* Darker red */
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #059669; /* Darker green */
}

/* --- Cards --- */
.card {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

/* --- Forms --- */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* --- Tables --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #f3f4f6;
    color: var(--text-color-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.data-table tr:hover {
    background-color: #f9f9fb;
}

/* --- POS Layout Specifics (Will be used in pos_terminal.php) --- */
.pos-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    min-height: 85vh;
    padding: 20px;
    background-color: var(--pos-bg);
}

.pos-search, .pos-cart {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .pos-layout {
        grid-template-columns: 1fr;
    }
    .nav {
        flex-direction: column;
    }
    .nav-links {
        margin-top: 10px;
    }
}
