/* =======================
   Reset & Base
======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f3f4f6;
}

/* =======================
   Header (Common)
======================= */
.header-container {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f2937;
    color: white;
    padding: 10px 20px;
    z-index: 999;
}

.header-container h1 {
    font-size: 1.5rem;
}

.header-container ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.header-container a {
    color: white;
    text-decoration: none;
}

.header-container a:hover {
    text-decoration: underline;
}

/* =======================
   Public Dashboard Wrapper
======================= */
.public-dashboard-wrapper {
    padding-top: 60px;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.public-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.public-dashboard h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.public-dashboard p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* =======================
   Auth Pages (Login/Register)
======================= */

/* registration page */

/* General Page Styles */
.reg-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8fafc; /* Light background */
    padding: 20px;
}

.reg-card {
    background: #ffffff;
    padding: 40px 35px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1000px;
    text-align: center;
    border: 1px solid #ddd;
    transition: box-shadow 0.3s ease;
}

.reg-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); /* Slightly enhanced shadow on hover */
}

.reg-card h2 {
    font-size: 26px;
    margin-bottom: 40px;
    font-weight: bold;
    color: #333;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
}

/* Form Group */
.reg-group {
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}

/* Label Styling */
.reg-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #333;
    font-family: 'Roboto', sans-serif;
}

.reg-group .required {
    color: red;
    margin-left: 5px;
}

/* Input and Textarea Styling */
.reg-group input,
.reg-group textarea,
.reg-group select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background-color: #fafafa;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.reg-group input:focus,
.reg-group textarea:focus,
.reg-group select:focus {
    border-color: #007bff;
    outline: none;
    background-color: #ffffff; /* White background when focused */
}

.reg-group input[type="radio"] {
    margin-right: 8px;
}

/* Button Styling */
.reg-btn {
    width: 100%;
    padding: 12px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    font-family: 'Roboto', sans-serif;
}

.reg-btn:hover {
    background: #0056b3;
}

/* Error Message Styling */
.reg-error {
    font-size: 0.85rem;
    color: red;
    margin-top: 8px;
    text-align: left;
}

/* Link Styling */
.reg-link {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.reg-link a {
    color: #007bff;
    text-decoration: none;
}

.reg-link a:hover {
    text-decoration: underline;
}

/* Plan Card Styles */
.plan-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 20px;
    margin-top: 30px;
    padding-bottom: 15px; /* Space for scrollbar */
    justify-content: center;
    width: 100%;
}

/* Custom scrollbar for plan container */
.plan-container::-webkit-scrollbar {
    height: 8px;
}
.plan-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.plan-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.plan-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Plan Card Design */
.plan-card {
    background: #f2f9fd; /* Soft pastel blue background */
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    width: 250px;
    min-width: 250px;
    flex-shrink: 0;
    font-family: 'Roboto', sans-serif;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.plan-card input[type="radio"] {
    display: none;
}

.plan-card input[type="radio"]:checked + .plan-content {
    border: 2px solid #007bff;
    box-shadow: 0 0 12px rgba(0, 123, 255, 0.5);
}

.plan-content h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.plan-content p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.original-price {
    font-size: 16px;
    color: red;
    text-decoration: line-through;
}

.discounted-price {
    font-size: 18px;
    color: #28a745;
    font-weight: bold;
}

.discount-info {
    font-size: 14px;
    color: #28a745;
    margin-top: 5px;
}

.plan-benefits {
    list-style-type: none;
    padding-left: 0;
    margin-top: 15px;
    font-size: 13px;
    color: #333;
}

.plan-benefits li {
    margin-bottom: 5px;
}

/* Focus styles for the radio buttons */
.plan-card input[type="radio"]:checked + .plan-content {
    border: 2px solid #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {

    .plan-card {
        width: 250px;
        min-width: 250px;
    }
}



/* login */
/* Login specific styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 120px;
    background: #f3f4f6;
}

.login-card {
    background: #fff;
    padding: 40px 35px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 400px;
    max-width: 90%;
    text-align: center;
}

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

.login-group {
    margin-bottom: 15px;
    text-align: left;
}

.login-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.login-group .required {
    color: red;
    margin-left: 3px;
}

.login-group input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

.login-group input:focus {
    border-color: #1f2937;
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 15px;
}

.login-btn:hover {
    background: #111827;
}

.login-link {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.login-link a {
    color: #1f2937;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.login-error {
    background: #fdecea;
    color: #b71c1c;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}

.is-invalid {
    border: 1px solid #dc3545 !important;
}

.field-error{
    color:#dc3545;
    font-size:13px;
    margin-top:6px;
}

/* =======================
   Admin Dashboard
======================= */
.admin-dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 220px;
    background-color: #1f2937;
    color: white;
    padding-top: 60px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

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

.admin-sidebar ul li {
    margin: 15px 0;
}

.admin-sidebar ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 10px 20px;
    border-radius: 5px;
}

.admin-sidebar ul li a:hover {
    background-color: #111827;
}

.admin-dashboard-content {
    margin-left: 220px;
    padding: 80px 20px 20px 20px;
    flex-grow: 1;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.admin-dashboard-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.admin-dashboard-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.admin-section {
    margin-bottom: 40px;
}

.admin-section h3 {
    margin-bottom: 10px;
}

.admin-section table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
}

.admin-section table th,
.admin-section table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.admin-section table th {
    background-color: #1f2937;
    color: white;
}

.admin-section table td a {
    color: #1f2937;
    text-decoration: none;
}

.admin-section table td a:hover {
    text-decoration: underline;
}

/* =======================
   Admin Dashboard Header
======================= */
.admin-header ul{
    list-style:none;
    display:flex;
    align-items:center;
    gap:14px;
    margin:0;
    padding:0;
}

.admin-header-link{
    color:#fff;
    text-decoration:none;
    font-weight:600;
}

.admin-header-link:hover{
    text-decoration:underline;
}

.admin-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: #1f2937;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}

.admin-header h1 {
    font-size: 1.5rem;
}

.admin-header ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.admin-header ul li {
    margin: 0;
}

.admin-header a {
    color: white;
    text-decoration: none;
}

.admin-header a:hover {
    text-decoration: underline;
}

.admin-logout-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: 500;
}

.admin-logout-btn:hover {
    color: #f87171;
}

.admin-welcome {
    font-weight: 500;
}

/* =======================
   Admin Sidebar
======================= */
.admin-sidebar {
    width: 250px;
    background-color: #1f2937;
    color: white;
    padding-top: 60px; /* space for fixed header */
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

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

.admin-sidebar ul li {
    margin: 10px 0;
}

.admin-sidebar ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 10px 20px;
    border-radius: 5px;
}

.admin-sidebar ul li a:hover,
.admin-sidebar ul li a.active {
    background-color: #374151;
}

/* =======================
   Admin Content
======================= */
.admin-dashboard-content {
    margin-left: 250px; /* sidebar width */
    padding: 80px 20px 20px 20px; /* top padding for header */
    flex-grow: 1;
    background-color: #f3f4f6;
    min-height: 100vh;
}


/* =======================
   Admin Companies Page
======================= */

/* Section wrapper */
.admin-section {
    padding: 20px;
}

/* Companies table */
.admin-companies-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
}

.admin-companies-table th,
.admin-companies-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    vertical-align: middle;
}

.admin-companies-table th {
    background-color: #1f2937;
    color: #fff;
}

/* Scroll wrapper */
.admin-companies-table-wrapper {
    overflow-x: auto;
}

/* Common button */
.admin-companies-btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center;
    min-width: 70px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    transition: all 0.2s ease-in-out;
}

/* Table buttons */
.admin-companies-btn-view {
    background-color: #3b82f6;
    color: #fff;
}

.admin-companies-btn-edit {
    background-color: #facc15;
    color: #000;
}

.admin-companies-btn-delete {
    background-color: #ef4444;
    color: #fff;
    border: none;
}

/* Add Company button */
.admin-companies-btn-add {
    background-color: #10b981; /* green */
    color: #fff;
    font-weight: 500;
}
.admin-companies-btn-add:hover {
    background-color: #059669;
}

/* Hover effect for all buttons */
.admin-companies-btn:hover {
    opacity: 0.9;
}

/* company view page */
/* Card wrapper */
.company-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    max-width: 800px;
    margin-top: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Row for each field */
.company-card-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.company-card-row:last-child {
    border-bottom: none;
}

/* Labels */
.company-card .label {
    font-weight: 600;
    color: #374151;
}

/* Values */
.company-card .value {
    color: #1f2937;
}

/* Back button (reuse admin button style) */
.admin-companies-btn-add {
    background-color: #10b981; /* green */
    color: #fff;
    font-weight: 500;
    margin-top: 20px;
    display: inline-block;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.admin-companies-btn-add:hover {
    background-color: #059669;
}


/* =======================
   Admin Pricing Page
======================= */

.admin-pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
}

.admin-pricing-table th,
.admin-pricing-table td {
    border: 1px solid #ccc;
    padding: 12px 10px;
    text-align: left;
    vertical-align: middle;
}

.admin-pricing-table th {
    background-color: #1f2937;
    color: #fff;
}

/* Benefits column styling */
.admin-pricing-table .benefits-cell ul {
    margin: 0;
    padding-left: 20px;
    list-style-position: inside;
}

.admin-pricing-table .benefits-cell li {
    line-height: 1.5;
}

/* Buttons */
.admin-pricing-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    min-width: 70px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
}

.admin-pricing-btn:hover {
    opacity: 0.9;
}

/* Add/Edit/Delete buttons */
.admin-pricing-btn-edit {
    background-color: #facc15;
    color: #000;
}

.admin-pricing-btn-delete {
    background-color: #ef4444;
    color: #fff;
}

/* Add Pricing Button */
.admin-pricing-btn-add {
    background-color: #3b82f6; /* blue */
    color: #fff;
}

.admin-pricing-btn-add:hover {
    background-color: #2563eb; /* darker blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Pricing Buttons Container */
.pricing-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

/* Filter Dropdown */
.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    border: none;
    border-radius: 5px;
    padding: 15px;
    z-index: 100;
    box-shadow: none;
    outline: none;
}

/* Keep dropdown open on hover or focus */
.filter-dropdown:hover .filter-content,
.filter-dropdown:focus-within .filter-content {
    display: block;
}

/* Filter input */
.filter-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Filter buttons inside dropdown */
.filter-buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.admin-pricing-btn-apply {
    background-color: #10b981; /* green */
    color: #fff;
    border: none;
}

.admin-pricing-btn-apply:hover {
    background-color: #059669;
}

.admin-pricing-btn-reset {
    background-color: #ef4444; /* red */
    color: #fff;
}

.admin-pricing-btn-reset:hover {
    background-color: #dc2626; /* darker red */
}

/* Table container full width */
.table-container {
    width: 100%;
}

/* Status badges */
.status.active {
    color: #fff;
    background-color: #22c55e;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.status.inactive {
    color: #fff;
    background-color: #ef4444;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* =======================
   Add/Remove Benefit Button Styles
======================= */

.benefit-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* Add Benefit Button */
.btn-add-benefit {
    background-color: #3b82f6; /* blue */
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
}

.btn-add-benefit:hover {
    background-color: #2563eb; /* darker blue on hover */
    transform: translateY(-2px);
}

/* Remove Benefit Button */
.btn-remove-benefit {
    background-color: #ef4444; /* red */
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
}

.btn-remove-benefit:hover {
    background-color: #dc2626; /* darker red on hover */
    transform: translateY(-2px);
}

/* Benefit Input Field */
.benefit-input input {
    width: 80%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}

/* Benefit Input field on focus */
.benefit-input input:focus {
    border-color: #007bff; /* blue focus */
    outline: none;
}

/* Input Field and Button Alignment */
.benefit-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* Ensuring the Add and Remove buttons are spaced correctly */
.benefit-input button {
    flex-shrink: 0;
}

/* Add Benefit Button on Hover */
.btn-add-benefit:hover {
    background-color: #2563eb; /* darker blue */
    transform: translateY(-2px);
}

/* Remove Benefit Button on Hover */
.btn-remove-benefit:hover {
    background-color: #dc2626; /* darker red */
    transform: translateY(-2px);
}


/* Form submit button */
.btn-submit {
    padding: 10px 16px;
    background-color: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-submit:hover {
    opacity: 0.9;
}

/* Admin Form */
.admin-form {
    max-width: 600px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-top: 20px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.admin-form-group label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #111827;
}

.admin-input {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    color: #111827;
}

.admin-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb;
}

.admin-btn {
    padding: 10px 20px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.admin-btn:hover {
    background-color: #1d4ed8;
}

/* Validation Errors */
.admin-form-error {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* ====================
    setting page
======================= */
/* Add this to your CSS file */
.admin-settings {
    padding: 30px;
    background-color: #f8f8f8;
}

.page-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.settings-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.settings-section {
    margin-bottom: 30px;
}

.settings-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #555;
}

.input-wrapper {
    margin-bottom: 20px;
}

.input-wrapper label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.input-wrapper textarea {
    resize: vertical;
}

.input-wrapper input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.btn-submit {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #45a049;
}

.alert {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}


/* =======================
   Company Dashboard with Header
======================= */
.company-dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Fixed Header (common) */
.company-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: #1f2937;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}

.company-header h1 {
    font-size: 1.5rem;
}

.company-header ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.company-header a {
    color: white;
    text-decoration: none;
}

.company-header a:hover {
    text-decoration: underline;
}

/* Sidebar (starts below header) */
.company-sidebar {
    width: 250px;
    background-color: #1f2937;
    color: white;
    padding-top: 60px; /* space for fixed header */
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

/* Sidebar title */
.company-sidebar h2 {
    color: #fff;
    text-align: center;
    margin: 20px 0;
    font-size: 1.5rem;
}

/* Sidebar menu */
.company-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.company-sidebar ul li {
    margin: 10px 0;
}

.company-sidebar ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 10px 20px;
    border-radius: 5px;
}

.company-sidebar ul li a:hover,
.company-sidebar ul li a.active {
    background-color: #374151;
}

/* Main Content (push right of sidebar, below header) */
.company-dashboard-content {
    margin-left: 250px; /* sidebar width */
    padding: 80px 20px 20px 20px; /* top padding for header */
    flex-grow: 1;
    background-color: #f3f4f6;
    min-height: 100vh;
}

.company-dashboard-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.company-dashboard-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* Buttons */
.company-btn {
    padding: 10px 20px;
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.company-btn:hover {
    background: #111827;
}

/* Responsive Fix */
@media (max-width: 768px) {
    .company-sidebar { width: 180px; }
    .company-dashboard-content { margin-left: 180px; }
}

.company-sidebar ul li a.active {
    background-color: #111827;
    border-radius: 5px;
}


/* =======================
   Forms & Buttons
======================= */
.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn-submit {
    padding: 10px 20px;
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-submit:hover {
    background: #111827;
}

/* =======================
   Tables for all
======================= */
.table-container {
    overflow-x: auto;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
}

.table-container th,
.table-container td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.table-container th {
    background: #1f2937;
    color: #fff;
}

/* =======================
   Responsive
======================= */
@media (max-width: 768px) {
    .admin-sidebar { width: 180px; }
    .admin-dashboard-content { margin-left: 180px; }

    .company-sidebar { width: 180px; }
    .company-dashboard-content { margin-left: 180px; }
}

/* =======================
   Company Dashboard
======================= */
.company-dashboard-overview {
    padding: 20px;
}

.company-dashboard-overview h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.company-dashboard-overview p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #555;
}

/* Quick Add Buttons */
.quick-add-buttons {
    margin-bottom: 20px;
}

.quick-add-buttons .btn-primary {
    background-color: #1f2937;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    margin-right: 10px;
    border-radius: 5px;
    font-weight: 500;
}

.quick-add-buttons .btn-primary:hover {
    background-color: #111827;
}

/* Dashboard Sections */
.dashboard-section {
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.dashboard-section h3 {
    margin-bottom: 15px;
    color: #1f2937;
}

.dashboard-section table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-section table th,
.dashboard-section table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.dashboard-section table th {
    background-color: #1f2937;
    color: #fff;
}

.dashboard-section table td a {
    color: #1f2937;
    text-decoration: none;
    margin-right: 5px;
}

.dashboard-section table td a:hover {
    text-decoration: underline;
}

/* =======================
Customer Page CSS company side
======================= */

/* Actions + Filter Wrapper */
.customer-actions-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center; /* vertical alignment of buttons */
    margin-bottom: 20px; /* spacing below actions */
}

/* Common Company Button Style */
.company-btn {
    background-color:  #111827; /* original blue */
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    height: 38px;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
}

.company-btn:hover {
    background-color: #2563eb;
}

/* Filter Dropdown Wrapper */
.customer-filter-wrapper {
    position: relative; /* makes dropdown absolute relative to button */
    display: inline-block;
}

/* Filter Button inside wrapper */
.customer-filter-wrapper .company-btn {
    min-width: 140px; /* match other buttons */
    height: 38px;
}

/* Dropdown Panel */
.customer-filter-dropdown {
    display: none;
    position: absolute; /* absolute relative to wrapper */
    top: 100%; /* directly below button */
    left: 0;   /* align left edge with button */
    margin-top: 4px; /* small gap */
    background-color: #111827;
    color: #fff;
    border: 1px solid #d1d5db;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 220px;
    width: max-content;
}

/* Inputs inside dropdown */
.customer-filter-dropdown .customer-input,
.customer-filter-dropdown .customer-select {
    width: 100%;
    margin-bottom: 10px;
    padding: 6px 10px;
    font-size: 0.95rem;
    border: 1px solid #374151;
    border-radius: 4px;
    outline: none;
    background-color: #1f2937;
    color: #fff;
}

.customer-filter-dropdown .customer-input::placeholder {
    color: #9ca3af;
}

.customer-filter-dropdown .customer-select {
    background-color: #1f2937;
    color: #fff;
}

.customer-filter-dropdown .customer-input:focus,
.customer-filter-dropdown .customer-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Buttons inside dropdown */
.customer-filter-buttons {
    display: flex;
    gap: 10px;
}

.customer-filter-buttons .customer-btn {
    flex: 1;
    background-color: #3b82f6;
    color: #fff;
    border-radius: 4px;
    padding: 6px 12px;
}

.customer-filter-buttons .customer-btn:hover {
    background-color: #2563eb;
}

.customer-filter-buttons .customer-btn-reset {
    flex: 1;
    background-color: #6b7280;
    color: #fff;

    /* 🔑 FIX ALIGNMENT */
    height: 38px;                /* SAME as Apply */
    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    line-height: 1;
    padding: 0;                  /* remove anchor default padding */
}


.customer-filter-buttons .customer-btn-reset:hover {
    background-color: #4b5563;
}

/* Customer Table Header Flex for Name + Sort Arrow */
.customer-th-flex {
    display: flex;
    align-items: center;
    gap: 5px; /* spacing between name and arrow */
    color: #fff;
}

.customer-th-flex span {
    color: #fff; /* Name text white */
}

.customer-sort-link {
    color: #fff; /* Arrow color white */
    text-decoration: none;
    font-size: 0.9rem;
}

.customer-action-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* spacing between buttons */
}

.customer-action-btn {
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
    display: inline-block;
}

/* View Button */
.customer-action-btn.view {
    background-color: #2563eb;
}
.customer-action-btn.view:hover {
    background-color: #1d4ed8;
    transform: scale(1.05);
}

/* Edit Button */
.customer-action-btn.edit {
    background-color: #111827;
}
.customer-action-btn.edit:hover {
    background-color: #1f2937;
    transform: scale(1.05);
}

/* Delete Button */
.customer-action-btn.delete {
    background-color: #dc2626;
}
.customer-action-btn.delete:hover {
    background-color: #b91c1c;
    transform: scale(1.05);
}

/* customer edit page */
/* ===== Customer Edit Form (unique customer- prefix) ===== */
.customer-edit-section {
    max-width: 920px;
    margin: 30px auto;
    background: #ffffff;
    padding: 22px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(16,24,40,0.06);
    color: #111827;
}

.customer-title {
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-weight: 600;
}

.customer-flash-success {
    background: #ecfdf5;
    color: #065f46;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.customer-flash-error {
    background: #fff1f2;
    color: #7f1d1d;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.customer-back-row {
    margin-bottom: 14px;
}

/* the card that contains the form */
.customer-form-card {
    padding: 8px 0;
}

/* responsive grid for fields */
.customer-form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* single field */
.customer-field-group {
    display: flex;
    flex-direction: column;
}

.customer-label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #111827;
    font-size: 0.95rem;
}

.customer-required {
    color: #dc2626;
    margin-left: 4px;
}

/* inputs */
.customer-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 0.95rem;
    transition: box-shadow .12s ease, border-color .12s ease;
}

.customer-input:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 4px rgba(17,24,39,0.04);
}

/* error under field */
.customer-error {
    color: #dc2626;
    margin-top: 6px;
    font-size: 0.875rem;
}

/* actions row */
.customer-form-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

/* reuse company-btn but add small modifiers */
.customer-save-btn {
    min-width: 140px;
}

.customer-cancel-btn {
    background: #e5e7eb;
    color: #111827;
}
.customer-cancel-btn:hover {
    background: #d1d5db;
}

/* small responsive tweak */
@media (max-width: 520px) {
    .customer-form-grid {
        grid-template-columns: 1fr;
    }
    .customer-form-actions {
        flex-direction: column;
        gap: 10px;
    }
}

/* customer view page */
/* ===== CUSTOMER VIEW PAGE ===== */
.customer-view-container {
    max-width: 850px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 10px;
    padding: 25px 30px;
    box-shadow: 0 8px 25px rgba(17, 24, 39, 0.08);
    color: #111827;
}

.customer-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.customer-view-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

.customer-view-back {
    background: #111827;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: background 0.3s ease;
    text-decoration: none;
}

.customer-view-back:hover {
    background: #1f2937;
}

/* Card styling for customer details */
.customer-view-card {
    display: grid;
    gap: 14px;
    background: #f9fafb;
    padding: 22px 25px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Each row (label + value) */
.customer-view-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.customer-view-row:last-child {
    border-bottom: none;
}

.customer-view-label {
    font-weight: 600;
    color: #374151;
    width: 40%;
}

.customer-view-value {
    color: #111827;
    width: 55%;
    text-align: right;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 600px) {
    .customer-view-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .customer-view-label,
    .customer-view-value {
        width: 100%;
        text-align: left;
    }
    .customer-view-value {
        margin-top: 4px;
    }
}

/* product create page */
/* =========================
   Product Form (Create/Edit) 
   ========================= */
.product-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.product-form-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.product-form-container label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.product-form-container input[type="text"],
.product-form-container input[type="number"],
.product-form-container textarea,
.product-form-container select {
    width: 100%;
    padding: 8px 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Form Buttons */
.product-btn-next,
.product-btn-prev,
.product-btn-submit {
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    background-color: #007BFF;
    color: #fff;
    cursor: pointer;
    margin-right: 5px;
}

.product-btn-prev {
    background-color: #6c757d;
}

.product-btn-next:hover,
.product-btn-prev:hover,
.product-btn-submit:hover {
    opacity: 0.9;
}

.product-step-buttons {
    margin-top: 20px;
}

/* Quantity Controls */
.product-quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.product-quantity-control button {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    cursor: pointer;
    font-weight: bold;
}

.product-quantity-control input {
    width: 60px;
    text-align: center;
}

/* =========================
   Product Table (Index)
   ========================= */
.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.product-table th,
.product-table td {
    padding: 10px 8px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #ddd;
}

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

/* Small product image */
.product-image-small {
    width: 150px;
    height: 100px;
    object-fit: fill;
    border-radius: 4px;
}

/* Table Buttons */
.product-btn {
    padding: 5px 10px;
    border-radius: 4px;
    border: none;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-right: 5px;
}

.product-btn-view {
    background-color: #17a2b8; /* Blue */
}

.product-btn-edit {
    background-color: #28a745; /* Green */
}

.product-btn.product-btn-pdf {
    background-color: #0d6efd;
    color: #fff;
    border: 1px solid #0d6efd;
}

.product-btn.product-btn-pdf:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}


.product-btn-delete {
    background-color: #dc3545; /* Red */
}

.product-btn:hover {
    opacity: 0.85;
}

/* =========================
   Product View Page
   ========================= */
.product-view-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.product-view-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.product-view-image {
    text-align: center;
    margin-bottom: 20px;
}

.product-view-details p {
    margin: 10px 0;
    font-size: 15px;
}

.product-view-buttons {
    margin-top: 20px;
    text-align: center;
}

/* Slightly bigger image for view page */
.product-view-image img.product-image-small {
    width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
}

/* View page buttons */
.product-view-buttons .product-btn-edit {
    background-color: #28a745; /* Green */
}

.product-view-buttons .product-btn-view {
    background-color: #17a2b8; /* Blue */
}


/* =========================
   Misc Styles
   ========================= */
.product-error {
    color: red;
    font-size: 13px;
    margin-top: 5px;
}

.product-success {
    color: green;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Product Filter */
.product-filter-form input.product-filter-input {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

.product-filter-form button {
    padding: 5px 10px;
    border-radius: 4px;
    border: none;
    background-color: #007BFF;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.product-filter-form button:hover {
    opacity: 0.85;
}

.filter-reset-btn {
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}

/* product remove button for edit page */
.product-view-image img {
    display: block;
    margin-bottom: 10px; /* space between image and button */
}


/* Quick Quotations Table Styling */
.quick-quotations-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.quick-quotations-table th, 
.quick-quotations-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}
.quick-quotations-table th {
    background-color: #333;
    color: #fff;
}
.quick-quotations-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.quick-quotations-table tr:hover {
    background-color: #e6f7ff;
}

/* Buttons */
.btn-custom {
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}
.btn-info {
    background-color: #17a2b8;
    color: #fff;
}
.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

/* Status Badges */
.badge {
    padding: 3px 6px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.9em;
}
.badge-draft { background-color: #6c757d; }
.badge-sent { background-color: #007bff; }
.badge-accepted { background-color: #28a745; }
.badge-rejected { background-color: #dc3545; }

/* Alert message */
.alert-success {
    margin-bottom: 15px;
    color: green;
    font-weight: bold;
}

.quotation-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    /* max-width: 700px; */
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.btn-submit {
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 16px;
}

.required {
    color: red;
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    right:0;
    bottom:0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 500px;
    max-width: 90%;
    position: relative;
}

.modal-content h4 {
    margin-bottom: 20px;
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    cursor: pointer;
}

.table-responsive {
    overflow-x: auto;
}

/* edit summary */
.summary-sticky {
    z-index: 100;
}


/* =======================
   Terms & Conditions Page
======================= */
.company-section-tnc {
    padding: 20px;
    background-color: #f3f4f6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Heading */
.company-section-tnc h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Buttons */
.btn-tnc {
    padding: 10px 20px;
    background-color: #1f2937;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 25px; /* ✅ Add space below button */
}
.btn-tnc:hover {
    background-color: #111827;
}

/* Table Wrapper */
.table-container-tnc {
    overflow-x: auto;
    margin-top: 0; /* optional, reset if inline class used */
    margin-bottom: 20px;
}

/* Table */
.table-tnc {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.table-tnc th,
.table-tnc td {
    border: 1px solid #ccc;
    padding: 12px 15px;
    text-align: center;
    vertical-align: middle;
}

.table-tnc th {
    background-color: #1f2937;
    color: #fff;
}

.table-tnc tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table-tnc tr:hover {
    background-color: #e6f7ff;
}

/* Badges */
.badge-tnc {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.badge-tnc.active {
    background-color: #28a745;
    color: #fff;
}

.badge-tnc.inactive {
    background-color: #6c757d;
    color: #fff;
}

.badge-tnc.product {
    background-color: #17a2b8;
    color: #fff;
    margin: 2px;
}

/* Modal */
.modal-tnc {
    position: fixed;
    top: 0;
    left: 0;
    right:0;
    bottom:0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content-tnc {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 500px;
    max-width: 90%;
    position: relative;
}

.modal-content-tnc h4 {
    margin-bottom: 20px;
}

.modal-tnc .close-tnc {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    cursor: pointer;
}

/* Form */
.form-group-tnc {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-control-tnc {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

select.form-control-tnc[multiple] {
    height: auto;
    min-height: 120px;
}

.btn-submit-tnc {
    padding: 10px 25px;
    border-radius: 6px;
    background-color: #1f2937;
    color: #fff;
    border: none;
    cursor: pointer;
}
.btn-submit-tnc:hover {
    background-color: #111827;
}

/* view blade print */
@media print {

    /* Hide everything */
    body * {
        visibility: hidden;
    }

    /* Show only T&C card */
    .tnc-card,
    .tnc-card * {
        visibility: visible;
    }

    /* Position T&C nicely on page */
    .tnc-card {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
        border: none;
    }

    /* Hide buttons */
    .tnc-buttons {
        display: none;
    }
}


/* =======================
   Action Buttons (Edit/Delete)
======================= */
.actions-tnc {
    display: flex;
    justify-content: center; /* Center horizontally */
    gap: 10px;               /* Space between buttons */
}

.btn-action-tnc {
    padding: 6px 14px;
    font-size: 0.9rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 70px;         /* Equal width */
}

.action-row {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.action-row form {
    margin: 0;
}

.table td,
.table th {
    vertical-align: middle;
}


/* =========================
   T&C Action Buttons
   ========================= */

   .btn-action-tnc {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    margin-right: 6px;
    line-height: 1.4;
}

/* View + PDF (same style) */
.btn-action-tnc.view {
    background-color: #17a2b8; /* professional blue */
    color: #ffffff;
}

.btn-action-tnc.view:hover {
    background-color: #17a2b8;
    color: #ffffff;
}

.btn-action-tnc.pdf {
    background-color: #0b5ed7; /* professional blue */
    color: #ffffff;
}

.btn-action-tnc.pdf:hover {
    background-color: #0b5ed7;
    color: #ffffff;
}
/* Edit */
.btn-action-tnc.edit {
    background-color: #198754;
    color: #ffffff;
}

.btn-action-tnc.edit:hover {
    background-color: #157347;
}

/* Delete */
.btn-action-tnc.delete {
    background-color: #dc3545;
    color: #ffffff;
}

.btn-action-tnc.delete:hover {
    background-color: #bb2d3b;
}

.action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.action-row form {
    margin: 0;
}


/* =======================
   Automation Section
======================= */
.company-section-automation {
    padding: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.automation-section {
    margin-bottom: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* =======================
   Tables
======================= */
.table-automation {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.95rem;
}

.table-automation th, .table-automation td {
    border: 1px solid #dee2e6;
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}

.table-automation th {
    background-color: #111827; /* Header color */
    color: #fff;
    font-weight: 600;
}

.table-automation tr:nth-child(even) {
    background-color: #f1f3f5;
}

.table-automation tr:hover {
    background-color: #e1e3e8; /* subtle hover */
}

/* =======================
   Buttons
======================= */
.btn-automation {
    background: #111827; /* header-like color */
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
    margin-bottom: 15px;
}

.btn-automation:hover {
    background: #1f2937; /* hover effect */
}

/* Green submit/save buttons */
.btn-submit-automation {
    background: #198754; /* green */
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-submit-automation:hover {
    background: #157347; /* darker green on hover */
}

/* =======================
   Modal
======================= */
.modal-automation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
}

.modal-content-automation {
    background: #fff;
    padding: 30px 25px;
    border-radius: 10px;
    width: 450px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content-automation .close {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    transition: color 0.3s;
}

.modal-content-automation .close:hover {
    color: #111827; /* close hover color */
}

/* =======================
   Form Groups
======================= */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 6px;
    color: #495057;
}

.form-control {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: #111827; /* focus border color */
    box-shadow: 0 0 5px rgba(17,24,39,0.3);
    outline: none;
}

/* =======================
   Responsive Adjustments
======================= */
@media(max-width: 576px) {
    .modal-content-automation {
        width: 90%;
        padding: 20px 15px;
    }
}

/*=======================
company seeting - cs
========================*/

/* Company Settings page custom CSS */
.cs-container {
    max-width: 900px;
    margin: 0 20px 20px 20px; /* Shift content slightly up and left */
    padding: 0 5px;        /* Slightly less horizontal padding */
}


.cs-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.cs-subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 30px;
}

.cs-success-msg {
    background-color: #d1fae5;
    color: #065f46;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.cs-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.cs-card-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 5px;
}

.cs-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.cs-input-group label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.cs-input-group input,
.cs-input-group textarea {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    color: #111;
}

.cs-input-group textarea {
    min-height: 80px;
    resize: vertical;
}

.cs-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
}

.cs-btn-save {
    background-color: #16a34a;
    color: #fff;
}

.cs-btn-save:hover {
    background-color: #15803d;
}

.cs-btn-api {
    background-color: #2563eb;
    color: #fff;
}

.cs-btn-api:hover {
    background-color: #1d4ed8;
}


/*=====================
company help and support
=======================*/

/* Help & Support page custom CSS */
.hs-container{
    max-width: 1050px;   /* bigger form width */
    margin: 25px auto;
    padding: 0 20px;
}

.hs-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.hs-subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 30px;
}

.hs-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.hs-card-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 5px;
}

.hs-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.hs-input-group label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.hs-input-group input,
.hs-input-group textarea {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    color: #111;
}

.hs-input-group textarea {
    min-height: 80px;
    resize: vertical;
}

.hs-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
}

.hs-btn-submit {
    background-color: #16a34a;
    color: #fff;
}

.hs-btn-submit:hover {
    background-color: #15803d;
}

.hs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.hs-table th,
.hs-table td {
    padding: 10px;
    border: 1px solid #e5e7eb;
    text-align: left;
    font-size: 0.95rem;
}

.hs-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
}

.hs-open { background-color: #16a34a; }
.hs-closed { background-color: #6b7280; }

.hs-no-tickets {
    color: #555;
    font-style: italic;
}

/* create blade of help css */
/* Header row for create page */
.hs-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:16px;
}

/* Back button should look like your UI */
.hs-btn-back{
    background:#e5e7eb;
    color:#111827;
    border:1px solid #d1d5db;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:36px;
    padding:0 12px;
    border-radius:8px;
    font-weight:600;
    font-size:20px;
    white-space:nowrap;
}

.hs-btn-back:hover{
    background:#d1d5db;
}

/* Better card look */
.hs-card{
    background:#fff;
    border:1px solid #e5e7eb;
    padding:28px 30px;   /* bigger padding */
    border-radius:12px;
    margin-bottom:25px;
    box-shadow:0 10px 30px rgba(0,0,0,0.04);
}

/* Better spacing */
.hs-input-group{
    margin-bottom:18px;
}

.hs-input-group label{
    font-weight:600;
    margin-bottom:6px;
    color:#374151;
    font-size:15px;   /* bigger label */
}

.hs-input-group input,
.hs-input-group textarea{
    padding:13px 14px;
    border:1px solid #cbd5e1;
    border-radius:8px;
    font-size:15px;   /* bigger input text */
    color:#111;
    background:#fff;
}

.hs-input-group textarea{
    min-height:120px;  /* bigger textarea */
}

.hs-input-group input:focus,
.hs-input-group textarea:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:none;
}

/* Title + subtitle spacing */
.hs-title{
    font-size:32px;
    font-weight:700;
    margin: 0;
}
.hs-subtitle{
    font-size:16px;
    color:#6b7280;
    margin: 6px 0 0;
}

/* Submit button match your header size */
.hs-btn-submit{
    background:#16a34a;
    color:#fff;
    height:42px;
    padding:0 22px;
    border-radius:8px;
    font-size:15px;
    font-weight:600;
}

/*=====================
company profile
=======================*/
.profile-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.profile-container h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.profile-details p {
    font-size: 16px;
    margin-bottom: 10px;
}

.btn-edit, .btn-cancel, .btn-submit {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.btn-edit {
    background-color: #007bff;
    color: white;
}

.btn-edit:hover {
    background-color: #0069d9;
}

.btn-cancel {
    background-color: #ccc;
    color: #333;
}

.btn-cancel:hover {
    background-color: #b3b3b3;
}

.btn-submit {
    background-color: #4caf50;
    color: white;
}

.btn-submit:hover {
    background-color: #45a049;
}

.profile-form .form-group {
    margin-bottom: 15px;
}

.profile-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.profile-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: border 0.3s;
}

.profile-form input:focus {
    border-color: #4caf50;
    outline: none;
}

/* =======================
   Toastr Custom Overrides
======================= */
#toast-container {
    top: 70px !important; /* Push it below the 60px header */
}

#toast-container > div {
    opacity: 1 !important; /* Ensure it doesn't blend with background */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important; /* Add shadow to make it pop */
}

/* ============================= */
/* FOOTER */
/* ============================= */

.site-footer{
    background:#111827;
    color:#d1d5db;
    padding:50px 0 20px;
}

.footer-container{
    max-width:1200px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
}

.footer-left{
    max-width:400px;
}

.footer-left h3{
    color:#fff;
    margin-bottom:10px;
}

.footer-left p{
    font-size:15px;
    line-height:1.6;
}

.footer-right{
    display:flex;
    gap:25px;
}

.footer-right a{
    color:#d1d5db;
    text-decoration:none;
    font-weight:500;
}

.footer-right a:hover{
    color:#fff;
}

.footer-bottom{
    text-align:center;
    margin-top:40px;
    font-size:14px;
    border-top:1px solid #374151;
    padding-top:20px;
}