/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header styles */
.header {

	background: linear-gradient(268deg, #143c64 0%, #0a1c2f 80%);
    color: white;
    padding: 5px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	
	position: fixed;
    width: 100%;
    z-index: 9999;	
	border-bottom: solid 2px #FFC107;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 40px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Sidebar navigation */
.sidebar {
    background: white;
    width: 280px;
    height: calc(100vh - 35px);
    position: fixed;
    left: 0;
    top: 35px!important;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.nav-menu {
    list-style: none;
    padding: 20px 0;
}

.nav-item {
    border-bottom: 1px solid #eee;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #667eea;
    padding-left: 30px;
}

.nav-link i {
    margin-right: 15px;
    font-size: 18px;
}

/* Main content area */
.main-content {
    margin-left: 280px;
    padding: 70px 30px!important;
    min-height: calc(100vh - 70px);
}

/* Dashboard cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.card-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.white {color:#ffffff;}

.card-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #eee;
}

.table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.table tr:hover {
    background: #f8f9fa;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #667eea;
    outline: none;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


.btn-new2 {
    background: linear-gradient(135deg, #CDDC39 0%, #86d289 100%);
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

/* Touchscreen specific styles */
.touch-btn {
    min-height: 60px;
    min-width: 120px;
    font-size: 20px;
    margin: 5px;
    padding: 15px 25px;
}

.touch-input {
    font-size: 24px;
    height: 70px;
    padding: 0 20px;
}

/* POS specific styles */
.pos-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    height: calc(100vh - 140px);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    overflow-y: auto;
    padding: 20px;
    background: white;
    border-radius: 15px;
}

.product-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.product-item:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.cart-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

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

.cart-total {
    font-size: 24px;
    font-weight: bold;
    padding: 20px 0;
    border-top: 2px solid #eee;
    text-align: center;
}


select {
	
    -webkit-appearance: none!important;
    -moz-appearance: none!important;
    appearance: non!importante;

    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat !important;
    background-position: right 10px center!important;
    background-size: 12px 8px!important;

    padding-right: 30px !important; /* space for arrow */	
	
}
/* Responsive design */
@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .main-content {
        margin-left: 70px;
        padding: 15px;
    }
    
    .pos-container {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}



.modal-content{
	
    top: 50px;	
}

.table-responsive {
	
	height: auto;
}

.badge-light {color:#2e3e97!important;}
/*.badge-primary {color:#0d6efd!important;} */

.badge-primary {
    background-color: #007bff!important;
    color: #fff!important;
}