/* General Body Styles */
body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

/* Class to hide scrollbars */
.no-scrollbar {
    overflow: auto;
}

/* Main container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Custom Header Styles */
.app-header-bg {
  background-color: #008080; /* Teal */
}

.app-logout-btn {
  background-color: #00a19a;
  color: white;
}

.app-logout-btn:hover {
  background-color: #00887a;
}

/* Custom Sidebar Styles */
.app-sidebar {
  width: 220px;
  background-color: #008080; /* Teal */
  color: white;
  padding: 20px;
  transition: width 0.3s ease;
  flex-shrink: 0;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.app-sidebar.collapsed {
  width: 60px;
}

.app-sidebar.collapsed .app-sidebar-item-text {
  display: none;
}

/* Main Content Area */
main {
  transition: margin-left 0.3s ease;
  padding-top: 70px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #008080; /* Teal */
    margin-bottom: 20px;
}

/* Form Styling */
.form-label {
    font-weight: 600;
    color: #555;
}

.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.075);
}

.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Buttons */
.btn-primary {
    background-color: #008080; /* Teal */
    border-color: #008080; /* Teal */
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color .2s;
}

.btn-primary:hover {
    background-color: #006666; /* Darker Teal */
    border-color: #006666; /* Darker Teal */
}

.btn-outline-primary {
    color: #008080; /* Teal */
    border-color: #008080; /* Teal */
}

.btn-outline-primary:hover {
    background-color: #008080; /* Teal */
    color: white;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Alerts */
.alert {
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
}

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

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

/* Table Styling */
.table {
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.table thead th {
    background-color: #f2f2f2;
    border-bottom: 2px solid #ddd;
    padding: 12px 15px;
}

.table tbody tr:hover {
    background-color: #e2e6ea;
}

.table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* Modal Styling */
.modal-content {
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #008080; /* Teal */
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

.modal-footer {
    border-top: none;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform .2s;
}

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

.card-header {
    background-color: #008080; /* Teal */
    color: white;
    font-weight: bold;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
    color: white;
}

/* Summary Card Styles */
.summary-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background-color: #ffffff; /* Default background */
}
.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.summary-card h1,
.summary-card h2,
.summary-card h3,
.summary-card h4,
.summary-card h5,
.summary-card h6 {
    color: #ffffff;
}

.summary-card-icon {
    font-size: 3rem;
    opacity: 0.5;
}

/* Unique Summary Card Colors */
.summary-card-primary {
    background: linear-gradient(135deg, #008080 0%, #006666 100%); /* Teal Gradient */
    color: #ffffff;
}
.summary-card-primary .summary-card-icon {
    color: rgba(255, 255, 255, 0.7);
}

.summary-card-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%); /* Fresh Green */
    color: #ffffff;
}
.summary-card-success .summary-card-icon {
    color: rgba(255, 255, 255, 0.7);
}

.summary-card-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%); /* Warm Orange */
    color: #ffffff;
}
.summary-card-warning .summary-card-icon {
    color: rgba(255, 255, 255, 0.7);
}

.summary-card-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%); /* Refined Red */
    color: #ffffff;
}
.summary-card-danger .summary-card-icon {
    color: rgba(255, 255, 255, 0.7);
}

.summary-card-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%); /* Clear Teal */
    color: #ffffff;
}
.summary-card-info .summary-card-icon {
    color: rgba(255, 255, 255, 0.7);
}

/* Specific adjustments for onboard-business.html */
#onboardingForm h3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

/* Utility classes */
.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.btn-info {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-info:hover {
    color: #fff;
    background-color: #138496;
    border-color: #117a8b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .app-sidebar.collapsed {
        width: 100%;
    }

    main {
        margin-left: 0;
    }
}

/* Animated Background Container */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place it behind all other content */
    overflow: hidden;
    background: linear-gradient(to bottom, #f0f2f5, #e6e9ed);
}

/* Individual Shapes for Animation */
.animated-bg .shape {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 99, 71, 0.15); /* Tomato */
    animation: animate 25s linear infinite;
    bottom: -150px; /* Start below the screen */
}

/* Varying sizes and positions for the shapes */
.animated-bg .shape:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; background: rgba(60, 179, 113, 0.15); } /* MediumSeaGreen */
.animated-bg .shape:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; background: rgba(255, 165, 0, 0.15); } /* Orange */
.animated-bg .shape:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; background: rgba(106, 90, 205, 0.15); } /* SlateBlue */
.animated-bg .shape:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; background: rgba(255, 20, 147, 0.15); } /* DeepPink */
.animated-bg .shape:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; background: rgba(0, 191, 255, 0.15); } /* DeepSkyBlue */
.animated-bg .shape:nth-child(6) { left: 75%; width: 110px; height: 110px; animation-delay: 3s; background: rgba(255, 215, 0, 0.15); } /* Gold */
.animated-bg .shape:nth-child(7) { left: 35%; width: 150px; height: 150px; animation-delay: 7s; background: rgba(138, 43, 226, 0.15); } /* BlueViolet */
.animated-bg .shape:nth-child(8) { left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; background: rgba(255, 69, 0, 0.15); } /* OrangeRed */
.animated-bg .shape:nth-child(9) { left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; background: rgba(34, 139, 34, 0.15); } /* ForestGreen */
.animated-bg .shape:nth-child(10) { left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; background: rgba(75, 0, 130, 0.15); } /* Indigo */

/* The Animation Keyframes */
@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

/* Ensure the login card is above the background */
.container {
    position: relative;
    z-index: 1;
}

/* Make the card slightly transparent to see the background */
.login-card-wrapper .card {
    background-color: rgba(255, 255, 255, 0.4) !important; /* Further reduced opacity */
    backdrop-filter: blur(2px); /* Further reduced blur */
}

/* Login Page Specific Styles */
.login-card-wrapper {
    max-width: 350px; /* Reduced max-width for a narrower card */
    margin: 0 auto; /* Center the card horizontally */
}

.login-card-wrapper .card-body {
    padding: 1.5rem; /* Further reduce vertical padding */
}

.login-card-wrapper .form-floating label {
    padding-top: 0.6rem; /* Adjust label padding for smaller input fields */
    padding-bottom: 0.6rem;
}

.login-card-wrapper .form-control {
    height: calc(2.2rem + 2px); /* Adjust input field height */
    padding: 0.4rem 0.6rem;
}

.login-card-wrapper .btn {
    padding: 0.6rem 0.9rem; /* Adjust button padding */
    font-size: 0.9rem;
}
