:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.container {
    margin: 6px auto;
    padding: 0 250px 0 15px;
}

.btn, .submit {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.btn:hover, .submit:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-sm, .submit {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.add-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.add-section-icon:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    display: inline-block;
    vertical-align: middle;
    margin: 0 10px;
}
.menu_icon {
    width: 40px;
    border-left: 5px solid #aaa;
    display:none;
    vertical-align: middle;
}
.menu_icon .menu_bars {
    border: 2px solid #000;
    margin: 5px;
    width:20px;
}
.menu_icon .menu_bars:nth-child(2) {
    width:30px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}
.admin-nav {
    position: absolute;
    right: 20px;
    top: 0;
}

.admin-nav a {
    font-weight: 600;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
}
.logo_image {
    font-size: 0;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-color);
}

.admin-wrapper {
    display: flex;
    margin-top: 70px;
}

.sidebar {
    width: 250px;
    background-color: var(--primary-color);
    color: white;
    height: calc(100vh - 70px);
    position: fixed;
    padding: 20px 0;
    z-index:12;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    padding: 12px 20px;
    transition: var(--transition);
    cursor: pointer;
}

.sidebar-menu li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-menu a {
    color: white;
    display: block;
}

.sidebar-menu li.active {
    background-color: var(--secondary-color);
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
}

.main-content > .login-card {
    position:relative;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h1 {
    color: var(--primary-color);
}

.breadcrumb {
    color: var(--text-light);
    font-size: 0.9rem;
}

.breadcrumb span {
    margin: 0 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-card .trend {
    display: flex;
    align-items: center;
    margin-top: 10px;
    font-size: 0.9rem;
}

.stat-card .value .trend {
    display: inline-block;
    align-items: center;
    font-size: 0.9rem;
    margin-top: 0;
}

.trend.up {
    color: #2ecc71;
}

.trend.down {
    color: var(--secondary-color);
}

.activity-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.marginbottom20px {
    margin-bottom:20px;
}

.margininnerp-15px-0px p {
    margin:15px 0;
}

.activity-card h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
}

.activity-details {
    flex: 1;
}

.activity-details h4 {
    margin-bottom: 5px;
}

.activity-time {
    color: var(--text-light);
    font-size: 0.9rem;
}

.editor-container {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.filter-controls {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}
.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}
.filter-group select, .filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}
.applications-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}
.applications-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}
.applications-table th, .applications-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.status-approved {
    background-color: #2ecc71;
}
.status-pending {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f39c12;
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-rejected {
    background-color: #e74c3c;
}
.status-review {
    background-color: #3498db;
}
.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 5px;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 12px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--primary-color);
}
.pagination .active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}
.view, .Edit, .Delete, .Restore, .link_button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}
.view {
    background-color: #4CAF50;
}
.view::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #2196F3;
    border-radius: 50%;
    top: 16px;
    left: 16px;
}
.view::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 12px;
    background: white;
    border-radius: 6px;
    top: 14px;
    left: 10px;
    clip-path: ellipse(50% 35% at 50% 50%);
}
.Edit {
    background-color: #FFC107;
}
.Edit::after {
    content: '';
    position: absolute;
    width: 0;
    height: -5px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 12px solid #FF5722;
    top: 22.5px;
    left: 23.5px;
    transform: rotate(135deg);
}
.Edit::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 24px;
    background: #795548;
    top: 8px;
    left: 17px;
    transform: rotate(131deg);
}
.Restore {
    background-color: #88dbe4;
}
.Restore::after {
    content: '';
    position: absolute;
    width: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 12px solid #FF5722;
    top: 22px;
    left: 8px;
    transform: rotate(283deg);
}
.Restore::before {
    content: '';
    position: absolute;
    width: 19px;
    height: 19px;
    border: solid #795548;
    border-width: 5px 5px 0 0;
    top: 8px;
    left: 8px;
    transform: rotate(64deg);
    border-radius: 50%;
}
.Delete {
    background-color: #F44336;
}
.Delete::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 18px;
    background: #ffffff;
    top: 14px;
    left: 12px;
    border-radius: 2px;
}
.Delete::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 4px;
    background: #ffffff;
    top: 9px;
    left: 9.5px;
}
.Deleted {
    opacity:0.5;
}

.section-list {
    margin-bottom: 30px;
}

.section-item, .pagetitle {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.section-item:hover, .pagetitle:hover {
    background-color: #e0e5e9;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-title {
    font-weight: 600;
    color: var(--primary-color);
}

.section-actions {
    display: flex;
    gap: 8px;
}

.section-content {
    padding: 0;
    background-color: white;
    border-radius: 5px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.expanded .section-content {
    padding: 10px;
}
.section-item.expanded .section-content, .pagetitle .section-content {
    max-height: 2000px;
    overflow:auto;
}

.section-content .remove-cause:nth-child(1){
    display:none;
    visibility:hidden;
    opacity:0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.image-upload {
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.image-upload:hover {
    border-color: var(--accent-color);
    background-color: rgba(52, 152, 219, 0.05);
}

.image-preview {
    max-width: 100%;
    max-height: 200px;
    margin-top: 10px;
    display: none;
}

.add-section-panel {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.section-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.section-type {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.section-type:hover {
    border-color: var(--accent-color);
    box-shadow: var(--box-shadow);
}

.section-type-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.position-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
}
.position-control label {
    font-weight: 600;
    color: var(--primary-color);
}

.position-control input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.add-section-between {
    margin: 10px 0;
    text-align: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 13;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--box-shadow);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-item-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.gallery-item-actions button {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 5px 8px;
    cursor: pointer;
    border-radius: 3px;
}

.links-files-list {
    margin-bottom: 15px;
}

.link-file-item {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f8f9fa;
}

.link-file-actions {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

.upload-progress {
    margin-top: 5px;
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    display: none;
}

.upload-progress-bar {
    height: 5px;
    background-color: var(--accent-color);
    width: 0%;
    transition: width 0.3s ease;
}

.ql-container {
    min-height: 150px;
}

.ql-editor img {
    max-width: 100%;
    height: auto;
}

.ql-editor {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.ql-toolbar {
    border: 1px solid #ddd;
    border-radius: 5px 5px 0 0;
    background-color: #f8f9fa;
}

.notices-table, .highlights-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.notices-table th, .notices-table td, .highlights-table th, .highlights-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.notices-table th, .highlights-table th {
    background-color: var(--primary-color);
    color: white;
}

.notices-table tr:nth-child(even), .highlights-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.notices-table .action-buttons, .highlights-table .action-buttons {
    display: flex;
    gap: 5px;
}
.applications-table .action-buttons {
    width: 88px;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 15px;
}

.pagination button {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    border-radius: 3px;
}

.pagination button.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.pagination button:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
}
.content-popup-overlay {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 12;
}
.content-popup {
    background: white;
    padding: 50px 20px 20px;
    border-radius: 8px;
    width: 90vw;
    height: 80vh;
    overflow-y: auto;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 8px;
    position: relative;
}
.content-popup button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background: rgb(220, 53, 69);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.content-popup div {
    position:relative;
}
.file-name {
    margin-right: 10px;
}
.html-editor {
    border: 1px solid #ccc;
    min-height: 150px;
    background: #fff;
}
.html-editor-toolbar {
    border-bottom: 1px solid #ccc;
    padding: 5px;
    background: #f8f8f8;
}
.html-editor-toolbar button {
    margin: 0 5px;
    padding: 5px 10px;
    cursor: pointer;
}
.html-editor-content {
    padding: 10px;
    min-height: 120px;
}
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }
.ql-size-small { font-size: 0.75em; }
.ql-size-large { font-size: 1.5em; }
.ql-size-huge { font-size: 2.5em; }


.login-container-holder {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    width:100%;
    max-width: 400px;
}

.login-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    margin: 0 auto;
    backface-visibility: hidden;
    position: absolute;
}
.login-card.card-front {
    animation: fadeInUp 0.5s ease;
}
.login-card.card-back {
    margin-bottom: -60px;
}
.card-front {
    transform: rotateY(0deg);
}

.card-back {
    transform: rotateY(180deg);
}

.flipped.login-container {
    transform: rotateY(180deg);
}

.login-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.login-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.login-header p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Custom Lock Icon */
.lock-icon {
    display: inline-block;
    width: 26px;
    height: 27.5px;
    margin-right: 10px;
    vertical-align: middle;
    position: relative;
}
.lock-icon::before {
    content: "";
    position: absolute;
    height: 20px;
    background-color: white;
    border-radius: 3px;
    top: 6px;
    left: 0;
    right: 0;
}

.lock-icon::after {
    content: "";
    position: relative;
    width: 12px;
    height: 15px;
    border: 4px solid white;
    border-radius: 50%;
    top: -5px;
    display: block;
    margin: 0 auto;
}

/* Form Styles */
.login-body {
    padding: 30px;
}

/* Remember Me & Forgot Password */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input {
    width: auto;
}

.forgot-password {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.helpline {
    color: #009638;
    font-weight: 600;
}
.gateway-disclaimer {
    color: #004d62;
    font-weight: 600;
    padding: 20px 0;
}
.helpline a {
    color: red;
}

.NotFound {
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 0;
    right: 0;
    top: 0;
    left: 250px;
    position: absolute;
    padding:20px;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.loader_holder {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.loader {
    color: white;
    padding: 20px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
}
.loader_spinner {
    transform: rotateZ(45deg);
    perspective: 1000px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: #fff;
    display: block;
    vertical-align: middle;
    margin: 10px auto;
}
.loader_spinner:before,
.loader_spinner:after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  border-radius: 50%;
  transform: rotateX(70deg);
  animation: 1s spin linear infinite;
}
.loader_spinner:after {
  color: #FF3D00;
  transform: rotateY(70deg);
  animation-delay: .4s;
}

      @keyframes rotate {
        0% {
          transform: translate(-50%, -50%) rotateZ(0deg);
        }
        100% {
          transform: translate(-50%, -50%) rotateZ(360deg);
        }
      }

      @keyframes rotateccw {
        0% {
          transform: translate(-50%, -50%) rotate(0deg);
        }
        100% {
          transform: translate(-50%, -50%) rotate(-360deg);
        }
      }

      @keyframes spin {
        0%,
        100% {
          box-shadow: .4em 0px 0 0px currentcolor;
        }
        12% {
          box-shadow: .4em .4em 0 0 currentcolor;
        }
        25% {
          box-shadow: 0 .4em 0 0px currentcolor;
        }
        37% {
          box-shadow: -.4em .4em 0 0 currentcolor;
        }
        50% {
          box-shadow: -.4em 0 0 0 currentcolor;
        }
        62% {
          box-shadow: -.4em -.4em 0 0 currentcolor;
        }
        75% {
          box-shadow: 0px -.4em 0 0 currentcolor;
        }
        87% {
          box-shadow: .4em -.4em 0 0 currentcolor;
        }
      }
.logo span {
    vertical-align: middle;
    display: inline-block;
    padding: 0 10px 0 0;
}
.logo_image img {
    max-width: 60px;
    max-height: 60px;
}
.markhomepage {
    margin: 0 auto;
    display: block;
    width: 20px;
    height: 20px;
}
.menuListings {
    background-color: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.nested-list {
    list-style-type: none;
}
.nested-list li {
    padding: 4px 0;
    position: relative;
    padding-left: 5px;
    transition: all 0.3s ease;
}
.nested-list li:hover {
    background-color: var(--hover-color);
    padding-left: 7.5px;
}
.nested-list ul {
    list-style-type: none;
    padding-left: 20px;
    border-left: 1px dashed var(--accent-color);
    margin-top: 5px;
}
.menuListings h2 {
    margin-bottom: 15px;
    color: inherit;
    position: relative;
    display: inline-block;
}
.menuListings h2:after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}
.position_box {
    padding: 2px 2px;
    min-width: 17px;
    font-weight: 700;
    margin-right: 2px;
    background: #139b31;
    display: inline-block;
    text-align: center;
    color: white;
    border-radius: 3px;
    font-size: 10px;
    vertical-align: middle;
    line-height: 1;
}
.edit_button, .delete_button, .save_color_button {
    margin: 0 2px;
    padding: 1px 3px;
    border: 1px solid #b83232;
    border-radius: 3px;
    color: #b83232;
    font-size: 10px;
    color:#000;
    background: #fff;
    transition:all 0.35s;
    cursor:pointer;
}
.edit_button:hover, .delete_button:hover, .save_color_button:hover {
    color:white;
    background: #b83232;
}
.link_button {
    background-color: #43a7d6;
}
.link-icon {
    display: block;
    width: 16px;
    margin-left: 12.5px;
    position: relative;
    height: 2px;
    background: #fff;
}
.link-icon::before, .link-icon::after {
    content: '';
    position: absolute;
    border: 3px solid #fff;
    border-radius: 4px;
    width: 10px;
    height: 5px;
}
.link-icon::after {
    top: -4px;
    left: 9px;
    border-left: 0;
}
.link-icon::before {
    top: -4px;
    left: -6px;
    border-right: 0;
}
.position-control input.colorpicker {
    height: 26px;
    padding: 1px;
    margin: 0;
    border-width: 1px;
    outline: 0;
}
.color_selector .colorpicker {
    padding: 1px 2px;
    vertical-align: middle;
    width: 25px;
}
.color_selector {
    display: inline-block;
    font-size: 13px;
    vertical-align: middle;
}
.color_selector .selectTheColor {
    display: inline-block;
    width: 85px;
    margin: 1px;
}
.color_selector .selectTheColor span {
    display: inline-block;
    width: 60px;
}
.color_selector .save_color_button {
    font-size: 13px;
    padding: 5px 10px;
    vertical-align: middle;
}
.color_selector_section_holder {
    display: inline-block;
    width: 90px;
    vertical-align: middle;
}
.header_padding .form-control {
    width: 20%;
    padding: 10px 2.5%;
}
.displaynone {
    display:none;
}
.cursorpointer {
    cursor:pointer;
}
.iconDiv {
    display: inline-block;
    width: 213px;
    padding: 1px;
}
.iconDiv i {
    color: #414c84;
}
.margin5pxsidewise {
    margin: 0 5px;
}
.remove-option,
.add-option,
.add-field,
.add-above,
.remove-field,
.move-up,
.move-down {
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
}
.add-field, .add-above {
    background-color: #28a745;
    color: #fff;
}
.remove-field {
    background-color: #dc3545;
    color: #fff;
}
.move-up, .move-down {
    background-color: #6b7280;
    color: #fff;
}
.action-buttons {
    gap: 8px;
    margin-top: 16px;
    padding: 0 16px 16px;
    width: 100%;
}
.options-container {
    font-size:0;
}
.filter-group.fieldOptions:empty {
    display:none;
}
.filter-group.fieldOptions {
    position: relative;
    margin-bottom: 10px;
}
.filter-group.fieldOptions input[type="text"] {
    padding-right: 30px;
}
.filter-group.fieldOptions .option-input-multi-amount input[type="text"]:first-child {
    padding-right: 10px;
}
.filter-group.fieldOptions .option-input-multi-date input[type="text"], .filter-group.fieldOptions .option-input-multi-year input[type="text"] {
    padding-right: 10px;
    width: 50%;
}
.option-input-multi-amount input {
    display: inline-block;
    width: 50%;
}
.remove-option {
    background-color: #dc3545;
    color: #fff;
    padding: 11.3px 8px;
    position: absolute;
    right: 0;
    border-radius: 0 5px 5px 0;
}
.add-option {
    background-color: #007bff;
    color: #fff;
    position: absolute;
    padding: 2px 11.3px;
    right: 2.5px;
    left: 2.5px;
    top: 100%;
    border-radius: 0 0 5px 5px;
}
.custom_form_container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.custom_form_container h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 600;
}
.custom_form_container p.decription {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
}

.custom_form_group {
    margin-bottom: 25px;
    position: relative;
}

.custom_form_group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 500;
    font-size: 15px;
}

.custom_form_group label.custom_form_mandatory::after {
    content: " *";
    color: #e74c3c;
}
.custom_form_group label.dynamicLabel {
    font-size: 20px;
    border-bottom: 1px solid #d8d8d8;
    color: #00bea9;
    font-weight: 400;
    text-align: center;
}
.custom_form_group input[type="text"],
.custom_form_group input[type="date"],
.custom_form_group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.custom_form_group input[type="text"]:focus,
.custom_form_group input[type="date"]:focus,
.custom_form_group select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
    background-color: #fff;
}

.custom_form_date_input_wrapper {
    position: relative;
}

.custom_form_calendar_icon {
    position: absolute;
    right: 12px;
    top: 12px;
    cursor: pointer;
    font-size: 18px;
    color: #7f8c8d;
}

.custom_form_date_picker {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.custom_form_date_picker .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.custom_form_date_picker .header button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #3498db;
}

.custom_form_date_picker .days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.custom_form_date_picker .day {
    padding: 5px;
    cursor: pointer;
    border-radius: 3px;
}

.custom_form_date_picker .day:hover:not(.disabled) {
    background: #3498db;
    color: white;
}

.custom_form_date_picker .day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.custom_form_checkbox_group,
.custom_form_radio_group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom_form_checkbox_group label,
.custom_form_radio_group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    color: #34495e;
}

.custom_form_checkbox_group input[type="checkbox"],
.custom_form_radio_group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #3498db;
}

.custom_form_error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    height: 18px;
}

.custom_form_submit_button {
    width: 100%;
    padding: 14px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.custom_form_submit_button:hover {
    background-color: #2980b9;
}
.custom_form_group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px dashed #7f8c8d;
    border-radius: 6px;
    background-color: #f9f9f9;
    cursor: pointer;
}
.custom_form_group input[type="file"]:hover {
    border-color: #3498db;
    background-color: #f0f8ff;
}
.custom_form_file_preview {
    margin-top: 10px;
    display: none;
    position: relative;
    max-width: 100%;
}
.custom_form_file_preview img {
    width:100%;
    max-width: 200px;
    max-height: 200px;
    border-radius: 6px;
    border: 1px solid #ddd;
}
.custom_form_file_preview .file-info {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 6px;
    margin-top: 5px;
}
.custom_form_file_preview .file-icon {
    font-size: 24px;
    margin-right: 10px;
    color: #e74c3c;
}
.custom_form_group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}
.remove-file {
    position: absolute;
    right: -5px;
    top: -5px;
    font-size: 25px;
    border-radius: 50%;
    padding: 2px;
    background: #ff5d45;
    color: white;
    padding: 6px 1px 12.5px;
    line-height: 0;
    cursor: pointer;
}
.roll_selector {
    width: 109px;
    padding: 5px;
    border-radius: 5px;
    border-color: white;
    outline: 0;
}
.label-container {
    margin-bottom: 20px;
}
.add-item, .edit-item, .cancel-edit {
    margin:0 10px 20px;
}
.dropoptionstyle td, table.dropoptionstyle th {
    border: 1px solid;
    padding: 2.5px 10px;
    text-align: left;
}
.dropoptionstyle {
    border: 1px solid;
    padding: 5px;
    border-collapse: collapse;
    width: 100%;
}
.csv-checkbox_holder {
    padding: 5px;
    display: inline-flex;
    width: 200px;
    vertical-align: middle;
}
.csv-checkbox {
    margin: 0 10px;
}
.payment_slip_header {
    text-align: center;
}
.dataform {
    margin: 5px auto;
    display: table;
}
@media print {
    .main-content, .admin-wrapper {
        margin:0;
        padding:0;
    }
    body {
        background:none;
    }
    header, .sidebar, .hideonprint {
        display:none;
    }
    .activity-card {
        box-shadow: 0 0 0 0.5px #d8d8d8;
    }
}
@media (max-width: 768px) {
    .sidebar {
        left: -250px;
        overflow: hidden;
        transition:all 0.5s;
    }
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    .section-type-selector {
        grid-template-columns: 1fr 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .logo span.logo_name, .user-menu .userfullname {
        display:none;
    }
    .menu_icon {
        display:inline-block;
    }
    .showsidebar.sidebar {
        left: 0;
    }
    .modal-overlay, .content-popup-overlay {
        z-index: 11;
    }
    ul.nested-list {
        padding-left: 2.5px;
    }
    .nested-list li {
        padding: 1px 0;
        padding-left: 2.5px;
        font-size:13px;
    }
    .nested-list li::before {
        content: "";
        position: absolute;
        top: 12.5px;
        width: 3px;
        left: -1.5px;
        height: 1px;
        background-color: var(--accent-color);
    }
    .nested-list li:hover {
        padding-left: 2.5px;
    }
    .menuListings {
        border-radius: 5px;
    }
    .applications-table .action-buttons {
        width: auto;
    }
    .custom_form_container {
        padding: 20px;
        margin: 20px;
    }
    .custom_form_group {
        margin-bottom: 20px;
    }
    .NotFound {
        left: 0;
        font-size: 13px;
    }
}
@media (max-width: 576px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        font-size: 10px;
    }
    .add-section-panel {
        font-size: 13px;
    }
    .page-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .section-type-selector {
        grid-template-columns: 1fr;
    }
    .position-control {
        flex-wrap: wrap;
    }
    .notices-table th, .notices-table td, .highlights-table th, .highlights-table td {
        font-size: 0.8rem;
        padding: 8px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .login-body {
        padding: 20px;
    }
    .login-header h2 {
        font-size: 1.5rem;
    }
    .logo_image img {
        max-width: 50px;
        max-height: 50px;
    }
    .container {
        padding: 0 80px 0 15px;
    }
    .user-menu {
        padding: 10px 0;
    }
    .admin-wrapper {
        margin-top: 61px;
    }
    .sidebar {
        height: calc(100vh - 61px);
    }
}