/*
Theme Name: Vitamin Sales Platform
Theme URI: https://example.com/vitamin-sales-platform/
Author: Vitamin Sales Platform
Author URI: https://example.com/
Description: A custom WordPress theme specifically designed for the Vitamin Sales Platform with custom login, POS interface, prescription management, and client portal.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vitamin-sales
Tags: custom-login, pos, prescription, client-portal, vitamins
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #388E3C;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #212121;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background-color: #4CAF50;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.site-title a {
    color: #fff;
}

.site-description {
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.8;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
}

.main-navigation li {
    margin-left: 1.5rem;
    position: relative;
}

.main-navigation a {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
}

.main-navigation a:hover {
    color: #E8F5E9;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content */
.site-content {
    padding: 2rem 0;
}

.content-area {
    width: 100%;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
    margin-top: 2rem;
}

.site-footer a {
    color: #A5D6A7;
}

.site-footer a:hover {
    color: #fff;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.footer-widget {
    flex: 1;
    min-width: 250px;
    padding: 0 15px;
    margin-bottom: 1.5rem;
}

.footer-widget h4 {
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

/* Buttons */
.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background-color: #388E3C;
}

.button.secondary {
    background-color: #757575;
}

.button.secondary:hover {
    background-color: #616161;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus,
select:focus {
    color: #111;
    border-color: #4CAF50;
    outline: none;
}

/* Custom Login Page */
.login-container {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    margin-bottom: 1.5rem;
}

.login-form .form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.login-form .remember-me {
    display: flex;
    align-items: center;
}

.login-form .remember-me input {
    margin-right: 0.5rem;
}

/* Dashboard */
.dashboard-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.dashboard-card {
    flex: 1;
    min-width: 300px;
    margin: 0 15px 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.dashboard-card h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

/* POS Interface */
.pos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.pos-products {
    flex: 2;
    min-width: 300px;
}

.pos-cart {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.product-image img {
    max-height: 100%;
    object-fit: contain;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.product-stock {
    font-size: 0.875rem;
    color: #757575;
    margin-bottom: 1rem;
}

/* Cart Items */
.cart-items {
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-size: 0.875rem;
    color: #757575;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.cart-item-quantity button {
    background: none;
    border: 1px solid #ddd;
    width: 24px;
    height: 24px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.cart-item-quantity span {
    margin: 0 0.5rem;
}

.cart-item-remove {
    color: #F44336;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    margin-left: 1rem;
}

.cart-totals {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cart-total-row.final {
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.checkout-button {
    width: 100%;
    padding: 0.75rem;
    margin-top: 1.5rem;
    font-size: 1.125rem;
}

/* Prescription Interface */
.prescription-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.prescription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.prescription-id {
    font-size: 1.25rem;
    font-weight: 500;
}

.prescription-date {
    color: #757575;
}

.prescription-client {
    margin-bottom: 2rem;
}

.prescription-client h3 {
    margin-bottom: 0.5rem;
}

.prescription-products {
    margin-bottom: 2rem;
}

.prescription-products h3 {
    margin-bottom: 1rem;
}

.prescription-product {
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.prescription-product-name {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.prescription-product-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #757575;
}

.prescription-notes {
    margin-bottom: 2rem;
}

.prescription-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Client Portal */
.client-portal-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.client-sidebar {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.client-main {
    flex: 3;
    min-width: 300px;
}

.client-profile {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.client-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E8F5E9;
    color: #4CAF50;
    font-size: 2.5rem;
    font-weight: 500;
}

.client-name {
    text-align: center;
    margin-bottom: 0.5rem;
}

.client-email {
    text-align: center;
    color: #757575;
    margin-bottom: 1.5rem;
}

.client-menu {
    list-style: none;
}

.client-menu li {
    margin-bottom: 0.5rem;
}

.client-menu a {
    display: block;
    padding: 0.75rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.client-menu a:hover,
.client-menu a.active {
    background-color: #E8F5E9;
}

.client-menu a.active {
    font-weight: 500;
}

.client-menu i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.client-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.client-card h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

/* Loyalty Points */
.loyalty-points {
    text-align: center;
    padding: 2rem 0;
}

.loyalty-points-value {
    font-size: 3rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.loyalty-points-label {
    font-size: 1.25rem;
    color: #757575;
    margin-bottom: 1.5rem;
}

.loyalty-history {
    margin-top: 2rem;
}

.loyalty-transaction {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.loyalty-transaction:last-child {
    border-bottom: none;
}

.loyalty-transaction-date {
    color: #757575;
    font-size: 0.875rem;
}

.loyalty-transaction-points {
    font-weight: 500;
}

.loyalty-transaction-points.earned {
    color: #4CAF50;
}

.loyalty-transaction-points.redeemed {
    color: #F44336;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #4CAF50;
        flex-direction: column;
        padding: 1rem;
        z-index: 999;
    }

    .main-navigation ul.show {
        display: flex;
    }

    .main-navigation li {
        margin: 0 0 0.5rem 0;
    }

    .pos-container {
        flex-direction: column;
    }

    .pos-cart {
        position: static;
        max-height: none;
    }

    .client-portal-container {
        flex-direction: column;
    }

    .client-sidebar {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .dashboard-card {
        min-width: 100%;
    }
}
