/* Main styles */
:root {
  --primary-color: #32325d;
  --secondary-color: #0rgb(22, 4, 93);
  --link-color: #dce3ed;
  --link-hover-color: #00bcd4;
  --font-family: "Arial", sans-serif;
  --dark-txt-color: #0b0428;
}
body {
  overflow-x: hidden;
  color: var(--dark-txt-color);
  font-family: var(--font-family);
}
.nav-link {
  color: var(--link-color) !important;
}
.nav-link:hover {
  color: var(--link-hover-color) !important;
}
.custom-col-20 {
  width: 20% !important; /* Use !important to override Bootstrap's default */
}
main {
  flex: 1;
}
.card .card-body.sidebar a {
  color: var(--link-color);
}
.card .card-body a:not(.btn) {
  color: var(--link-hover-color);
}
.inner-wrap {
  min-height: calc(100vh - 150px); /* Adjust for navbar height */
}

/* Card styles */
.card {
  border: none;
  border-radius: 10px;
  color: var(--dark-txt-color);
}

/* Form styles */
.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.bg-primary {
  background-color: var(--primary-color) !important;
}
/* Button styles */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--link-hover-color);
  border-color: var(--link-hover-color);
}

/* Alert styles */
.alert {
  border-radius: 8px;
}

/* Navbar styles */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.form-select {
  border: var(--bs-border-width) solid #a4a3ab;
}
/* Utility classes */
.min-h-100 {
  min-height: 100px;
}
.card-body.sidebar {
  height: 100vh;
  display: flex;
  background: var(--primary-color);
  flex-direction: column;
  min-width: clamp(240px, 14.8vw, 320px);
  max-width: clamp(240px, 14.8vw, 320px);
  border-right: 0;
  z-index: 1032;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}
.login-card {
  border-radius: 10px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  padding: 20px;
}
.form-control {
  border: 1px solid #d1d1d1;
  border-radius: 3px;
}
ul.nav.flex-column {
  margin-top: 30px;
}
.form-check-input {
  background-color: #ffffff;
  border: 2px solid #a4a3ab;
}
.form-check .form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  margin-left: -1.8em;
}
.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.d-flex.gap-2 {
  margin-top: 20px;
}

body.login {
  margin: 0;
  display: flex;
  height: 100vh;
}
.login-form {
  width: 100%;
  max-width: 350px;
}
.login-container {
  display: flex;
  width: 100%;
}
.login-left,
.login-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.login-left {
  padding: 40px;
  max-width: 60%;
  background-color: var(--primary-color);
  color: #fff;
}
.login-right {
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 45%;
}

.login-left img {
  width: 70%;
}
.login-header {
  margin-bottom: 20px;
}
.login-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
}
.login-header p {
  color: #777;
  margin-bottom: 10px;
}
.form-group {
  margin-bottom: 15px;
  width: 100%;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}
.form-options {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 14px;
}
.form-options input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-right: 7px;
}
.form-options a {
  color: var(--primary-color);
  text-decoration: none;
}
.login-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 15px;
  cursor: pointer;
}
.login-btn.primary {
  background-color: var(--primary-color);
  color: #fff;
}
.logo {
  width: 250px;
  margin-bottom: 15px;
}
.brand-logo {
  width: 180px;
  margin-bottom: 15px;
}
.card-title {
  margin-bottom: 20px;
}
.form-options label {
  display: flex;
  align-items: center;
  justify-content: center;
}
.integrations-row .card {
  border: 1px solid #ddd;
  padding: 15px;
}
@media (max-width: 450px) {
  .login-left {
    display: none;
  }
  .login-right {
    max-width: 100%;
    padding: 30px;
  }
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .card {
    margin-top: 1rem;
  }
}



/* Custom CSS for Modern Dashboard */

:root {
    --primary-color: #4e73df;
    --secondary-color: #6f42c1;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
    --border-radius: 0.35rem;
    --box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

/* Modern Card Styling */
.modern-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.2);
}

.modern-card .card-header {
    background-color: white;
    border-bottom: 1px solid #e3e6f0;
    font-weight: 600;
    padding: 1rem 1.35rem;
}

.modern-card .card-body {
    padding: 1.5rem;
}

.modern-hr {
    border-top: 2px solid var(--primary-color);
    opacity: 0.3;
    margin: 1rem 0;
}

/* Sidebar Styling */
.custom-col-20 {
    flex: 0 0 auto;
    width: 20%;
}

.sidebar {
    padding: 0 !important;
}

.sidebar .nav-link {
    color: var(--dark-color);
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    background-color: #f8f9fc;
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    background-color: #f8f9fc;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
}

/* Integration Cards */
.integration-details {
    background-color: #f8f9fc;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e3e6f0;
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--dark-color);
}

.detail-value {
    color: #6e707e;
}

/* Welcome Title */
.welcome-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Button Styling */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #3a5ec7;
    border-color: #3a5ec7;
    transform: translateY(-1px);
}

/* Table Styling */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
    padding: 0.75rem 1rem;
}

.table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

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

/* Form Styling */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #d1d3e2;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-switch .form-check-input:checked {
    background-color: var(--primary-color);
}

/* Alert Styling */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: rgba(28, 200, 138, 0.15);
    color: #0f6848;
}

.alert-danger {
    background-color: rgba(231, 74, 59, 0.15);
    color: #be2617;
}

.alert-warning {
    background-color: rgba(246, 194, 62, 0.15);
    color: #8d6200;
}

.alert-info {
    background-color: rgba(54, 185, 204, 0.15);
    color: #1a73b3;
}

/* Badge Styling */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Pagination Styling */
.pagination .page-link {
    color: var(--primary-color);
    border-radius: var(--border-radius);
    margin: 0 0.2rem;
    border: 1px solid #e3e6f0;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: #f8f9fc;
    border-color: #e3e6f0;
}

/* Modal Styling */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

.modal-header {
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e3e6f0;
    padding: 1rem 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .custom-col-20 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .sidebar {
        max-height: 300px;
        overflow-y: auto;
    }
    
    .detail-item {
        flex-direction: column;
    }
    
    .detail-value {
        margin-top: 0.25rem;
    }
}

/* Animation for alerts */
@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert {
    animation: slideIn 0.3s ease;
}

/* Custom utilities */
.bg-gradient-primary {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Code blocks */
code {
    background-color: #f8f9fc;
    padding: 0.2rem 0.4rem;
    border-radius: 0.2rem;
    font-size: 0.875em;
    color: var(--danger-color);
}

pre {
    background-color: #f8f9fc;
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    font-size: 0.875em;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
