* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Outfit", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

/* Top Navigation Bar */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #0094d2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.user-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.user-name {
  color: #ffffff;
  font-size: 14px;
}

.logout-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.logout-link:hover {
  background-color: #495057;
}
.h3{
color:#00587d;
}
/* Overlay for mobile */
.overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 60px);
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.active {
  display: block;
  opacity: 1;
}

/* Left Sidebar Navigation */
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  width: 250px;
  height: calc(100vh - 60px);
  background-color: #00587D;
  padding: 20px 0;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 999;
}

.brand {
  padding: 0 20px 20px;
  border-bottom: 1px solid #0094d2;
  margin-bottom: 20px;
}

.brand a {
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}

.nav-menu {
  list-style: none;
}

.nav-menu li {
  margin-bottom: 5px;
}

.nav-menu a {
  display: block;
  color: #adb5bd;          
  text-decoration: none;
  padding: 12px 20px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  background-color: #0094d2;
  color: #ffffff;
  border-left: 4px solid #ffffff;
  padding-left: 16px;       
}


/* Main Content Area */
.main-content {
  margin-top: 60px;
  margin-left: 250px;
  padding: 30px;
  min-height: calc(100vh - 60px);
  transition: margin-left 0.3s ease;
}



/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
  .sidebar {
    width: 220px;
  }
  
  .main-content {
    margin-left: 220px;
    padding: 25px;
  }
  
  .brand a {
    font-size: 22px;
  }
  
  .nav-menu a {
    font-size: 15px;
    padding: 10px 18px;
  }
}

/* Main Content Area */
.main-content {
  margin-top: 60px;
  margin-left: 250px;
  padding: 30px;
  min-height: calc(100vh - 60px);
  transition: margin-left 0.3s ease;
}
.notification-bell { position: relative; cursor: pointer; }
.notif-dropdown { 
    display: none; 
    position: absolute; 
    right: 0; 
    top: 25px; 
    background: #fff; 
    width: 300px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
    max-height: 400px; 
    overflow-y: auto; 
    z-index: 100;
}
.notification-bell:hover .notif-dropdown { display: block; }
.notif-dropdown ul { list-style:none; margin:0; padding:0; }
.notif-dropdown li { padding:10px; border-bottom:1px solid #eee; }
.notif-dropdown li.unread { background:#f0f8ff; }


/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
  .sidebar {
    width: 220px;
  }
  
  .main-content {
    margin-left: 220px;
    padding: 25px;
  }
  
  .brand a {
    font-size: 22px;
  }
  
  .nav-menu a {
    font-size: 15px;
    padding: 10px 18px;
  }
}
/* Floating Glass Modal */
.floating-modal .modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

.floating-modal .modal-header {
    border-bottom: none;
    padding-top: 25px;
}

.floating-modal .modal-title {
    font-weight: 600;
    font-size: 1.3rem;
}

.floating-modal .modal-body {
    padding: 1.8rem;
}

.floating-modal .modal-footer {
    border-top: none;
    padding-bottom: 25px;
}

/* Floating Labels */
.form-floating .form-control {
    border-radius: 12px;
    padding: 18px;
}

.form-floating label {
    padding: 0.75rem 1rem;
}

/* Soft Card Info */
.info-box {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

/* Animated Button */
.btn-animated {
    border-radius: 14px;
    padding: 10px 20px;
    font-weight: 600;
    transition: 0.25s ease-in-out;
}

.btn-animated:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255,193,7,0.4);
}


/* Mobile and Tablet Styles (max-width: 768px) */
@media (max-width: 768px) {
  .top-nav {
    padding: 0 15px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .user-section {
    gap: 10px;
  }
  
  .user-name {
    font-size: 13px;
  }
  
  .logout-link {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    padding: 20px;
  }
  
  .brand {
    padding: 0 20px 15px;
  }
  
  .brand a {
    font-size: 22px;
  }
}

/* Small Mobile Styles (max-width: 480px) */
@media (max-width: 480px) {
  .top-nav {
    height: 55px;
    padding: 0 10px;
  }
  
  .user-name {
    display: none;
  }
  
  .user-section {
    gap: 0;
  }
  
  .logout-link {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .sidebar {
    top: 55px;
    height: calc(100vh - 55px);
    width: 260px;
  }
  
  .main-content {
    margin-top: 55px;
    padding: 15px;
    min-height: calc(100vh - 55px);
  }
  
  .brand a {
    font-size: 20px;
  }
  
  .nav-menu a {
    font-size: 15px;
    padding: 12px 15px;
  }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
  .sidebar {
    width: 240px;
  }
  
  .main-content {
    padding: 12px;
  }
  
  .brand a {
    font-size: 18px;
  }
  
  .nav-menu a {
    font-size: 14px;
    padding: 10px 12px;
  }
}

/* Large Desktop Styles (min-width: 1440px) */
@media (min-width: 1440px) {
  .sidebar {
    width: 280px;
  }
  
  .main-content {
    margin-left: 280px;
    padding: 40px;
  }
  
  .brand a {
    font-size: 26px;
  }
  
  .nav-menu a {
    font-size: 17px;
    padding: 14px 24px;
  }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .sidebar {
    width: 240px;
  }
  
  .nav-menu a {
    padding: 8px 15px;
    font-size: 14px;
  }
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: #212529;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #495057;
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #6c757d;
}


.page-header {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  color: #00587D;
  margin: 0;
}

.btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #0076a7 0%, #00587D 100%);
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-success {
  background: #28a745;
  color: #ffffff;
}

.btn-success:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-danger {
  background: #dc3545;
  color: #ffffff;
  padding: 6px 12px;
  font-size: 13px;
}

.btn-danger:hover {
  background: #c82333;
}

.btn-warning {
  background: #ffc107;
  color: #212529;
  padding: 6px 12px;
  font-size: 13px;
}

.btn-warning:hover {
  background: #e0a800;
}

.btn-secondary {
  background:#0094d2 ;
  color: #ffffff;
}

.btn-secondary:hover {
  background: #00587d;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: #ffffff;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #00587d;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #f8f9fa;
  color: #212529;
}

.modal-body {
  padding: 25px;
}

.modal-footer {
  padding: 15px 25px;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  margin-bottom: 8px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: #0076a7;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Table Styles */
.table-container {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.table thead {
  background: #f8f9fa;
}

.table th {
  padding: 12px 15px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e9ecef;
}

.table td {
  padding: 12px 15px;
  border-bottom: 1px solid #f1f3f5;
  font-size: 14px;
  color: #495057;
}

.table tbody tr {
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

.table-actions {
  display: flex;
  gap: 8px;
}

/* Alert/Message Styles */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Badge Styles */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 12px;
  line-height: 1;
}

.badge-success {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.badge-warning {
  background: rgba(255, 193, 7, 0.1);
  color: #e0a800;
}

.badge-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.badge-info {
  background: rgba(23, 162, 184, 0.1);
  color: #17a2b8;
}

.badge-primary {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
}

/* Sales Page Specific Styles */
.sales-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.summary-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.summary-value {
  font-size: 28px;
  font-weight: 700;
  color: #212529;
  margin: 10px 0 5px;
}

.summary-label {
  font-size: 13px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Product Selection Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #f8f9fa;
}

.product-card {
  background: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  border-color: #0076a7;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.product-card.selected {
  border-color: #0076a7;
  background: rgba(102, 126, 234, 0.05);
}

.product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.product-name {
  font-weight: 600;
  color: #212529;
  font-size: 14px;
  flex: 1;
}

.product-price {
  font-weight: 700;
  color: #0076a7;
  font-size: 14px;
  white-space: nowrap;
}

.product-stock {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 10px;
}

.product-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #dee2e6;
  background: #ffffff;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: #0076a7;
  color: #ffffff;
  border-color: #0076a7;
}

.qty-input {
  width: 60px;
  text-align: center;
  padding: 6px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-weight: 600;
}

/* Cart Summary */
.cart-summary {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cart-header {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.cart-items {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #f1f3f5;
  transition: background 0.2s ease;
}

.cart-item:hover {
  background: #f8f9fa;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  color: #212529;
  font-size: 14px;
}

.cart-item-details {
  font-size: 12px;
  color: #6c757d;
  margin-top: 4px;
}

.cart-item-total {
  font-weight: 700;
  color: #0076a7;
  font-size: 14px;
}

.cart-remove {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 5px;
  margin-left: 10px;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.cart-remove:hover {
  transform: scale(1.2);
}

.cart-totals {
  border-top: 2px solid #e9ecef;
  padding-top: 15px;
  margin-top: 15px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #495057;
}

.cart-grand-total {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 700;
  color: #212529;
  padding-top: 10px;
  border-top: 2px solid #e9ecef;
}

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: #adb5bd;
}

.cart-empty-icon {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* Large Modal */
.modal-dialog.modal-large {
  max-width: 900px;
}

/* Search Box */
.search-box {
  position: relative;
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #0076a7;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    max-height: 300px;
  }
  
  .modal-dialog.modal-large {
    max-width: 95%;
    margin: 10px;
  }
  
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .cart-item-total {
    align-self: flex-end;
  }
}

/* ==================== INVOICE STYLES ==================== */
.invoice-container {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.invoice-header {
  background: linear-gradient(135deg, #0076a7 0%, #00587D 100%);
  color: #ffffff;
  padding: 40px;
}

.invoice-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.invoice-company {
  flex: 1;
}

.invoice-company-name {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 5px;
}

.invoice-company-tagline {
  font-size: 14px;
  opacity: 0.9;
}

.invoice-number-section {
  text-align: right;
}

.invoice-label {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 5px;
}

.invoice-number {
  font-size: 24px;
  font-weight: 700;
}

.invoice-body {
  padding: 40px;
}

.invoice-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.invoice-info-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #0076a7;
}

.invoice-info-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #6c757d;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.invoice-info-content {
  color: #212529;
}

.invoice-info-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #212529;
}

.invoice-info-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
  color: #495057;
}

.invoice-info-icon {
  color: #0076a7;
  width: 16px;
}

.invoice-table-container {
  margin: 30px 0;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.invoice-table thead {
  background: #0076a7;
  color: #ffffff;
}

.invoice-table th {
  padding: 15px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.invoice-table td {
  padding: 15px;
  border-bottom: 1px solid #f1f3f5;
  font-size: 14px;
  color: #495057;
}

.invoice-table tbody tr:last-child td {
  border-bottom: none;
}

.invoice-table tbody tr:hover {
  background-color: #f8f9fa;
}

.invoice-table .text-right {
  text-align: right;
}

.invoice-table .text-center {
  text-align: center;
}

.invoice-totals {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}

.invoice-totals-box {
  width: 100%;
  max-width: 350px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
}

.invoice-total-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: #495057;
}

.invoice-total-row.grand-total {
  border-top: 2px solid #dee2e6;
  margin-top: 10px;
  padding-top: 15px;
  font-size: 20px;
  font-weight: 700;
  color: #212529;
}

.invoice-total-row.grand-total .amount {
  color: #28a745;
}

.invoice-footer {
  background: #f8f9fa;
  padding: 30px 40px;
  border-top: 2px solid #e9ecef;
  text-align: center;
}

.invoice-footer-text {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 15px;
}

.invoice-footer-signature {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid #212529;
  display: inline-block;
  min-width: 250px;
  font-weight: 600;
  color: #212529;
}

.invoice-actions {
  background: #ffffff;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #e9ecef;
  flex-wrap: wrap;
  gap: 15px;
}

.invoice-print-date {
  font-size: 13px;
  color: #6c757d;
}

/* Print Styles */
@media print {
  body {
    background: #ffffff;
  }
  
  .main-content {
    margin: 0;
    padding: 0;
  }
  
  .no-print {
    display: none !important;
  }
  
  .invoice-container {
    box-shadow: none;
    border-radius: 0;
    max-width: 100%;
  }
  
  .invoice-actions {
    display: none;
  }
  
  .page-header {
    display: none;
  }
}

/* Responsive Invoice */
@media (max-width: 768px) {
  .invoice-header {
    padding: 25px 20px;
  }
  
  .invoice-company-name {
    font-size: 24px;
  }
  
  .invoice-number {
    font-size: 20px;
  }
  
  .invoice-body {
    padding: 25px 20px;
  }
  
  .invoice-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .invoice-table th,
  .invoice-table td {
    padding: 10px 8px;
    font-size: 13px;
  }
  
  .invoice-footer {
    padding: 20px;
  }
  
  .invoice-actions {
    padding: 15px 20px;
  }
  
  .invoice-totals-box {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .invoice-header-content {
    flex-direction: column;
  }
  
  .invoice-number-section {
    text-align: left;
  }
  
  .invoice-table {
    font-size: 12px;
  }
  
  .invoice-table th,
  .invoice-table td {
    padding: 8px 6px;
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 18px;
  margin-bottom: 10px;
}

.empty-state-subtext {
  font-size: 14px;
  color: #adb5bd;
}
/* ===== RECEIPT DROPDOWN BUTTON FIX ===== */

/* Wrapper for dropdown */
.receipt-dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown toggle button */
.receipt-btn {
  background: linear-gradient(135deg, #0076a7 0%, #00587D 100%);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.receipt-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 118, 167, 0.3);
}

/* Dropdown Menu */
.receipt-menu {
  position: absolute;
  top: 110%; 
  right: 0;
  background: #ffffff;
  border-radius: 8px;
  min-width: 160px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  padding: 8px 0;
  display: none; /* Hidden by default */
  z-index: 2000;
  animation: dropdownFade 0.2s ease-out;
}

/* Show dropdown */
.receipt-dropdown.active .receipt-menu {
  display: block;
}

/* Dropdown items */
.receipt-menu a {
  display: block;
  padding: 10px 16px;
  color: #00587D;
  font-size: 14px;
  text-decoration: none;
  transition: 0.25s;
}

.receipt-menu a:hover {
  background: #f1f9ff;
  color: #0094d2;
}

/* Fade Animation */
@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .receipt-menu {
    right: 0;
    left: auto;
    min-width: 150px;
  }
}

/* Responsive Tables */
@media (max-width: 768px) {
  .table-container {
    padding: 15px;
  }

  .table {
    font-size: 13px;
  }

  .table th,
  .table td {
    padding: 10px 8px;
  }

  .table-actions {
    flex-direction: column;
    gap: 5px;
  }

  .modal-dialog {
    width: 95%;
    margin: 10px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 15px;
  }
}

/* ==================== STATISTICS CARDS ==================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 5px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Card Border Colors */
.stat-card.primary { border-left-color: #007bff; }
.stat-card.success { border-left-color: #28a745; }
.stat-card.info    { border-left-color: #17a2b8; }
.stat-card.warning { border-left-color: #ffc107; }

/* Header */
.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.stat-title {
  font-size: 14px;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Icon */
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.stat-icon.primary { background: rgba(0,123,255,0.1); color: #007bff; }
.stat-icon.success { background: rgba(40,167,69,0.1); color: #28a745; }
.stat-icon.info    { background: rgba(23,162,184,0.1); color: #17a2b8; }
.stat-icon.warning { background: rgba(255,193,7,0.1); color: #ffc107; }

/* Value */
.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #0094d2;
  margin: 10px 0 5px;
  line-height: 1.2;
}

/* Description */
.stat-description {
  font-size: 13px;
  color: #6c757d;
  margin: 0;
}

/* Trend badges */
.stat-trend {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 8px;
}

.stat-trend.up {
  background: rgba(40,167,69,0.1);
  color: #28a745;
}

.stat-trend.down {
  background: rgba(220,53,69,0.1);
  color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .stat-card { padding: 15px; }
  .stat-value { font-size: 18px; }
  .stat-title { font-size: 13px; }
  .stat-icon { width: 36px; height: 36px; font-size: 16px; }
}

/* Quick Actions Section */
.quick-actions {
  margin-top: 30px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #0094d2;
  margin-bottom: 20px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  text-decoration: none;
  color: #495057;
  font-weight: 500;
  transition: all 0.3s ease;
}

.action-btn:hover {
  border-color: #007bff;
  color: #ffffff;
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.action-btn-icon {
  font-size: 24px;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
  .page-title {
    font-size: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-card {
    padding: 20px;
  }

  .stat-value {
    font-size: 28px;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-header {
    margin-bottom: 20px;
  }

  .page-title {
    font-size: 22px;
  }

  .stat-card {
    padding: 18px;
  }

  .stat-value {
    font-size: 26px;
  }

  .stat-icon {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}

/* ==================== LOGIN PAGE STYLES ==================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:#ffffff;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 450px;
}

.login-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.login-header {
  background: linear-gradient(135deg, #0076a7 0%, #00587D 100%);
  padding: 40px 30px;
  text-align: center;
}

.login-logo {
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin: 0;
}

.login-body {
  padding: 40px 30px;
}

.login-title {
  font-size: 24px;
  font-weight: 600;
  color: #00587d;
  margin-bottom: 10px;
  text-align: center;
}

.login-description {
  color: #6c757d;
  font-size: 14px;
  text-align: center;
  margin-bottom: 30px;
}

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-danger::before {
  content: "?";
  font-size: 18px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: #0076a7;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
  color: #adb5bd;
}

.btn-login {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #0076a7 0%, #00587D 100%);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
  transform: translateY(0);
}

.login-footer {
  text-align: center;
  padding: 20px 30px 30px;
  color: #6c757d;
  font-size: 13px;
}

/* Responsive Design for Login Page */
@media (max-width: 576px) {
  .login-page {
    padding: 15px;
  }

  .login-container {
    max-width: 100%;
  }

  .login-header {
    padding: 30px 20px;
  }

  .login-logo {
    font-size: 30px;
  }

  .login-body {
    padding: 30px 20px;
  }

  .login-title {
    font-size: 22px;
  }

  .form-input {
    padding: 11px 14px;
    font-size: 14px;
  }

  .btn-login {
    padding: 12px;
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  .login-header {
    padding: 25px 15px;
  }

  .login-logo {
    font-size: 26px;
  }

  .login-body {
    padding: 25px 15px;
  }

  .login-title {
    font-size: 20px;
  }
}
/* ==================== UPDATED STATISTICS CARDS - 4 IN A ROW ==================== */

.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

/* Tablet - 2 cards per row */
@media (max-width: 1024px) {
  .stats-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* Mobile - 1 card per row */
@media (max-width: 640px) {
  .stats-grid-4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ==================== PAGINATION STYLES ==================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 20px 0;
  gap: 5px;
  flex-wrap: wrap;
}

.page-item {
  display: inline-block;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-link:hover {
  background-color: #0076a7;
  color: #ffffff;
  border-color: #0076a7;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 118, 167, 0.3);
}

.page-item.active .page-link {
  background-color: #0076a7;
  color: #ffffff;
  border-color: #0076a7;
  font-weight: 600;
  cursor: default;
}

.page-item.disabled .page-link {
  color: #adb5bd;
  background-color: #f8f9fa;
  border-color: #dee2e6;
  cursor: not-allowed;
  pointer-events: none;
}

.page-link i {
  font-size: 12px;
}

/* Responsive Pagination */
@media (max-width: 640px) {
  .pagination {
    gap: 3px;
  }
  
  .page-link {
    min-width: 35px;
    height: 35px;
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* ==================== TABLE RESPONSIVE IMPROVEMENTS ==================== */

.table-container {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  min-width: 600px;
}

.table thead {
  background: #f8f9fa;
}

.table th {
  padding: 12px 15px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e9ecef;
  white-space: nowrap;
}

.table td {
  padding: 12px 15px;
  border-bottom: 1px solid #f1f3f5;
  font-size: 14px;
  color: #495057;
}

.table tbody tr {
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.table-striped tbody tr:nth-of-type(odd):hover {
  background-color: #f8f9fa;
}

/* Button improvements */
.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-sm i {
  font-size: 12px;
}

/* Search box improvements */
.search-box {
  position: relative;
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #0076a7;
  box-shadow: 0 0 0 3px rgba(0, 118, 167, 0.1);
  outline: none;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  pointer-events: none;
}

/* Mobile table responsiveness */
@media (max-width: 768px) {
  .table-container {
    padding: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .table {
    font-size: 13px;
    min-width: 600px;
  }
  
  .table th,
  .table td {
    padding: 10px 8px;
  }
}
/* Container for filters + export buttons */
.report-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

/* Filters aligned in a row */
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Input width adjustments */
.filter-form .form-select,
.filter-form .form-input {
    height: 38px;
    padding: 0 10px;
}

/* Custom date inputs smaller */
.filter-form .date-input {
    max-width: 150px;
}

/* Export buttons aligned */
.export-buttons {
    display: flex;
    gap: 10px;
}

/* Pagination spacing */
.pagination-nav {
    margin-top: 20px;
}

/* Make table responsive */
.table-container {
    overflow-x: auto;
}
  .password-wrapper {
        position: relative;
        width: 100%;
    }

    .password-wrapper input {
        width: 100%;
        padding-right: 40px; /* space for the eye icon */
        box-sizing: border-box;
    }

    .toggle-password {
        position: absolute;
        right: 12px;
        top: 78%;
        transform: translateY(-78%);
        cursor: pointer;
        color: #555;
        font-size: 18px;
        z-index: 2;
        user-select: none;
        transition: color 0.2s ease;
    }

    .toggle-password:hover {
        color: #000;
    }

    /* Responsive adjustments */
    @media (max-width: 480px) {
        .toggle-password {
            right: 8px;
            font-size: 16px;
        }
    }

    /* Optional: better spacing for small screens */
    .login-card {
        padding: 20px;
        max-width: 400px;
        margin: auto;
    }
    
    .payment-container {
    max-width: 650px;
    margin: 2rem auto;
    padding: 0 15px;
}

.payment-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
    overflow: hidden;
}

.payment-header {
    background: linear-gradient(135deg, #0076a7 0%, #00587d 100%);
    padding: 1.5rem;
    color: #fff;
    text-align: center;
}

.payment-header h4 {
    margin-bottom: 0.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-partial {
    background: #fff3cd;
    color: #856404;
}

.card-body {
    padding: 2rem;
}

.info-box {
    background: #f8f9fa;
    border-left: 4px solid #0076a7;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #6c757d;
}

.info-value {
    font-weight: 500;
    color: #212529;
}

.form-control-custom {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control-custom:focus {
    border-color: #0076a7;
    box-shadow: 0 0 0 0.2rem rgba(0, 118, 167, 0.25);
}

.btn-submit-payment {
    background: linear-gradient(135deg, #0076a7 0%, #00587d 100%);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 118, 167, 0.4);
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .payment-container {
        margin: 1rem;
        padding: 0 10px;
    }
}