/* ====== COMPACT LAYOUT - 20% REDUCTION ====== */

/* Page Header & Breadcrumb */
.page-header {
    padding: 0.4rem 0;
    margin-bottom: 0.5rem;
    min-height: 10px!important;
}

.page-header .page-title {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.breadcrumb {
    padding: 0.2rem 0;
    margin-bottom: 0;
    font-size: 0.75rem;
}

.breadcrumb-item {
    padding: 0;
}

/* Remove extra spacing from app-content/main-content area */
.app-content {
    padding-top: 0.5rem !important;
}

.main-content {
    padding-top: 0.3rem;
    margin-top: 0;
}

/* Content header area */
.content-header {
    padding: 0.25rem 0;
    margin-bottom: 0.3rem;
}

/* Cards */
.card {
    margin-bottom: 0.6rem;
}

.card-header {
    padding: 0.4rem 0.8rem;
    min-height: auto;
}

.card-header h3,
.card-header h4,
.card-header .card-title {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.card-body {
    padding: 0.6rem 0.8rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 0.4rem;
}

.form-group label,
label {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.form-control {
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
    height: auto;
    min-height: 32px;
}

.form-control-lg {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
}

textarea.form-control {
    min-height: 60px;
}

select.form-control {
    padding: 0.3rem 0.5rem;
    height: auto;
    min-height: 32px;
}

.input-group-text {
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-sm {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
}

.btn i {
    font-size: 0.8rem;
}

/* ====== ENHANCED TABLE STYLING ====== */
.table {
    font-size: 0.8rem;
    border-collapse: separate;
    border-spacing: 0;
}

/* Table Header - More Visible */
.table thead th {
    background-color: #01223770;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.6rem;
    border-bottom: 2px solid #1a202c;
    position: sticky;
    top: 0;
    z-index: 1;
}

.table th,
.table td {
    padding: 0.35rem 0.5rem;
    vertical-align: middle;
    border-color: #e2e8f0;
}

.table-sm th,
.table-sm td {
    padding: 0.25rem 0.4rem;
}

/* Table Body */
.table tbody tr {
    transition: background-color 0.15s ease-in-out;
}

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

.table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Table Hover Effect */
.table-hover tbody tr:hover {
    background-color: rgba(255, 102, 1, 0.08) !important;
    cursor: pointer;
}

.table tbody tr[style*="cursor: pointer"]:hover,
.table tbody tr.projectUser:hover {
    background-color: rgba(255, 102, 1, 0.12) !important;
    box-shadow: inset 3px 0 0 #ff6601;
}

/* Table Borders */
.table-bordered {
    border: 1px solid #e2e8f0;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #e2e8f0;
}

/* Sorting Icons in Header */
.table thead th.sorting,
.table thead th.sorting_asc,
.table thead th.sorting_desc {
    cursor: pointer;
}

.table thead th.sorting:hover {
    background-color: #3d4a5c;
}

.table thead th.sorting_asc,
.table thead th.sorting_desc {
    background-color: #1a202c;
}

/* Row & Column Spacing */
.row {
    margin-bottom: 0.4rem;
}

.row + .row {
    margin-top: 0.3rem;
}

/* Panel */
.panel {
    margin-bottom: 0.5rem;
}

.panel-body {
    padding: 0.5rem;
}

.panel-heading {
    padding: 0.4rem 0.6rem;
}

/* Content Area */
.main-content {
    padding: 0.5rem;
}

.container-fluid {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
}

/* Sidebar adjustments (optional) */
.app-sidebar .side-menu__item {
    padding: 0.4rem 0.8rem;
}

.app-sidebar .side-menu__label {
    font-size: 0.85rem;
}

/* Headings */
h1, .h1 { font-size: 1.4rem; }
h2, .h2 { font-size: 1.2rem; }
h3, .h3 { font-size: 1rem; }
h4, .h4 { font-size: 0.9rem; }
h5, .h5 { font-size: 0.85rem; }
h6, .h6 { font-size: 0.8rem; }

/* Margins & Padding Utilities Override */
.p-2 { padding: 0.4rem !important; }
.p-3 { padding: 0.6rem !important; }
.p-4 { padding: 0.8rem !important; }
.m-2 { margin: 0.4rem !important; }
.m-3 { margin: 0.6rem !important; }
.mb-3 { margin-bottom: 0.6rem !important; }
.mb-4 { margin-bottom: 0.8rem !important; }
.mt-3 { margin-top: 0.6rem !important; }
.mt-4 { margin-top: 0.8rem !important; }
.pt-3 { padding-top: 0.6rem !important; }
.pt-4 { padding-top: 0.8rem !important; }
.pb-3 { padding-bottom: 0.6rem !important; }
.pb-4 { padding-bottom: 0.8rem !important; }

/* Alerts */
.alert {
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

/* Modal */
.modal-header {
    padding: 0.5rem 0.8rem;
}

.modal-body {
    padding: 0.6rem 0.8rem;
}

.modal-footer {
    padding: 0.4rem 0.8rem;
}

/* DataTables */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 0.2rem 0;
    font-size: 0.75rem;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    padding: 0.2rem 0.4rem;
    font-size: 0.8rem;
}

/* Pagination */
.pagination .page-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Nav Tabs */
.nav-tabs .nav-link {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
}

/* Existing styles... */
.t2g-backdrop {
    backdrop-filter: blur(5px);
    background-color: #01223770;
    -webkit-filter: blur(1px) grayscale(90%);
    -moz-filter: blur(1px) grayscale(90%);
    -o-filter: blur(1px) grayscale(90%);
    -ms-filter: blur(1px) grayscale(90%);
    filter: blur(1px) grayscale(90%);
}

.text-padding {
    padding-left: 0.4rem;
}

.multimedia-container-video {
}

.multimedia-container-picture {
    max-width: 100%;
    height: auto;
}

.summernote-youtube-icon {
    color: red;
    font-size: 16px;
}

.summernote-dropbox-icon {
    color: darkblue;
    font-size: 16px;
}

.truncate-fade {
    position: relative;
    width: 97%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none;
    background-color: white;
}

.truncate-fade::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 30px;
    background: linear-gradient(to right, transparent, white);
}

/* QR Link Box */
.qr-link-box {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

.qr-link-box a {
    display: flex;
    align-items: center;
    padding: 4px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    pointer-events: auto;
}

.qr-link-box a:hover {
    background: #e9ecef;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    color: #0056b3;
}

/* ====== FIX BUTTON CLICK ANIMATION BUG ====== */

/* Force hide ALL button animation overlays */
.btn::before,
.btn::after,
.btn *::before,
.btn *::after {
    display: none !important;
    content: none !important;
    animation: none !important;
    opacity: 0 !important;
}

/* Disable ripple/wave/loader effects */
.btn .waves-ripple,
.btn .ripple,
.btn .btn-ripple,
.btn .btn-loader,
.btn .loader,
.waves-effect .waves-ripple,
.btn-wave::before,
.btn-wave::after {
    display: none !important;
    opacity: 0 !important;
    animation: none !important;
}

/* Remove ALL focus/active visual effects */
.btn:focus,
.btn:active,
.btn:focus:active,
.btn.active:focus,
.btn:not(:disabled):not(.disabled):active,
.btn:not(:disabled):not(.disabled).active {
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
    animation: none !important;
}

/* Clip overflow and disable animations on btn */
.btn {
    position: relative;
    overflow: hidden !important;
    animation: none !important;
}

/* Also target waves-effect elements */
.waves-effect {
    overflow: hidden !important;
}

.waves-effect::before,
.waves-effect::after,
.waves-effect .waves-ripple {
    display: none !important;
    animation: none !important;
}

/* Kill any keyframe animations on buttons */
.btn,
.btn * {
    animation: none !important;
    transition: none !important;
}
