@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #f8fafc; /* Very light slate background */
    --bg-secondary: #f1f5f9;
    --accent-primary: #4f46e5; /* Indigo */
    --accent-secondary: #06b6d4; /* Teal */
    --accent-glow: rgba(79, 70, 229, 0.08);
    --text-primary: #0f172a; /* Dark slate text */
    --text-secondary: #475569; /* Medium slate text */
    --text-muted: #94a3b8; /* Muted slate text */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.06);
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-focus: #4f46e5;
    --error: #e11d48;
    --success: #059669;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Animated Blobs - Soft for light mode */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.18;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #818cf8 0%, transparent 80%);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #c084fc 0%, transparent 80%);
    bottom: -15%;
    right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #67e8f9 0%, transparent 80%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.12;
    animation-duration: 25s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, 30px) scale(1.1);
    }
    100% {
        transform: translate(-30px, -50px) scale(0.9);
    }
}

/* Centered Flexbox for Auth Pages (Login, Register, Forgot Password) */
.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-wrapper {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    z-index: 1;
}

.auth-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 8px 15px -6px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.2);
}

.auth-logo i {
    font-size: 22px;
    color: #fff;
}

.auth-title {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
}

.form-control {
    width: 100%;
    padding: 13px 16px 13px 44px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--input-focus);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-control:focus + .input-icon {
    color: var(--accent-primary);
}

/* Password Toggle Icon */
.password-toggle {
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--text-primary);
}

/* Helpers */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    color: var(--text-secondary);
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: #ffffff;
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox-container input:checked ~ .checkmark::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    font-size: 10px;
}

.auth-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-link:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 4px var(--accent-glow);
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.25);
    background: linear-gradient(135deg, #4338ca, #0891b2);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Notifications - light themes */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.alert-danger {
    background: #ffe4e6;
    border: 1px solid #fecdd3;
    color: #b91c1c;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer links */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Full-Screen Dashboard Sidebar Layout
   ========================================================================== */

.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Sidebar navigation */
.sidebar {
    width: 280px;
    height: 100%;
    background: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    padding: 24px;
    z-index: 10;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.02);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.brand-info h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-info span {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Sidebar profile card */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.sidebar-user-info {
    overflow: hidden;
}

.sidebar-user-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.sidebar-user-info span {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    display: block;
}

/* Sidebar Navigation Items */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--bg-primary);
    color: var(--accent-primary);
}

.nav-link.active {
    background: var(--accent-glow);
    color: var(--accent-primary);
}

.nav-link i {
    font-size: 16px;
}

/* Sidebar Footer (Logout) */
.sidebar-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
    border-radius: var(--radius-md);
    color: #e11d48;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
}

.btn-logout:hover {
    background: #ffe4e6;
    border-color: #fecdd3;
    transform: translateY(-1px);
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Content Header */
.content-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.header-title h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.header-title p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-badge {
    padding: 8px 16px;
    background: var(--bg-primary);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Content Body */
.content-body {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

/* Modules Dashboard Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.module-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e2e8f0;
}

.module-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.module-card:hover .module-icon {
    background: var(--accent-primary);
    color: #ffffff;
}

.module-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.module-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.module-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.module-item-link:hover {
    background: #f1f5f9;
    color: var(--accent-primary);
    border-color: #cbd5e1;
    padding-left: 18px;
}

.module-item-link i {
    font-size: 12px;
    opacity: 0.6;
    transition: var(--transition);
}

.module-item-link:hover i {
    opacity: 1;
    transform: translateX(2px);
}

/* ==========================================================================
   Responsive Layout Styles
   ========================================================================== */

@media (max-width: 992px) {
    .sidebar {
        width: 240px;
    }
    .content-header {
        padding: 20px;
    }
    .content-body {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .app-layout {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
    }
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding: 16px;
    }
    .sidebar-user {
        margin-bottom: 16px;
    }
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 16px;
    }
    .nav-link {
        padding: 8px 12px;
    }
    .main-content {
        height: auto;
        overflow: visible;
    }
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    .content-body {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 30px 20px;
    }
    .form-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ==========================================================================
   IPR Management Module Styles
   ========================================================================== */

.ipr-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.ipr-tabs {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
}

.ipr-tab {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ipr-tab:hover {
    color: var(--accent-primary);
}

.ipr-tab.active {
    background: #ffffff;
    color: var(--accent-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.ipr-actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 14px;
}

.search-input {
    padding: 9px 16px 9px 36px;
    background: #ffffff;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    font-size: 13px;
    outline: none;
    width: 240px;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.btn-add-ipr {
    padding: 9px 18px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15);
    text-decoration: none;
}

.btn-add-ipr:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.25);
    opacity: 0.95;
}

.ipr-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 30px;
}

.ipr-table-wrapper {
    width: 100%;
    overflow-x: auto;
    cursor: grab;
    transition: cursor 0.1s ease;
}

.ipr-table-wrapper.dragging {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
}

.ipr-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.ipr-table th {
    background: #f8fafc;
    padding: 16px 20px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.ipr-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-secondary);
    vertical-align: top;
    line-height: 1.5;
}

.ipr-table tbody tr {
    transition: var(--transition);
}

.ipr-table tbody tr:hover {
    background: #f8fafc;
}

/* Row type and status badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-patent {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-copyright {
    background: #f3e8ff;
    color: #6b21a8;
}

.badge-trademark {
    background: #fef3c7;
    color: #92400e;
}

.badge-status-active {
    background: #d1fae5;
    color: #065f46;
}

.badge-status-ceased {
    background: #fee2e2;
    color: #991b1b;
}

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

/* Action button styles */
.actions-cell {
    white-space: nowrap;
    text-align: right;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    margin-left: 4px;
    text-decoration: none;
}

.btn-action-edit:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

.btn-action-delete:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.btn-action-view:hover {
    background: #eff6ff;
    border-color: #bae6fd;
    color: #0284c7;
}

/* Modal Window styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.7);
    width: 100%;
    max-width: 650px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-overlay.open .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-secondary {
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Grid for forms */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group-full {
    grid-column: span 2;
}

/* Responsive fixes for tables and forms */
@media (max-width: 768px) {
    .ipr-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .ipr-tabs {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
    .ipr-actions-right {
        width: 100%;
        justify-content: space-between;
    }
    .search-input {
        width: 100%;
        flex: 1;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-group-full {
        grid-column: span 1;
    }
}

.btn-back-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-back-dashboard:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--text-primary);
}

/* Export Dropdown Styles */
.export-dropdown {
    position: relative;
    display: inline-block;
}

.btn-export {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-export:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.export-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: #ffffff;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 170px;
    z-index: 100;
    overflow: hidden;
    animation: fadeIn 0.15s ease-out;
}

.export-menu.show {
    display: block;
}

.export-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid #f1f5f9;
}

.export-menu a:last-child {
    border-bottom: none;
}

.export-menu a:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.export-menu a i {
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.export-menu a i.fa-file-excel {
    color: #107c41;
}

.export-menu a i.fa-file-word {
    color: #185abd;
}

.export-menu a i.fa-file-csv {
    color: #0f172a;
}

/* Profile Dropdown Container */
.profile-dropdown-container {
    position: relative;
    display: inline-block;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-lg);
    padding: 6px 14px 6px 8px;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.profile-info-brief {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-info-brief i {
    font-size: 11px;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.profile-dropdown-container.active .profile-info-brief i {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.profile-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 48px;
    background: #ffffff;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
    animation: fadeIn 0.15s ease-out;
}

.profile-dropdown-menu.show {
    display: block;
}

.dropdown-user-details {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
}

.dropdown-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.dropdown-info {
    overflow: hidden;
}

.dropdown-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.dropdown-info p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 2px 0 0 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.dropdown-divider {
    height: 1px;
    background: #f1f5f9;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.dropdown-item.logout-item {
    color: #ef4444;
}

.dropdown-item.logout-item:hover {
    background: #fef2f2;
    color: #dc2626;
}

.dropdown-item i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}



