﻿body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f9f9f9;
    height: 100%;
    overflow: auto;
}

.layout {
    display: flex;
    min-height: 100vh;
    overflow: auto;
}

.sidebar {
    width: 260px;
    background: #074068;/*#164265*/
    padding: 2px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.brand {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #0a1d3b;
}

    .brand span {
        color: #007bff;
    }

.user-profile {
    margin-bottom: 30px;
}

.profile-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    background: #F18701;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
}

.name {
    font-weight: bold;
    font-size: 16px;
    color: white;
}

/*.credits {
    margin-top: 10px;
    font-size: 13px;
    color: #555;
}

.dashcredit-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: 6px;
    margin-top: 5px;
}

.dashrecharge-btn {
    background-color: #F18701;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}*/

.dashcredit-recharge-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 5px;
}

.dashcredit-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 5px;
    padding: 6px 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex-grow: 1;
}

/*.icon-box {
    background-color: #f9b115;
    color: white;
    padding: 5px;
    border-radius: 8px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}*/

.dashcredit-card .label {
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.dashcredit-card .value {
    font-size: 15px;
    font-weight: bold;
    color: #2d2d2d;
}

.dashrecharge-btn {
    background-color: #f18701;
    color: white;
    font-weight: bold;
    border: none;
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 5px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    height: 58px;
}

.dashrecharge-btn:hover {
    background-color: #d67400;
}


.menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-section {
    margin: 15px 15px 5px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    color: #999;
}

.menu a {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    color: #f3ffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    gap: 10px;
}

    .menu a:hover {
        background: #f0f0f0;
        color:#000000;
    }

    .menu a.active {
        background: white;
        border-left: 6px solid #F18701;
        color: #000000;
        text-decoration: none;
    }

.topbar {
    background: #052b4e;
    padding: 10px 20px;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* ✅ KEY CHANGE */
    height: 60px; /* Increase height to fit logo comfortably */
}

    .topbar .firm-name {
        font-weight: bold;
        white-space: nowrap;
    }

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow-y: auto;
    max-height: 100vh; /* allow scrolling within the main area */
}

.content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}



@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
    }

    .brand {
        display: none; /* optional: hide on small screen */
    }

    .user-profile {
        display: none; /* optional: hide on small screen */
    }

    .menu {
        flex-direction: row;
        gap: 15px;
        flex-wrap: nowrap;
    }

    .menu-section {
        display: none;
    }

    .menu a {
        flex: none;
        font-size: 12px;
        padding: 6px 10px;
        border-left: none;
        border-bottom: 2px solid transparent;
    }

        .menu a.active {
            border-bottom: 2px solid orange;
            background: transparent;
        }

    .main-content {
        width: 100%;
    }

    .topbar {
        justify-content: center;
    }

    .content {
        padding: 10px;
    }
}

.page-container {
    padding: 20px 30px;
    font-family: 'Segoe UI', sans-serif;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

p {
    font-size: 12px;
    color: #666;
}

.search-panel {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border-top: 5px solid #F18701; /* Orange header */
    box-shadow: 0px 5px 10px rgba(0,0,0,0.15);
    margin-bottom: 25px;
}

.search-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

    .search-fields input {
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 14px;
    }

.search-actions {
    display: flex;
    justify-content: flex-end; /* Pushes the 'Clear' and 'Search' buttons to the right */
    gap: 10px; /* Spacing between buttons */
    padding-top: 10px;
}

    .search-actions button,
    .search-actions a.btn-clear {
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 14px;
        margin-left: 10px;
        border: none;
        cursor: pointer;
        text-decoration: none;
    }

.btn-search {
    background-color: #004766;
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
}


.btn-clear {
    background: #eee;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
}

.btn-add {
    background-color: #882c9b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-primary {
    background-color: #008000;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.table {
    background: white;
    border-radius: 10px;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.05);
    padding: 20px;
}

.table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th {
    background-color: #fff0de; 
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    color: #333;
}

.table td {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.table tr:hover {
    background-color: #f9f9f9;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.upload-row input {
    width: 100%;
}

.form-search-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.form-search-row2 {
    display: flex;
    gap: 20rem;
    margin-bottom: 1rem;
}

.upload-search-row {
    min-width: 150px;
    flex-grow: 1;
    flex-basis: auto;
}

.upload-search-row input {
    width: 100%;
    padding: 4px;
    box-sizing: border-box;
}

.modal-overlay {
    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;
}

.form-actions {
    display: flex;
    justify-content: space-between;
}
.table-icon-button {
    background: #eee;
    border: none;
    padding: 4px 8px;
    margin-right: 5px;
    border-radius: 4px;
    cursor: pointer;
}

.badge.certificate {
    background: #ffc107;
    color: #000;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: bold;
}

.modal-content {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-box {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wallet-icon {
    font-size: 24px;
    color: #007bff;
}

.credit-box {
    font-size: 36px;
    font-weight: bold;
    color: #05456d;
}

.recharge-amount-btn {
    border: 1px solid #F18701;
    color: #F18701;
    background-color: #fff;
    font-weight: 600;
    width: 25%;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px 0 0 5px;
}

.recharge-amount-btn:last-child {
    border-radius: 0 5px 5px 0;
}

.recharge-amount-btn.active,
.recharge-amount-btn:hover {
    background-color: #fff6e5;
    color: #F18701;
}

.recharge-btn {
    background-color: #F18701;
    color: white;
    font-weight: bold;
    padding: 10px 0;
    width: 100%;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.action-buttons button {
    margin: 0 5px;
}

.message {
    font-weight: bold;
    margin-top: 15px;
    text-align: center;
}

.message.success {
    color: green;
}

.message.error {
    color: red;
}

.credits-card {
    background-color: #05456d;
    color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.credits-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.credits-value {
    font-size: 36px;
    font-weight: bold;
    color: white;
}

.credits-subtext {
    font-size: 13px;
    color: #d0e3f0;
    margin-top: 5px;
}

.credits-icon {
    font-size: 36px;
    color: white;
}

.capture-controls {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.photo-container {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 2px;
    height: 75%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .photo-container video,
    .photo-container canvas,
    .photo-container img {
        display: block;
        margin: auto;
        max-height: 150px;
        max-width: 100%;
    }

.signature-container {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ccc;
    cursor: pointer;
}

.pen-width {
    height: 28px;
    font-size: 12px;
    padding: 0 5px;
}

.toolbar-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #ccc;
    cursor: pointer;
}

.bg-black {
    background-color: black;
}

.bg-blue {
    background-color: blue;
}

.bg-red {
    background-color: red;
}

.bg-green {
    background-color: green;
}

.bg-purple {
    background-color: purple;
}


/* Make the editor look like a document */
#htmlEditor {
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    line-height: 1.5;
    padding: 1in;
    background-color: white;
    background-image: linear-gradient(#f9f9f9 1px, transparent 1px);
    background-size: 100% 24px;
    border-left: 1px solid #dee2e6 !important;
    border-right: 1px solid #dee2e6 !important;
}

.tox-tinymce {
    border: 1px solid #dee2e6 !important;
    border-radius: 0.25rem !important;
}

.editor-container {
    width: 100%;
    max-width: 210mm;
    margin: 0 auto;
}

.editor-toolbar {
    border-radius: 0.25rem 0.25rem 0 0;
}

/* Make the editor look like a document */
.card {
    background-color: #f8f9fa;
}

/* Add this to your CSS */
.dark-mode {
    background-color: #222;
    color: #eee;
}

#editorContent.dark-mode {
    background-color: #333;
    color: #fff;
    border-color: #444;
}

.report-toggle .toggle-btn {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 5px 15px;
    margin: 0 2px;
    font-size: 0.9rem;
    background: #f8f9fa;
    color: #555;
    transition: all 0.2s;
}

.report-toggle .toggle-btn:hover {
    background: #eee;
    cursor: pointer;
}

.report-toggle .toggle-btn.active {
    background: #6f42c1; /* Figma purple */
    color: #fff;
    border-color: #6f42c1;
}

select.no-arrow {
    appearance: none; /* Chrome, Safari, Edge */
    -moz-appearance: none; /* Firefox */
    -webkit-appearance: none;
    background: none; /* remove default bg */
    padding-right: 10px; /* space for text */
}

.table td.description-col {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px; /* adjust width */
}

button[name='filter'].active {
    background-color: #ffeacf !important;
    border-color: #F18701 !important;
    border-width: thin !important;
    color: #000 !important; /* keep text readable */
}

.figma-tabs .nav-tabs .nav-link {
    border: none;
    border-radius: 12px;
    margin-right: 8px;
    padding: 10px 28px;
    font-weight: 600;
    background-color: #f3f3f3;
    color: #555;
    transition: all 0.2s ease-in-out;
}

.figma-tabs .nav-tabs .nav-link:hover {
    background-color: #e0e0e0;
    color: #333;
}

.figma-tabs .nav-tabs .nav-link.active {
    background-color: #ff6600;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.video-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 20px solid rgba(0, 0, 0, 0.5); 
    box-sizing: border-box;
    pointer-events: none; 
}

.pagination-row {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-top: 15px; 
    margin-bottom: 10px;
}

/* Style for the record count text to ensure it looks good */
.record-count-display-text {
    padding-left: 5px; /* Slight padding to keep it off the edge */
    font-size: 0.875rem; /* Optional: adjust font size */
    color: #6c757d; /* Optional: grey color for secondary information */
}

/* Remove previous styles if they conflict (important for clean implementation) */
.custom-pagination {
    /* Reset any conflicting styles from the old structure */
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}