/* POS Styles */
.pos-container {
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Main POS Cards */
.pos-main-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pos-main-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(6, 173, 235, 0.15);
    border-color: #06adeb;
}

.pos-main-card .icon-wrapper {
    font-size: 4rem;
    color: #06adeb;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.pos-main-card:hover .icon-wrapper {
    transform: scale(1.1);
}

.pos-main-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #343a40;
    margin: 0;
}

/* Grid Layout */
.pos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .pos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .pos-grid {
        grid-template-columns: 1fr;
    }
    
    .pos-main-card {
        height: 180px;
    }
}

/* Item Cards (Services & Products) */
.pos-item-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 160px; /* Reduced height */
    display: flex;
    flex-direction: column;
    color: #212529; /* Ensure text color is black/dark */
}

.pos-item-card:hover {
    border-color: #06adeb;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

.pos-item-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
}

.pos-item-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: #adb5bd;
    font-size: 3rem;
}

.pos-item-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pos-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.pos-item-badge {
    align-self: flex-start;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    padding: 0.35em 0.65em;
    background-color: rgba(6, 173, 235, 0.1);
    color: #06adeb;
    border: 1px solid rgba(6, 173, 235, 0.2);
    border-radius: 4px;
}

.pos-item-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #06adeb;
    margin-top: auto;
}

.pos-item-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Back Button */
.pos-back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #343a40;
    transition: all 0.2s;
    text-decoration: none;
}

.pos-back-btn:hover {
    background-color: #f8f9fa;
    color: #06adeb;
    border-color: #06adeb;
}

/* Header */
.pos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.pos-title {
    font-weight: 800;
    color: #343a40;
    margin: 0;
}

/* Dark Mode Support */
body.dark-mode .pos-container {
    color: #e9ecef;
}

body.dark-mode .pos-main-card,
body.dark-mode .pos-item-card {
    background-color: #1e293b;
    border-color: #334155;
}

body.dark-mode .pos-item-card {
    color: #e2e8f0;
}

body.dark-mode .pos-main-card:hover,
body.dark-mode .pos-item-card:hover {
    border-color: #06adeb;
    box-shadow: 0 10px 20px rgba(6, 173, 235, 0.15);
}

body.dark-mode .pos-main-card h3,
body.dark-mode .pos-item-title {
    color: #f1f5f9;
}

body.dark-mode .pos-title {
    color: #f1f5f9;
}

body.dark-mode .pos-item-description {
    color: #94a3b8;
}

body.dark-mode .pos-item-image,
body.dark-mode .pos-item-placeholder {
    background-color: #0f172a;
    color: #475569;
}

body.dark-mode .pos-back-btn {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .pos-back-btn:hover {
    background-color: #0f172a;
    color: #06adeb;
    border-color: #06adeb;
}

body.dark-mode .pos-title {
    color: #f1f5f9;
}

body.dark-mode .pos-item-badge {
    background-color: rgba(6, 173, 235, 0.15);
    color: #38bdf8;
    border-color: rgba(6, 173, 235, 0.3);
}

/* RTL Adjustments */
[dir="rtl"] .pos-back-btn i {
    transform: rotate(180deg);
}

.sa-pos-card {
    border-radius: 12px;
}

.sa-smart-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sa-smart-bar {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
}

body.dark-mode .sa-smart-bar {
    background-color: #1e293b;
    border-color: #334155;
}

.sa-smart-bar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sa-smart-bar-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sa-smart-bar-actions {
    flex: 0 0 auto;
}

.sa-step-title {
    font-weight: 800;
    color: #343a40;
}

body.dark-mode .sa-step-title {
    color: #f1f5f9;
}

.sa-smart-search {
    position: relative;
}

.sa-smart-search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-start: 12px;
    color: #6c757d;
}

.sa-smart-search-input {
    padding-inline-start: 38px;
}

.sa-search-results .list-group-item {
    border-radius: 10px;
}

.sa-search-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sa-selected-card {
    border: 1px dashed rgba(6, 173, 235, 0.45);
    background: rgba(6, 173, 235, 0.06);
    border-radius: 12px;
    padding: 14px 16px;
}

body.dark-mode .sa-selected-card {
    background: rgba(6, 173, 235, 0.12);
    border-color: rgba(56, 189, 248, 0.45);
}
