/* dashboard.css */

/* =========================
   Root Variables
========================= */
:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --bg-glass: rgba(255,255,255,0.1);
    --text-light: #38383aff;
    --text-dark: #1f2937;
    --card-bg: rgba(255,255,255,0.85);
}

/* =========================
   Reset & Typography
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}
body {
    background: url('/digital_pos/images/business-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-dark);
    min-height: 100vh;
}

/* =========================
   Content Wrapper
========================= */
.content {
    margin-left: 240px; /* sidebar width */
    padding: 30px;
    margin-top: 100px; /* header height */
    transition: all 0.3s ease;
}

/* =========================
   Headings
========================= */
h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================
   Filters / Form Elements
========================= */
.filter-form {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-form label {
    font-weight: 600;
    color: var(--text-light);
}
.filter-form select {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: var(--text-light);
    font-size: 14px;
    transition: background 0.3s ease;
}
.filter-form select:hover {
    background: rgba(255,255,255,0.25);
}
.filter-form button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
}
.filter-form button:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

/* =========================
   Summary Cards
========================= */
.summary {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.summary-card {
    flex: 1;
    min-width: 260px;
    background: var(--card-bg);
    padding: 22px;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.summary-card h3 {
    margin: 12px 0;
    color: var(--primary-color);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.summary-card p {
    font-size: 26px;
    font-weight: bold;
    color: var(--text-dark);
}

/* =========================
   Comparison Cards
========================= */
.comparison-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}
.comparison-card {
    flex: 1;
    min-width: 260px;
    background: var(--card-bg);
    padding: 18px 22px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.comparison-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.comparison-card h4 {
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 17px;
}
.comparison-card p {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-dark);
}

/* =========================
   Chart Cards
========================= */
.charts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.chart-card {
    flex: 1;
    min-width: 320px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.chart-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}
.chart-card h3 {
    margin-bottom: 14px;
    color: var(--text-light);
}
.chart-card canvas {
    width: 100% !important;
    height: 360px !important;
    background: transparent;
}

/* =========================
   Responsive
========================= */
@media(max-width:768px){
    .content { margin-left:0; padding:20px; }
    .charts { flex-direction: column; }
}
/* tables.css */

/* =========================
   Root Colors
========================= */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --background: #0f172a;
    --card-bg: #1e293b;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
}

/* =========================
   Body & Background
========================= */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: var(--background) url('../../images/business-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-light);
    min-height: 100vh;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(3px);
    z-index: -1;
}

/* =========================
   Content Wrapper
========================= */
.content {
    margin: 80px auto 40px auto;
    max-width: 1850px;
    width: 95%;
    padding: 25px 0;
}

/* =========================
   Headings
========================= */
h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
}

/* =========================
   Controls / Filters / Buttons
========================= */
.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    background: var(--card-bg);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
}
.controls form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-grow: 1;
}
select, input[type="text"], button {
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    background: #334155;
    color: var(--text-light);
    font-size: 14px;
    box-shadow: inset 0 0 3px rgba(255,255,255,0.05);
}
input[type="text"]::placeholder {
    color: var(--text-muted);
}

button.primary {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
button.primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.6);
}

button.export {
    background: var(--success);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}
button.bulk {
    background: var(--danger);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* =========================
   Tables
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 14px rgba(0,0,0,0.35);
}
th, td {
    padding: 12px 11.5px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.95rem;
    vertical-align: middle;
}
th {
    background: var(--primary-dark);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
tr:hover {
    background: rgba(37, 99, 235, 0.1);
}

/* Stock & Alerts */
.low-stock-row { background: rgba(245, 158, 11, 0.15); }
.out-stock-row { background: rgba(239, 68, 68, 0.15); }
.badge {
    margin-left: 5px;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 4px;
    color: #fff;
}
.badge-loss { background: #b91c1c; }
.badge-low, .badge-out { background: var(--warning); }

/* Actions */
.actions a {
    margin-right: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}
.actions a.edit:hover { color: #60a5fa; }
.actions a.delete { color: var(--danger); }
.actions a.delete:hover { color: #f87171; }

/* =========================
   Pagination
========================= */
.pagination {
    margin-top: 25px;
    text-align: center;
}
.pagination a {
    background: var(--primary);
    color: white;
    padding: 8px 14px;
    margin: 2px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}
.pagination a.active {
    background: var(--primary-dark);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}
.pagination a:hover {
    background: var(--primary-dark);
}

/* =========================
   Responsive
========================= */
@media(max-width:1200px) {
    .content { padding: 15px 0; }
}
@media(max-width:768px) {
    .controls { flex-direction: column; }
    table, thead, tbody, th, td, tr { display: block; font-size: 13px; }
    td::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        color: var(--primary);
        margin-bottom: 5px;
    }
    td, th { padding: 8px; }
    .actions a { display: inline-block; margin-bottom: 5px; }
}
/* forms.css */

/* =========================
   Root Colors & Variables
========================= */
:root {
    --primary-color: #2563eb;
    --accent-color: #00e0ff;
    --bg-overlay: rgba(15, 23, 42, 0.85);
    --text-light: #e5e7eb;
    --header-height: 70px;
    --footer-height: 50px;
}

/* =========================
   Body & Background
========================= */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: url('../../images/business-bg.jpg') no-repeat center center fixed,
                linear-gradient(135deg, #0b0f19, #1e2746);
    background-size: cover;
    color: var(--text-light);
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: -1;
}

/* =========================
   Container & Card
========================= */
.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    padding: 40px 20px;
}

.card {
    background: var(--bg-overlay);
    border-radius: 20px;
    padding: 40px 50px;
    width: 95%;
    max-width: 700px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    transition: 0.3s;
}

/* =========================
   Headings
========================= */
h2 {
    text-align: center;
    color: #fff;
    text-shadow: 0 0 8px var(--accent-color);
    margin-bottom: 25px;
}

/* =========================
   Labels & Inputs
========================= */
label {
    font-weight: 600;
    color: #d1d5db;
    display: block;
    margin-bottom: 6px;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: #fff;
    margin-bottom: 18px;
    font-size: 15px;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 8px var(--accent-color);
    background: rgba(255,255,255,0.08);
}

/* =========================
   Submit Button
========================= */
.submit-btn {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 30px;
    padding: 14px 0;
    width: 100%;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0,224,255,0.6);
}

/* =========================
   Error Messages
========================= */
.errors {
    background: rgba(239,68,68,0.2);
    border-left: 4px solid #ef4444;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 600px) {
    .card {
        padding: 25px 20px;
    }
}
