/* Base Styles */
:root {
    --primary-color: #0a56a3;
    --secondary-color: #075cba;
    --accent-color: #0066b3;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --border-color: #c8d0d9;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --border-radius: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.text-danger {
    color: var(--danger-color);
}
.text-success {
    color: var(--success-color);
}
.text-warning {
    color: var(--warning-color);
}
.text-info {
    color: var(--info-color);
}
.text-primary {
    color: var(--primary-color);
}
.text-secondary {
    color: var(--secondary-color);
}

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

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.main-header {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid #fff;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    margin-right: 10px;
}
.mobile-logo-text{
    font-size: 12px;
    font-weight: 500;
    color: white;
}
.logo-container h1 {
    font-size: 1.5rem;
    font-weight: 500;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name {
    font-weight: 500;
}

.last-login {
    font-size: 0.8rem;
    opacity: 0.8;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Main Menu Navigation */
.main-menu {
    background-color: var(--primary-color);
    padding: 0;
    border-bottom: 1px solid #4c8dce;
    position: relative;
    z-index: 90;
}

.main-menu ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.main-menu li {
    border-right: 1px solid #4c8dce;
    position: relative;
}

.main-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.main-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.main-menu a.active {
    background-color: #fff;
    color: var(--primary-color);
}

/* Submenu Styles */
.main-menu .submenu-icon {
    font-size: 0.7rem;
    margin-left: 5px;
}

.main-menu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 100;
    border: 1px solid var(--border-color);
}

.main-menu .has-submenu:hover .submenu {
    display: block;
}

.main-menu .submenu li {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.main-menu .submenu li:last-child {
    border-bottom: none;
}

.main-menu .submenu a {
    color: var(--dark-color);
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

.main-menu .submenu a:hover {
    background-color: #f0f5ff;
    color: var(--primary-color);
}

/* Main Content Styles */
.main-content {
    display: flex;
    flex: 1;
    background-color: #fff;
}

/* Transaction Panel */
.transaction-panel {
    width: 250px;
    background-color: #f0f3f6;
    border-right: 1px solid var(--border-color);
}

.panel-header {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.customer-entry {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1rem;
}

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

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    margin-right: 0.5rem;
}

/* Service Options */
.service-options {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

.service-column {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: block;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #e0e6ed;
    font-size: 0.85rem;
    transition: background-color 0.3s;
}

.service-item:hover {
    background-color: #e0f0ff;
    color: var(--primary-color);
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    padding: 1rem;
    overflow: auto;
}

.notification-bar {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 1rem;
    margin-bottom: 1rem;
}

.device-warning {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #555;
}

.device-warning i {
    color: var(--warning-color);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.user-details {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
}

.user-details span {
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #555;
}

/* Footer Styles */
.main-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 1rem;
    text-align: center;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    box-shadow: var(--box-shadow);
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
}

.mobile-logo {
    height: 30px;
}

.close-mobile-nav {
    cursor: pointer;
    font-size: 1.5rem;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav-item a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
}

.mobile-nav-item.active a {
    background-color: var(--primary-color);
    color: white;
}

/* Mobile Submenu Styles */
.mobile-submenu {
    display: none;
    background-color: #f5f5f5;
    list-style: none;
    padding: 0;
}

.mobile-nav-item.active .mobile-submenu {
    display: block;
}

.mobile-submenu li a {
    padding: 0.8rem 1.5rem 0.8rem 2.5rem;
    font-size: 0.85rem;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

.mobile-submenu li:last-child a {
    border-bottom: none;
}

.mobile-submenu li a:hover {
    background-color: #e0f0ff;
}

/* Expandable Mobile Menu */
.mobile-nav-item.has-submenu > a:after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
}

.mobile-nav-item.has-submenu.expanded > a:after {
    content: '\f077';
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* Button Styles */
.btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    color: var(--dark-color);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background-color: #e0e0e0;
    color: #333;
}

.btn-danger {
    background-color: #e0e0e0;
    color: #333;
}

.btn-sm {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
}

.blank-content {
    padding: 2rem;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin: 1rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.blank-icon {
    font-size: 4rem;
    color: #d0d0d0;
    margin-bottom: 1.5rem;
}

.blank-content h2 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
}

.blank-content p {
    color: #888;
    max-width: 500px;
    line-height: 1.6;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f5f5f5;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
}

.page-actions {
    display: flex;
    gap: 10px;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #f5f5f5;
    color: var(--primary-color);
    font-weight: 500;
}

.table tbody + tbody {
    border-top: 2px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    cursor: pointer;
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.badge-danger {
    background-color: var(--danger-color);
    color: white;
}

/* Alert Styles */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.pagination li {
    margin: 0 2px;
}

.pagination .page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: var(--primary-color);
    background-color: #fff;
    border: 1px solid #dee2e6;
    text-decoration: none;
}

.pagination .page-link:hover {
    z-index: 2;
    color: var(--primary-color);
    text-decoration: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination .page-link:focus {
    z-index: 3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.pagination .page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 5px;
}
