/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #ff6b6b;
    --primary-dark: #ee5253;
    --secondary-color: #feca57;
    --success-color: #1dd1a1;
    --dark-text: #2f3542;
    --light-bg: #f5f6fa;
    --white: #ffffff;
    --border-color: #dfe4ea;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: #ced6e0;
    border-radius: 10px;
}

/* Utility / App Shell */
.app-header {
    background: var(--white);
    padding: 15px 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* POS Layout */
.pos-container {
    height: calc(100vh - 75px);
    overflow: hidden;
}

.products-section {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
}

.cart-section {
    height: 100%;
    background: var(--white);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.02);
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.product-card:active {
    transform: scale(0.95);
}

.product-img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: #f1f2f6;
    padding: 10px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-text);
}

.product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Category Filters */
.category-pills {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.category-pills::-webkit-scrollbar {
    display: none;
}
.category-pill {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.category-pill.active, .category-pill:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

/* Cart Styles */
.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafbfc;
}

.cart-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.cart-item-price {
    font-size: 0.9rem;
    color: #747d8c;
}

.qty-control {
    display: flex;
    align-items: center;
    background: var(--light-bg);
    border-radius: 8px;
    padding: 2px;
}

.qty-btn {
    background: var(--white);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: var(--dark-text);
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--border-color);
}

.qty-input {
    width: 35px;
    text-align: center;
    background: transparent;
    border: none;
    font-weight: 600;
    pointer-events: none;
}

.remove-btn {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.remove-btn:hover {
    background: #ff4757;
    color: var(--white);
}

.cart-footer {
    padding: 20px;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.03);
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5);
}

.checkout-btn:active {
    transform: translateY(0);
}

/* Login Page Specific */
.login-body {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.login-card {
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.login-btn {
    border-radius: var(--radius-md);
    background: var(--primary-color);
    border: none;
    transition: all 0.3s;
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Search Bar */
.search-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a4b0be;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--white);
    font-family: inherit;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

#dynamic-content {
    padding-bottom: 60px; /* Footer එක උඩින් content එක වැහෙන්නේ නැති වෙන්න */
}

footer a:hover {
    text-decoration: underline !important;
    transition: 0.3s;
}