/* PUBLIC_PAGE - Theme: adminbs5 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --font-family-sans-serif: 'Inter', system-ui, -apple-system, sans-serif;

    /* Brand Colors */
    --brand-primary: #1e3a5f;
    --brand-secondary: #2d5a87;
    --brand-accent: #4a90d9;
    --brand-light: #5ba0e8;

    /* Modern Color Palette */
    --primary-gradient: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #4a90d9 100%);
    --primary-color: #2d5a87;
    --primary-dark: #1e3a5f;
    --secondary-color: #4a90d9;
    --accent-color: #06d6a0;

    /* Text Colors */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #a0aec0;

    /* Surfaces */
    --bg-body: #f7fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.06);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: var(--font-family-sans-serif) !important;
    background-color: var(--bg-body) !important;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

/* ============================
   SPLIT SCREEN LOGIN LAYOUT
   ============================ */

/* Reset wrapper styles for login */
.wrapper .main {
    background: transparent !important;
    animation: none !important;
}

.wrapper .main .content {
    padding: 0 !important;
    height: 100vh !important;
    display: block !important;
}

.wrapper .main .content .container-fluid {
    max-width: none !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

#adianti_div_content {
    width: 100% !important;
    height: 100% !important;
}

#adianti_div_content>form {
    height: 100% !important;
}

/* Hide background effects for split layout */
.background-effects {
    display: none !important;
}

/* Main Split Wrapper */
.login-split-wrapper {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    width: 100%;
}

/* =============================================
   LEFT PANEL - Brand/Marketing Panel
   ============================================= */
.login-left-panel {
    flex: 1 1 50%;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    flex-direction: column;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Decorative background pattern */
.login-left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
    pointer-events: none;
}

/* Floating shapes decoration */
.login-left-panel::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
    pointer-events: none;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 24px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.brand-logo i {
    font-size: 32px;
    opacity: 0.9;
}

.brand-logo span {
    letter-spacing: -0.5px;
}

/* Brand Content - Centered */
.brand-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    max-width: 480px;
}

.brand-title {
    color: white;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    letter-spacing: -1px;
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 32px 0;
    font-weight: 400;
}

/* Features List */
.brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
}

.brand-features li i {
    color: var(--accent-color);
    font-size: 18px;
}

/* Brand Footer */
.brand-footer {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    position: relative;
    z-index: 2;
}

/* =============================================
   RIGHT PANEL - Login Form Panel
   ============================================= */
.login-right-panel {
    flex: 1 1 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* Clean Login Card (for white background) */
.login-card-clean {
    width: 100%;
    max-width: 400px;
    padding: 0;
    background: transparent;
}

/* Hide original login panel */
.login-panel,
.login-container,
.login-card {
    display: none !important;
}

/* Header */
.login-header {
    text-align: left;
    margin-bottom: 32px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
}

/* Form Fields */
.login-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label-modern {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label-modern i {
    color: var(--primary-color);
    width: 16px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input,
.login-card-clean input[type="text"],
.login-card-clean input[type="password"] {
    width: 100% !important;
    height: 52px !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    font-family: var(--font-family-sans-serif) !important;
    color: var(--text-primary) !important;
    background-color: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.input-wrapper input:focus,
.login-card-clean input[type="text"]:focus,
.login-card-clean input[type="password"]:focus {
    background-color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(45, 90, 135, 0.1) !important;
}

.input-wrapper input::placeholder {
    color: var(--text-light) !important;
}

/* Options Row - Remember & Forgot */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.remember-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-wrapper input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.remember-label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: var(--brand-light);
    text-decoration: underline;
}

/* Login Button */
.login-btn-container {
    margin-top: 8px;
}

.btn-login-modern,
.login-card-clean .btn,
.login-card-clean button[type="submit"] {
    width: 100% !important;
    height: 54px !important;
    background: var(--primary-gradient) !important;
    background-size: 200% auto !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 0 24px !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: var(--font-family-sans-serif) !important;
    letter-spacing: 0.5px;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3) !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
}

.btn-login-modern:hover,
.login-card-clean .btn:hover {
    background-position: right center !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.4) !important;
}

.btn-login-modern:active,
.login-card-clean .btn:active {
    transform: translateY(0) !important;
}

.btn-login-modern i,
.login-card-clean .btn i {
    font-size: 18px !important;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-footer i {
    color: var(--accent-color);
}

/* =============================================
   RESPONSIVE - Mobile & Tablet
   ============================================= */
@media (max-width: 992px) {
    .login-split-wrapper {
        flex-direction: column;
    }

    .login-left-panel {
        flex: 0 0 auto;
        min-height: 300px;
        padding: 32px;
    }

    .brand-title {
        font-size: 28px;
    }

    .brand-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .brand-features {
        display: none;
    }

    .login-right-panel {
        flex: 1 1 auto;
        padding: 32px;
    }
}

@media (max-width: 576px) {
    .login-left-panel {
        min-height: 220px;
        padding: 24px;
    }

    .brand-logo {
        font-size: 20px;
    }

    .brand-logo i {
        font-size: 26px;
    }

    .brand-title {
        font-size: 22px;
    }

    .brand-subtitle {
        font-size: 14px;
    }

    .brand-footer {
        display: none;
    }

    .login-right-panel {
        padding: 24px;
    }

    .login-card-clean {
        max-width: 100%;
    }

    .login-title {
        font-size: 24px;
    }

    .login-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* ============================
   INTERNAL APP / DASHBOARD (Light Mode)
   ============================ */
aside.main-sidebar {
    background: #FFFFFF !important;
    border-right: 1px solid #E5E7EB;
}

aside.main-sidebar a {
    color: var(--text-muted) !important;
}

aside.main-sidebar a:hover {
    background-color: #F3F4F6 !important;
    color: var(--primary-color) !important;
}

aside.main-sidebar .name {
    color: var(--text-primary) !important;
}

nav.navbar {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid #E5E7EB !important;
}

.navbar .btn {
    color: var(--text-muted) !important;
}

.card,
.panel {
    background-color: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    color: var(--text-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.card-header {
    background-color: #F9FAFB !important;
    border-bottom: 1px solid #E5E7EB !important;
    color: var(--text-primary);
}

.table {
    color: var(--text-primary);
}

.table thead th {
    background-color: #F9FAFB !important;
    color: var(--text-muted);
    border-bottom: 1px solid #E5E7EB !important;
}

.table tbody td {
    border-bottom: 1px solid #E5E7EB;
}

/* Chat Styles */
.chat-container {
    display: flex;
    height: calc(100vh - 140px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.chat-list-panel {
    width: 25%;
    min-width: 250px;
    border-right: 1px solid #eee;
    background: #fcfcfc;
    display: flex;
    flex-direction: column;
}

.chat-list-header {
    padding: 20px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #eee;
}

.chat-contact-list {
    flex: 1;
    overflow-y: auto;
}

.chat-contact {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-contact:hover,
.chat-contact.active {
    background: #f0f7ff;
}

.chat-contact-avatar {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.chat-contact-info h3 {
    margin: 0;
    font-size: 15px;
    color: #333;
}

.chat-contact-info p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #888;
}

.chat-main-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* Extended Chat Styles */
.chat-window-header {
    height: 70px;
    border-bottom: 1px solid #eee;
    padding: 0 20px;
    display: flex;
    align-items: center;
    background: #fff;
    flex-shrink: 0;
}

.chat-last-message {
    color: #999;
    font-size: 13px;
    margin: 2px 0 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #bbb;
    font-size: 16px;
}

.btn-circle {
    border-radius: 50% !important;
    width: 30px;
    height: 30px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: normal !important;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 18px;
    margin-bottom: 15px;
    border-radius: 18px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-bubble.me {
    background: linear-gradient(135deg, #1e3a5f, #2d5a87);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message-bubble.other {
    background: #fff;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 5px;
    display: block;
    text-align: right;
}

.chat-input-area {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 12px 20px;
    outline: none;
    resize: none;
    max-height: 100px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: #2d5a87;
}

.chat-send-btn {
    background: #2d5a87;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    background: #1e3a5f;
}

/* ============================
   DASHBOARD & INTERNAL APP STYLES
   ============================ */

/* Main content area background */
.wrapper .main .content {
    background: #f4f6f9 !important;
}

/* Only apply full height on login page */
body:not(.dashboard-page) .wrapper .main .content {
    height: auto !important;
    min-height: 100vh;
}

/* Panel Group Modern Styling */
.panel-group,
.tpanelgroup {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e5e7eb !important;
    overflow: hidden;
    margin-bottom: 24px !important;
}

.panel-group .card-header,
.tpanelgroup .card-header,
.panel-heading {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 16px 20px !important;
}

.panel-group .card-header .card-title,
.tpanelgroup .card-header .card-title,
.panel-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.panel-group .card-header .card-title i,
.panel-title i {
    color: #4a90d9 !important;
}

.panel-group .card-body,
.tpanelgroup .card-body,
.panel-body {
    padding: 20px !important;
    background: #ffffff !important;
}

/* DataGrid Modern Styling */
.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table thead th {
    background: #f9fafb !important;
    border-bottom: 2px solid #e5e7eb !important;
    color: #6b7280 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 600 !important;
    padding: 14px 16px !important;
}

.table tbody td {
    padding: 14px 16px !important;
    border-bottom: 1px solid #f3f4f6 !important;
    color: #374151 !important;
    vertical-align: middle !important;
}

.table tbody tr:hover {
    background: #f9fafb !important;
}

.table tbody tr:last-child td {
    border-bottom: none !important;
}

/* DataGrid Actions */
.tdatagrid_action,
.tdatagrid_action i {
    color: #4a90d9 !important;
    transition: all 0.2s ease;
}

.tdatagrid_action:hover i {
    color: #1e3a5f !important;
    transform: scale(1.1);
}

/* Calendar Styling */
.fc {
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.fc-header-toolbar {
    padding: 16px !important;
    margin-bottom: 0 !important;
}

.fc-button-primary {
    background: #1e3a5f !important;
    border-color: #1e3a5f !important;
}

.fc-button-primary:hover {
    background: #2d5a87 !important;
    border-color: #2d5a87 !important;
}

.fc-day-today {
    background: rgba(74, 144, 217, 0.1) !important;
}

/* Breadcrumb Modern */
.breadcrumb {
    background: transparent !important;
    padding: 12px 0 !important;
    margin-bottom: 16px !important;
}

.breadcrumb-item a {
    color: #6b7280 !important;
    text-decoration: none !important;
}

.breadcrumb-item a:hover {
    color: #4a90d9 !important;
}

.breadcrumb-item.active {
    color: #1f2937 !important;
    font-weight: 500 !important;
}

/* Form Controls Modern */
.form-control {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.form-control:focus {
    border-color: #4a90d9 !important;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15) !important;
}

/* Buttons Modern */
.btn-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    transition: all 0.2s ease !important;
}

.btn-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3) !important;
}

.btn-success {
    background: #10b981 !important;
    border: none !important;
    border-radius: 8px !important;
}

.btn-success:hover {
    background: #0ea572 !important;
}

.btn-warning {
    background: #f59e0b !important;
    border: none !important;
    border-radius: 8px !important;
    color: white !important;
}

.btn-warning:hover {
    background: #d97706 !important;
}

.btn-danger {
    background: #ef4444 !important;
    border: none !important;
    border-radius: 8px !important;
}

.btn-danger:hover {
    background: #dc2626 !important;
}

/* Navbar styling */
.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* Sidebar Modern */
.main-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e5e7eb !important;
}

.main-sidebar .nav-link {
    color: #6b7280 !important;
    border-radius: 8px !important;
    margin: 2px 8px !important;
    padding: 10px 16px !important;
    transition: all 0.2s ease !important;
}

.main-sidebar .nav-link:hover {
    background: #f3f4f6 !important;
    color: #1e3a5f !important;
}

.main-sidebar .nav-link.active {
    background: rgba(30, 58, 95, 0.1) !important;
    color: #1e3a5f !important;
    font-weight: 600 !important;
}

.main-sidebar .nav-link i {
    width: 24px !important;
    text-align: center !important;
    margin-right: 10px !important;
}

/* Dropdown Modern */
.dropdown-menu {
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    padding: 8px !important;
}

.dropdown-item {
    border-radius: 6px !important;
    padding: 10px 14px !important;
    transition: all 0.2s ease !important;
}

.dropdown-item:hover {
    background: #f3f4f6 !important;
}

/* Modal Modern */
.modal-content {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
}

.modal-header {
    border-bottom: 1px solid #e5e7eb !important;
    padding: 20px 24px !important;
}

.modal-title {
    font-weight: 600 !important;
    color: #1f2937 !important;
}

.modal-body {
    padding: 24px !important;
}

.modal-footer {
    border-top: 1px solid #e5e7eb !important;
    padding: 16px 24px !important;
}

/* Alert Modern */
.alert {
    border-radius: 10px !important;
    border: none !important;
    padding: 16px 20px !important;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #065f46 !important;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #92400e !important;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #991b1b !important;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #1e40af !important;
}

/* ============================
   FULLCALENDAR MODERN REDESIGN
   ============================ */

/* Main Calendar Container */
.fc {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e5e7eb !important;
    overflow: hidden !important;
}

/* Remove default borders */
.fc .fc-scrollgrid {
    border: none !important;
}

.fc .fc-scrollgrid-section>td {
    border: none !important;
}

.fc-theme-standard td,
.fc-theme-standard th {
    border-color: #f3f4f6 !important;
}

.fc-theme-standard .fc-scrollgrid {
    border: none !important;
}

/* Header Toolbar */
.fc .fc-toolbar.fc-header-toolbar {
    padding: 20px 24px !important;
    margin-bottom: 0 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

/* Title (Month/Year) */
.fc .fc-toolbar-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    letter-spacing: -0.5px !important;
}

/* Navigation Buttons (< > Today) */
.fc .fc-button {
    background: transparent !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 8px 16px !important;
    text-transform: capitalize !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.fc .fc-button:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
}

.fc .fc-button:focus {
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15) !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: #1e3a5f !important;
    border-color: #1e3a5f !important;
    color: white !important;
}

/* Prev/Next Arrow Buttons */
.fc .fc-prev-button,
.fc .fc-next-button {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fc .fc-prev-button .fc-icon,
.fc .fc-next-button .fc-icon {
    font-size: 16px !important;
}

/* Today Button */
.fc .fc-today-button {
    background: transparent !important;
    border: 2px solid #1e3a5f !important;
    color: #1e3a5f !important;
    border-radius: 20px !important;
    padding: 6px 20px !important;
    font-weight: 600 !important;
}

.fc .fc-today-button:hover:not(:disabled) {
    background: #1e3a5f !important;
    color: white !important;
}

.fc .fc-today-button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* View Buttons (Day/Week/Month) - Segmented Control */
.fc .fc-button-group {
    background: #f3f4f6 !important;
    border-radius: 10px !important;
    padding: 4px !important;
    border: none !important;
    gap: 0 !important;
}

.fc .fc-button-group .fc-button {
    border: none !important;
    border-radius: 8px !important;
    margin: 0 !important;
    padding: 6px 14px !important;
    background: transparent !important;
    color: #6b7280 !important;
}

.fc .fc-button-group .fc-button:hover {
    background: rgba(255, 255, 255, 0.5) !important;
}

.fc .fc-button-group .fc-button-active {
    background: #ffffff !important;
    color: #1f2937 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Day Header (Dom/Seg/Ter...) */
.fc .fc-col-header-cell {
    background: #fafbfc !important;
    border: none !important;
    padding: 12px 0 !important;
}

.fc .fc-col-header-cell-cushion {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #9ca3af !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    padding: 8px !important;
}

.fc .fc-col-header-cell-cushion:hover {
    text-decoration: none !important;
}

/* Day Cells */
.fc .fc-daygrid-day {
    transition: background 0.15s ease !important;
}

.fc .fc-daygrid-day:hover {
    background: #fafbfc !important;
}

.fc .fc-daygrid-day-frame {
    min-height: 100px !important;
    padding: 4px !important;
}

/* Day Number */
.fc .fc-daygrid-day-number {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    padding: 8px 10px !important;
    text-decoration: none !important;
}

.fc .fc-daygrid-day-number:hover {
    text-decoration: none !important;
}

/* Today's Cell - Circle Highlight */
.fc .fc-day-today {
    background: transparent !important;
}

.fc .fc-day-today .fc-daygrid-day-number {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 4px !important;
    font-weight: 600 !important;
}

/* Other Month Days */
.fc .fc-day-other .fc-daygrid-day-number {
    color: #d1d5db !important;
}

/* Events */
.fc .fc-daygrid-event {
    border-radius: 6px !important;
    border: none !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin: 2px 4px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border-left: 4px solid !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.fc .fc-daygrid-event:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Event Colors - Using Border Left */
.fc .fc-daygrid-event[style*="background-color: rgb(0, 166, 90)"],
.fc .fc-daygrid-event[style*="background: rgb(0, 166, 90)"],
.fc-event-main[style*="background-color: rgb(0, 166, 90)"] {
    border-left-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.1) !important;
    color: #065f46 !important;
}

.fc .fc-daygrid-event[style*="background-color: rgb(243, 156, 18)"],
.fc .fc-daygrid-event[style*="background: rgb(243, 156, 18)"],
.fc-event-main[style*="background-color: rgb(243, 156, 18)"] {
    border-left-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.1) !important;
    color: #92400e !important;
}

.fc .fc-daygrid-event[style*="background-color: rgb(221, 75, 57)"],
.fc .fc-daygrid-event[style*="background: rgb(221, 75, 57)"],
.fc-event-main[style*="background-color: rgb(221, 75, 57)"] {
    border-left-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
    color: #991b1b !important;
}

/* Default event styling */
.fc .fc-daygrid-event-dot {
    display: none !important;
}

.fc-event,
.fc-event-main {
    border-left-color: #4a90d9 !important;
}

.fc .fc-event-title {
    font-weight: 500 !important;
    white-space: normal !important;
    overflow: visible !important;
}

.fc .fc-event-time {
    font-weight: 600 !important;
    margin-right: 4px !important;
}

/* More Events Link */
.fc .fc-daygrid-more-link {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #4a90d9 !important;
    background: rgba(74, 144, 217, 0.1) !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    margin: 2px 4px !important;
    transition: all 0.2s ease !important;
}

.fc .fc-daygrid-more-link:hover {
    background: rgba(74, 144, 217, 0.2) !important;
    text-decoration: none !important;
}

/* Popover (More Events) */
.fc .fc-popover {
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden !important;
}

.fc .fc-popover-header {
    background: #f9fafb !important;
    padding: 12px 16px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.fc .fc-popover-body {
    padding: 12px !important;
}

/* Week View Adjustments */
.fc .fc-timegrid-slot {
    height: 48px !important;
    border-color: #f3f4f6 !important;
}

.fc .fc-timegrid-slot-label-cushion {
    font-size: 11px !important;
    color: #9ca3af !important;
    font-weight: 500 !important;
}

.fc .fc-timegrid-event {
    border-radius: 6px !important;
    border-left: 4px solid !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* List View */
.fc .fc-list {
    border: none !important;
}

.fc .fc-list-day-cushion {
    background: #f9fafb !important;
    padding: 12px 16px !important;
}

.fc .fc-list-day-text,
.fc .fc-list-day-side-text {
    font-weight: 600 !important;
    color: #1f2937 !important;
}

.fc .fc-list-event {
    cursor: pointer !important;
}

.fc .fc-list-event:hover td {
    background: #fafbfc !important;
}

.fc .fc-list-event-dot {
    border-color: #4a90d9 !important;
}

/* Panel Group for Calendar */
.panel-group:has(.fc),
.tpanelgroup:has(.fc) {
    overflow: visible !important;
}

.panel-group .fc,
.tpanelgroup .fc {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .fc .fc-toolbar.fc-header-toolbar {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px !important;
    }

    .fc .fc-toolbar-title {
        font-size: 18px !important;
    }

    .fc .fc-button-group {
        width: 100% !important;
        justify-content: center !important;
    }

    .fc .fc-daygrid-day-frame {
        min-height: 60px !important;
    }

    .fc .fc-col-header-cell-cushion {
        font-size: 10px !important;
        letter-spacing: 0.5px !important;
    }

    .fc .fc-daygrid-event {
        font-size: 10px !important;
        padding: 2px 4px !important;
    }
}

/* ============================
   CRUD PAGES - MODERN REDESIGN
   ============================ */

/* Page Container */
.crud-page {
    padding: 24px;
    background: #f4f6f9;
    min-height: calc(100vh - 120px);
}

/* Form Container (Search/Filter) - Modern Card Style */
.form-group .card,
.panel.card,
.tform,
.tbootstrapformbuilder,
.card.panel-default {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e5e7eb !important;
    overflow: hidden;
}

/* Card Header - Clean Title */
.card .card-header,
.panel .card-header,
.tform .card-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 20px 24px !important;
}

.card .card-header .card-title,
.panel .card-header .card-title,
.tform .card-header .card-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin: 0 !important;
    letter-spacing: -0.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Remove underlines and extra decorations */
.card .card-header::after,
.panel .card-header::after {
    display: none !important;
}

/* Card Body - Content Area */
.card .card-body,
.panel .card-body,
.tform .card-body {
    padding: 24px !important;
    background: #ffffff !important;
}

/* Form Fields in Cards */
.card .form-group,
.panel .form-group {
    margin-bottom: 20px !important;
}

.card .form-group label,
.panel .form-group label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #4b5563 !important;
    margin-bottom: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Form Actions Row */
.card .form-group .btn-group,
.tform .btn-group,
.form-actions {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-top: 8px !important;
}

/* Primary Action Button (+ Novo) */
.btn-success,
.btn[class*="green"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.btn-success:hover,
.btn[class*="green"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}

/* Search Button (Secondary) */
.form-actions .btn:not(.btn-success):not(.btn-primary),
.btn[class*="search"] {
    background: transparent !important;
    border: 2px solid #e5e7eb !important;
    color: #4b5563 !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
}

.form-actions .btn:not(.btn-success):not(.btn-primary):hover {
    border-color: #1e3a5f !important;
    color: #1e3a5f !important;
    background: rgba(30, 58, 95, 0.05) !important;
}

/* ===== DATAGRID MODERN STYLING ===== */

/* DataGrid Container */
.tdatagrid,
.table-responsive,
.datagrid-table {
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

/* Table Base */
.table,
.tdatagrid table {
    margin-bottom: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

/* Table Header */
.table thead,
.tdatagrid thead {
    background: #f9fafb !important;
}

.table thead th,
.tdatagrid thead th {
    background: #f9fafb !important;
    border: none !important;
    border-bottom: 2px solid #e5e7eb !important;
    padding: 16px 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #6b7280 !important;
}

/* Table Rows */
.table tbody tr,
.tdatagrid tbody tr {
    transition: all 0.15s ease !important;
}

.table tbody tr:hover,
.tdatagrid tbody tr:hover {
    background: #f9fafb !important;
}

/* Table Cells */
.table tbody td,
.tdatagrid tbody td {
    padding: 18px 20px !important;
    border: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    font-size: 14px !important;
    color: #374151 !important;
    vertical-align: middle !important;
}

.table tbody tr:last-child td,
.tdatagrid tbody tr:last-child td {
    border-bottom: none !important;
}

/* ===== STATUS BADGES ===== */
.badge-status {
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
}

.badge-success,
.badge-status.badge-success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #065f46 !important;
}

.badge-warning,
.badge-status.badge-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #92400e !important;
}

.badge-danger,
.badge-status.badge-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #991b1b !important;
}

.badge-info,
.badge-status.badge-info {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #1e40af !important;
}

.badge-inactive,
.badge-status.badge-inactive {
    background: rgba(107, 114, 128, 0.15) !important;
    color: #4b5563 !important;
}

.badge-pending,
.badge-status.badge-pending {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #92400e !important;
}

.badge-approved,
.badge-status.badge-approved {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #065f46 !important;
}

.badge-rejected,
.badge-status.badge-rejected {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #991b1b !important;
}

.badge-analysis,
.badge-status.badge-analysis {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #1e40af !important;
}

/* ===== ACTION BUTTONS IN TABLE ===== */
.tdatagrid_action,
.table .btn-sm,
.datagrid-action {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f3f4f6 !important;
    border: none !important;
    color: #6b7280 !important;
    transition: all 0.2s ease !important;
    margin: 0 4px !important;
}

.tdatagrid_action:hover,
.table .btn-sm:hover,
.datagrid-action:hover {
    background: #e5e7eb !important;
    transform: scale(1.1) !important;
}

.tdatagrid_action[title*="Editar"] i,
.tdatagrid_action i.fa-edit {
    color: #3b82f6 !important;
}

.tdatagrid_action[title*="Excluir"] i,
.tdatagrid_action i.fa-trash {
    color: #ef4444 !important;
}

.tdatagrid_action[title*="Validar"] i,
.tdatagrid_action i.fa-check {
    color: #10b981 !important;
}

/* ===== PAGINATION MODERN ===== */
.tpagenavigation,
.pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 20px !important;
    margin: 0 !important;
    background: #ffffff !important;
    border-top: 1px solid #f3f4f6 !important;
}

.tpagenavigation a,
.pagination .page-link,
.tpagenavigation span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.tpagenavigation a:hover,
.pagination .page-link:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #1f2937 !important;
    text-decoration: none !important;
}

.tpagenavigation .active,
.pagination .active .page-link,
.tpagenavigation a.active {
    background: #1e3a5f !important;
    border-color: #1e3a5f !important;
    color: white !important;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center !important;
    padding: 60px 40px !important;
    color: #9ca3af !important;
}

.empty-state i {
    font-size: 64px !important;
    margin-bottom: 20px !important;
    opacity: 0.5 !important;
}

.empty-state h3 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    margin-bottom: 8px !important;
}

.empty-state p {
    font-size: 14px !important;
    margin-bottom: 20px !important;
}

.empty-state .btn {
    font-size: 14px !important;
}

/* ===== FIELDLIST MODERN ===== */
.tfieldlist,
.fieldlist-table {
    background: #f9fafb !important;
    border-radius: 12px !important;
    padding: 16px !important;
    border: 1px solid #e5e7eb !important;
}

.tfieldlist thead th {
    background: transparent !important;
    border: none !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
}

.tfieldlist tbody td {
    padding: 8px !important;
    border: none !important;
}

.tfieldlist tbody td input {
    border-radius: 8px !important;
}

/* ===== PANEL GROUP FOOTER ===== */
.panel .card-footer,
.tpanelgroup .card-footer {
    background: #ffffff !important;
    border-top: 1px solid #f3f4f6 !important;
    padding: 16px 24px !important;
}

/* ===== RESPONSIVE CRUD ===== */
@media (max-width: 768px) {
    .card .card-header .card-title {
        font-size: 18px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .table thead th,
    .tdatagrid thead th {
        padding: 12px !important;
        font-size: 10px !important;
    }

    .table tbody td,
    .tdatagrid tbody td {
        padding: 12px !important;
        font-size: 13px !important;
    }

    .form-actions {
        flex-direction: column !important;
    }

    .form-actions .btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ============================
   WIZARD FORM STYLES
   ============================ */

/* Wizard Container */
.wizard-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

/* Wizard Header */
.wizard-header {
    padding: 32px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
}

/* Stepper */
.wizard-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.wizard-stepper .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wizard-stepper .step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.wizard-stepper .step.active .step-number {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.4);
}

.wizard-stepper .step.completed .step-number {
    background: #10b981;
    color: white;
}

.wizard-stepper .step.completed .step-number::after {
    content: '\f00c';
    font-family: 'FontAwesome';
    font-size: 16px;
}

.wizard-stepper .step.completed .step-number span {
    display: none;
}

.wizard-stepper .step-label {
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.wizard-stepper .step.active .step-label {
    color: #1e3a5f;
}

.wizard-stepper .step.completed .step-label {
    color: #10b981;
}

.wizard-stepper .step-line {
    width: 80px;
    height: 3px;
    background: #e5e7eb;
    margin: 0 16px;
    margin-bottom: 24px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Wizard Body */
.wizard-body {
    padding: 40px;
    min-height: 300px;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Step Title */
.step-title {
    margin-bottom: 32px;
    text-align: center;
}

.step-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.step-title p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

/* Field Groups */
.wizard-fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-group label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Inputs */
.field-group input[type="text"],
.field-group input[type="number"],
.field-group textarea,
.field-group select,
.wizard-container .tentry,
.wizard-container .ttext,
.wizard-container .tcombo,
.wizard-container .tspinner {
    width: 100% !important;
    padding: 16px 20px !important;
    font-size: 15px !important;
    font-family: 'Inter', sans-serif !important;
    color: #1f2937 !important;
    background: #f9fafb !important;
    border: none !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus,
.wizard-container .tentry:focus,
.wizard-container .ttext:focus {
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    outline: none !important;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
    color: #9ca3af !important;
}

/* Field Suggestions (Chips) */
.field-suggestions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.suggestion-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.suggestion-chip:hover {
    background: #e5e7eb;
    border-color: #1e3a5f;
    color: #1e3a5f;
}

.suggestion-chip:active {
    transform: scale(0.95);
}

/* Radio Group as Cards */
.wizard-container .tradiogroup,
.wizard-container .tcheckgroup {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.wizard-container .tradiogroup label,
.wizard-container .tcheckgroup label {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 24px !important;
    background: #f9fafb !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.wizard-container .tradiogroup input:checked+label,
.wizard-container .tcheckgroup input:checked+label,
.wizard-container .tradiogroup label.active,
.wizard-container .tradiogroup .btn-primary {
    background: #1e3a5f !important;
    border-color: #1e3a5f !important;
    color: white !important;
}

/* Wizard Footer */
.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

/* Wizard Buttons */
.wizard-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.wizard-btn-cancel {
    background: transparent;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.wizard-btn-cancel:hover {
    background: #f3f4f6;
    color: #4b5563;
    text-decoration: none;
}

.wizard-btn-back {
    background: transparent;
    color: #4b5563;
    border: 2px solid #e5e7eb;
}

.wizard-btn-back:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.wizard-btn-next {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

.wizard-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
}

.wizard-btn-save,
.wizard-container .btn[name="btn_save"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.wizard-btn-save:hover,
.wizard-container .btn[name="btn_save"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

/* Field List Modern */
.wizard-container .tfieldlist {
    background: #f9fafb !important;
    border-radius: 16px !important;
    padding: 20px !important;
    border: 1px solid #e5e7eb !important;
}

.wizard-container .tfieldlist thead th {
    background: transparent !important;
    border: none !important;
    padding: 12px 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
}

.wizard-container .tfieldlist tbody td {
    padding: 8px !important;
    border: none !important;
}

.wizard-container .tfieldlist tbody tr {
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 8px;
}

/* Success Screen */
.wizard-success {
    text-align: center;
    padding: 60px 40px;
}

.wizard-success .success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.wizard-success .success-icon i {
    font-size: 36px;
    color: white;
}

.wizard-success h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.wizard-success p {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 32px 0;
}

/* Responsive Wizard */
@media (max-width: 768px) {
    .wizard-container {
        margin: 16px;
        border-radius: 16px;
    }

    .wizard-header,
    .wizard-body,
    .wizard-footer {
        padding: 24px;
    }

    .wizard-stepper {
        flex-direction: column;
        gap: 16px;
    }

    .wizard-stepper .step-line {
        width: 3px;
        height: 30px;
        margin: 0;
    }

    .wizard-footer {
        flex-wrap: wrap;
        gap: 12px;
    }

    .wizard-btn {
        flex: 1;
        justify-content: center;
    }

    .wizard-btn-cancel {
        order: 4;
        flex: 0 0 100%;
    }
}

/* Info Box */
.info-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(59, 130, 246, 0.08);
    border-left: 4px solid #3b82f6;
    border-radius: 10px;
    font-size: 14px;
    color: #1e40af;
    margin-bottom: 8px;
}

.info-box i {
    font-size: 18px;
    color: #3b82f6;
}

/* ============================
   MODERN LIST PAGES
   ============================ */

/* List Page Container */
.list-page-container {
    padding: 24px;
    background: #f3f4f6;
    min-height: calc(100vh - 120px);
}

/* Page Header */
.list-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.list-page-header .page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-page-header .page-title i {
    color: #4a90d9;
    font-size: 24px;
}

/* Add New Button */
.btn-add-new {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.btn-add-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: white;
    text-decoration: none;
}

.btn-add-new i {
    font-size: 16px;
}

/* List Card */
.list-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: none;
    overflow: hidden;
}

/* Quick Filter Tabs */
.quick-filter-tabs {
    display: flex;
    gap: 0;
    padding: 0;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.filter-tab:hover {
    color: #1e3a5f;
    background: rgba(30, 58, 95, 0.03);
    text-decoration: none;
}

.filter-tab.active {
    color: #1e3a5f;
    border-bottom-color: #1e3a5f;
    background: #ffffff;
}

.filter-tab i {
    font-size: 14px;
}

/* Search Bar */
.search-bar {
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
}

.search-bar form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
    z-index: 1;
}

.search-input-wrapper input,
.search-input-wrapper .tentry {
    width: 100% !important;
    padding: 14px 20px 14px 48px !important;
    background: #f9fafb !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    color: #1f2937 !important;
    transition: all 0.2s ease !important;
}

.search-input-wrapper input:focus,
.search-input-wrapper .tentry:focus {
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1) !important;
}

.btn-search {
    padding: 14px 24px !important;
    background: #1e3a5f !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-search:hover {
    background: #2d5a87 !important;
}

/* DataGrid Wrapper */
.datagrid-wrapper {
    padding: 0;
}

/* Modern DataGrid */
.modern-datagrid,
.list-card .table,
.list-card .tdatagrid {
    margin: 0 !important;
    background: #ffffff !important;
}

.modern-datagrid thead th,
.list-card .table thead th {
    background: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 16px 24px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #9ca3af !important;
}

.modern-datagrid tbody tr,
.list-card .table tbody tr {
    transition: all 0.2s ease !important;
    border-bottom: 1px solid #f9fafb !important;
}

.modern-datagrid tbody tr:hover,
.list-card .table tbody tr:hover {
    background: #f0f9ff !important;
    transform: scale(1.002) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.modern-datagrid tbody td,
.list-card .table tbody td {
    padding: 16px 24px !important;
    border: none !important;
    vertical-align: middle !important;
}

/* Item Name with Icon/Avatar */
.item-name {
    display: flex;
    align-items: center;
    gap: 14px;
}

.item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(74, 144, 217, 0.1);
    color: #4a90d9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.item-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.item-meta {
    font-size: 12px;
    color: #9ca3af;
}

/* Meta Value */
.meta-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}

.meta-value i {
    font-size: 12px;
    color: #9ca3af;
}

/* Pagination Wrapper */
.pagination-wrapper {
    padding: 20px 24px;
    background: #fafbfc;
    border-top: 1px solid #f3f4f6;
}

/* Empty State for Lists */
.list-empty-state {
    text-align: center;
    padding: 80px 40px;
}

.list-empty-state .empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-empty-state .empty-icon i {
    font-size: 40px;
    color: #9ca3af;
}

.list-empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #4b5563;
    margin: 0 0 8px 0;
}

.list-empty-state p {
    font-size: 15px;
    color: #9ca3af;
    margin: 0 0 24px 0;
}

/* Responsive List */
@media (max-width: 768px) {
    .list-page-container {
        padding: 16px;
    }

    .list-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .list-page-header .page-title {
        font-size: 22px;
    }

    .btn-add-new {
        width: 100%;
        justify-content: center;
    }

    .quick-filter-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tab {
        padding: 14px 16px;
        white-space: nowrap;
    }

    .search-bar form {
        flex-direction: column;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .btn-search {
        width: 100% !important;
    }

    .modern-datagrid thead th,
    .modern-datagrid tbody td {
        padding: 12px 16px !important;
    }

    .item-icon,
    .item-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Additional List Styles */
.list-info-header {
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.list-info-header .info-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #065f46;
}

.list-info-header .info-text i {
    font-size: 16px;
    color: #10b981;
}

/* Filter Row */
.filter-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-field {
    flex: 1;
    min-width: 200px;
}

.filter-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    padding-bottom: 2px;
}

.btn-clear {
    padding: 14px 24px !important;
    background: transparent !important;
    color: #6b7280 !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-clear:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

/* Icon Variants */
.item-icon-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.item-icon-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
}

.item-icon-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}

/* Text muted */
.text-muted {
    color: #9ca3af !important;
}

/* Fix action column styling */
.modern-datagrid td:first-child,
.list-card .table td:first-child {
    width: 50px !important;
    text-align: center !important;
}

.modern-datagrid td:nth-child(2),
.list-card .table td:nth-child(2) {
    width: 50px !important;
    text-align: center !important;
}

/* Action column header fix */
.modern-datagrid th:first-child,
.modern-datagrid th:nth-child(2),
.list-card .table th:first-child,
.list-card .table th:nth-child(2) {
    width: 50px !important;
    min-width: 50px !important;
}

/* Action buttons styling */
.modern-datagrid a[generator="adianti"],
.list-card .table a[generator="adianti"],
.tdatagrid_action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.modern-datagrid a[generator="adianti"]:hover,
.list-card .table a[generator="adianti"]:hover,
.tdatagrid_action:hover {
    background: #e5e7eb !important;
    transform: scale(1.05) !important;
}

.modern-datagrid a[generator="adianti"] i.fa-edit,
.modern-datagrid a[generator="adianti"] i.blue {
    color: #3b82f6 !important;
}

.modern-datagrid a[generator="adianti"] i.fa-trash,
.modern-datagrid a[generator="adianti"] i.red {
    color: #ef4444 !important;
}

.modern-datagrid a[generator="adianti"] i.fa-check,
.modern-datagrid a[generator="adianti"] i.green {
    color: #10b981 !important;
}

.modern-datagrid a[generator="adianti"] i.fa-file-pdf-o,
.modern-datagrid a[generator="adianti"] i.orange {
    color: #f59e0b !important;
}

.modern-datagrid a[generator="adianti"] i.fa-download {
    color: #10b981 !important;
}

.modern-datagrid a[generator="adianti"] i.fa-eye {
    color: #3b82f6 !important;
}

/* Fix item-name alignment to work in any column */
.item-name {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
}

/* Make sure icons/avatars don't shrink */
.item-icon,
.item-avatar {
    flex-shrink: 0 !important;
}

/* Fix meta-value to be inline */
.meta-value {
    white-space: nowrap !important;
}