/* Perfex CRM style override for AdminLTE */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif !important;
    background-color: #f0f2f5 !important;
    color: #333333;
}

/* Sidebar Styling */
.main-sidebar {
    background-color: #ffffff !important;
    border-right: 1px solid #e4e7eb !important;
    box-shadow: none !important;
}

.brand-link {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f0f0f0 !important;
    color: #4e5e7a !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    padding: 15px 20px !important;
    display: flex;
    align-items: center;
}

.brand-link img {
    margin-right: 10px;
    width: 28px;
    height: 28px;
}

/* User profile panel on sidebar */
.sidebar-user-panel {
    padding: 15px;
    margin: 15px;
    border: 1px solid #f0f2f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    background-color: #ffffff;
}

.sidebar-user-panel img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.sidebar-user-panel .info-name {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    line-height: 1.2;
}

.sidebar-user-panel .info-email {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

/* Sidebar Menu */
.sidebar a {
    color: #4e5e7a !important;
    font-size: 14px;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    background-color: #f3f4f6 !important;
    color: #3b82f6 !important;
}

.sidebar .nav-link.active {
    background-color: #f3f4f6 !important;
    color: #1d4ed8 !important;
    font-weight: 600 !important;
}

.sidebar .nav-treeview > .nav-item > .nav-link {
    padding-left: 2.5rem;
    font-size: 13px;
}

/* Top Navbar Styling */
.main-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e4e7eb !important;
    box-shadow: none !important;
    padding: 5px 20px !important;
}

.navbar-light .navbar-nav .nav-link {
    color: #4e5e7a;
}

/* Navbar Search and plus button */
.navbar-search-custom {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
    max-width: 500px;
    margin-left: 20px;
}

.navbar-search-custom input {
    background-color: #f1f5f9;
    border: none;
    border-radius: 6px;
    padding: 8px 12px 8px 35px;
    font-size: 14px;
    width: 100%;
    outline: none;
    color: #475569;
}

.navbar-search-custom .search-container {
    position: relative;
    width: 100%;
}

.navbar-search-custom .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.navbar-search-custom .plus-btn {
    background-color: #3b82f6;
    color: white !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}

/* Main Content Wrapper */
.content-wrapper {
    background-color: #f0f2f5 !important;
}

.content-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

/* Tables and Cards */
.card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 25px;
}

.card-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 15px 20px !important;
}

.card-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}

/* Table Style */
.table {
    margin-bottom: 0 !important;
}

.table th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    padding: 12px 16px !important;
}

.table td {
    padding: 12px 16px !important;
    font-size: 13px !important;
    color: #334155 !important;
    border-top: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
    background-color: inherit !important;
}

.table tbody tr {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.table tbody tr:hover {
    transform: scale(1.005) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
    position: relative;
    z-index: 5;
}

/* ClipType Row Background Colors (All white in web UI) */
.row-type-program, .row-type-com, .row-type-promo, .row-type-news, .row-type-azan, .row-type-gfx, .row-type-filler {
    background-color: #ffffff !important;
}

.row-type-program td, .row-type-com td, .row-type-promo td, .row-type-news td, .row-type-azan td, .row-type-gfx td, .row-type-filler td,
.row-type-program td *, .row-type-com td *, .row-type-promo td *, .row-type-news td *, .row-type-azan td *, .row-type-gfx td *, .row-type-filler td * {
    color: inherit !important;
}

/* Buttons */
.btn-new-proposal {
    background-color: #1e293b;
    color: #ffffff;
    font-weight: 500;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-new-proposal:hover {
    background-color: #0f172a;
    color: #ffffff;
}

/* Status Badges */
.badge-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.badge-status-com {
    background-color: #ecfdf5;
    color: #059669;
}

.badge-status-promo {
    background-color: #eff6ff;
    color: #2563eb;
}

.badge-status-news {
    background-color: #fff1f2;
    color: #e11d48;
}

.badge-status-azan {
    background-color: #fffbeb;
    color: #d97706;
}

.badge-status-gfx {
    background-color: #faf5ff;
    color: #9333ea;
}

.badge-status-program {
    background-color: #f1f5f9;
    color: #475569;
}

/* DataTables customization */
.dataTables_wrapper .row {
    margin-bottom: 15px;
    align-items: center;
}

.dataTables_filter input {
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    padding: 5px 10px !important;
    font-size: 13px !important;
    outline: none !important;
}

.dataTables_length select {
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    padding: 5px 10px !important;
    font-size: 13px !important;
}

/* DataTables Custom Styling */
.dataTables_wrapper .dataTables_filter {
    text-align: right;
}

.dataTables_wrapper .dataTables_filter label {
    font-weight: 500;
    margin-bottom: 0;
    position: relative;
    font-size: 0; /* Hide the default "Search:" text */
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    padding: 6px 12px 6px 30px !important;
    font-size: 13px !important;
    height: 32px !important;
    outline: none !important;
    width: 220px !important;
    display: inline-block !important;
    margin-left: 0 !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 8px center;
    background-size: 14px;
}

.dataTables_wrapper .dataTables_length {
    display: inline-block;
    margin-right: 15px;
}

.dataTables_wrapper .dataTables_length label {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
    height: 32px !important;
    outline: none !important;
    width: 65px !important;
    display: inline-block !important;
    margin: 0 5px !important;
}

.dataTables_wrapper .dataTables_info {
    font-size: 13px !important;
    color: #64748b !important;
    padding-top: 15px !important;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 15px !important;
    text-align: right;
}

.dataTables_wrapper .pagination {
    margin-bottom: 0;
    gap: 4px;
    justify-content: flex-end;
}

.dataTables_wrapper .page-item .page-link {
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    color: #64748b !important;
    font-size: 13px !important;
    padding: 5px 10px !important;
    background-color: #ffffff !important;
}

.dataTables_wrapper .page-item.active .page-link {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
    font-weight: 600 !important;
}

.dataTables_wrapper .page-item.disabled .page-link {
    color: #cbd5e1 !important;
    background-color: #f8fafc !important;
    pointer-events: none;
}

