/* NPAYER Platform Styles */

:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

/* Sidebar styles */
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 996;
  transition: all 0.3s;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #aab7cf transparent;
  box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);
  background-color: #fff;
}

.sidebar-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #012970;
  transition: 0.3;
  background: #f6f9ff;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 5px;
}

.sidebar-nav .nav-link:hover {
  color: #4154f1;
  background: #f6f9ff;
}

.sidebar-nav .nav-link.active {
  color: #4154f1;
  background: #f6f9ff;
}

.sidebar-nav .nav-link i {
  font-size: 16px;
  margin-right: 10px;
  color: #899bbd;
}

/* Main content */
.main {
  margin-left: 300px;
  padding: 20px 30px;
  transition: all 0.3s;
  min-height: calc(100vh - 60px);
  margin-top: 60px;
}

/* Toggle sidebar */
@media (max-width: 1199px) {
  .sidebar {
    left: -300px;
  }

  .main {
    margin-left: 0;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
  z-index: 997;
  padding: 0 20px;
}

/* Profile info */
.profile-info {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  margin-top: auto;
}

.profile-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-name {
  font-size: 14px;
  font-weight: 600;
  color: #012970;
}

.profile-id {
  font-size: 12px;
  color: #899bbd;
}

/* Cards */
.card {
  margin-bottom: 30px;
  border: none;
  border-radius: 10px;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.08);
}

.card-header {
  background-color: #f6f9ff;
  border-bottom: 0;
  padding: 20px;
}

.card-body {
  padding: 20px;
}

/* Buttons */
.btn {
  padding: 8px 20px;
  font-weight: 500;
  border-radius: 5px;
  transition: all 0.3s;
}

.btn-primary {
  background-color: #4154f1;
  border-color: #4154f1;
}

.btn-primary:hover {
  background-color: #3444d5;
  border-color: #3444d5;
}

/* Custom gradient button */
.custom-gradient {
  background: linear-gradient(90deg, #4154f1 0%, #2c3cdd 100%);
  color: #fff;
  border: none;
}

.custom-gradient:hover {
  background: linear-gradient(90deg, #3444d5 0%, #1e2bb5 100%);
  color: #fff;
}

/* Footer */
.footer {
  padding: 20px 0;
  font-size: 14px;
  background: #fff;
  box-shadow: 0px -1px 20px rgba(1, 41, 112, 0.1);
  text-align: center;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #4154f1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #6776f4;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/* Divider */
.divider {
  margin: 15px 0;
  border: 0;
  border-top: 1px solid #e0e0e0;
}

/* Nav content collapse */
.nav-content {
  list-style: none;
  padding-left: 20px;
}

.nav-content a {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: #012970;
  padding: 8px 0;
  text-decoration: none;
}

.nav-content a:hover {
  color: #4154f1;
}

/* Responsive */
@media (max-width: 768px) {
  .main {
    padding: 20px;
  }

  .card {
    margin-bottom: 20px;
  }
}

/* Landing page specific styles */
.landing-page {
  margin: 0;
  padding: 0;
}

.landing-page .hero-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.landing-page .card {
  height: 100%;
}