:root {
    --primary: #420072;
    --primary-hover: #2d004d;
    --secondary: #64748b;
    --accent: #10b981;
    --background: #ffffff;
    --foreground: #0f172a;
    --muted: #f8fafc;
    --muted-foreground: #64748b;
    --card: #ffffff;
    --card-foreground: #0f172a;
    --border: #e2e8f0;
    --radius: 1rem;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Added to prevent horizontal scroll from floating cards */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.landing-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--muted);
}

/* Header / Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary);
    letter-spacing: -0.025em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    height: 42px;

    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.btn-outline:hover {
    background-color: var(--muted);
}

/* Sections */
.section {
    padding: 6rem 5%;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
    margin-inline: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

/* Hero Section */
.hero-section {
    padding: 8rem 5% 4rem;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(66, 0, 114, 0.08), transparent 50%),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.05), transparent 50%);
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(66, 0, 114, 0.1);
    color: var(--primary);
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--foreground);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.hero-image {
    position: relative;
}

.dashboard-mockup {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    right: -10%;
    animation-delay: 3s;
}

.card-icon {
    font-size: 1.5rem;
    background: var(--muted);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
}

.card-text {
    display: flex;
    flex-direction: column;
}

.card-text strong {
    font-size: 0.9rem;
    color: var(--foreground);
}

.card-text span {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card-v2 {
    background: var(--card);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(66, 0, 114, 0.2);
}

.icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, rgba(66, 0, 114, 0.1), rgba(66, 0, 114, 0.05));
    color: var(--primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.feature-card-v2 h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card-v2 p {
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

/* Split Section */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
}

.split-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.split-content p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.benefit-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-list li {
    display: flex;
    gap: 1rem;
}

.bl-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.benefit-list li div {
    display: flex;
    flex-direction: column;
}

.benefit-list strong {
    font-size: 1.05rem;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.benefit-list span {
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    padding: 6rem 5%;
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-buttons .btn-primary:hover {
    background: var(--muted);
    color: var(--primary-hover);
}

/* Footer */
.main-footer {
    background: var(--background);
    padding: 3rem 5%;
    border-top: 1px solid var(--border);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--foreground);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 8rem;
        text-align: center;
    }

    .hero-content p {
        margin-inline: auto;
    }

    .hero-actions,
    .hero-stats {
        justify-content: center;
    }

    .floating-card {
        display: none;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .split-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--foreground);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--foreground);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(66, 0, 114, 0.1);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary);
}

.form-check-label {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    cursor: pointer;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.badge-primary {
    background-color: rgba(66, 0, 114, 0.1);
    color: var(--primary);
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.auth-container {
    width: 100%;
    max-width: 500px;
    margin: 8rem auto 4rem;
    padding: 2.5rem;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 1.5rem;
}

.lang-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: background-color 0.2s;
}

.lang-btn:hover {
    background-color: var(--muted);
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--card);
    min-width: 120px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    z-index: 1001;
    overflow: hidden;
}

.lang-dropdown:hover .lang-menu {
    display: block;
}

.lang-menu-form {
    display: flex;
    flex-direction: column;
}

.lang-option {
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    text-align: left;
    width: 100%;
    cursor: pointer;
    font-size: 1rem;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.lang-option:hover {
    background-color: var(--muted);
}

/* Dashboard Specific Styles */
.dashboard-body {
    background-color: #f1f5f9;
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #293133;
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 1100;
}

.sidebar-header {
    height: 70px;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar .logo {
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25rem;
}

/* Responsive Accordion Table */
@media (max-width: 768px) {
    .responsive-accordion-wrapper {
        overflow-x: hidden !important; 
    }
    .responsive-accordion-table {
        min-width: 0 !important;
        width: 100% !important;
        display: block;
    }
    .responsive-accordion-table thead {
        display: none;
    }
    .responsive-accordion-table tbody {
        display: block;
    }
    .responsive-accordion-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border) !important;
        border-radius: var(--radius);
        background: white !important;
        padding: 0;
    }
    .responsive-accordion-table td {
        display: none; /* Hidden by default on mobile */
        padding: 0.45rem 1rem !important;
        border-bottom: 1px solid #f1f5f9;
        text-align: right !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    .responsive-accordion-table td:not(:first-child) > div,
    .responsive-accordion-table td:not(:first-child) > form {
        justify-content: flex-end !important;
        margin-left: auto !important;
    }
    .responsive-accordion-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--muted-foreground);
        float: left;
        text-transform: uppercase;
        font-size: 0.75rem;
    }
    
    .responsive-accordion-table td:first-child {
        display: flex; 
        text-align: left !important;
        justify-content: space-between;
        align-items: center;
        border-bottom: none;
    }
    .responsive-accordion-table td:first-child::before {
        display: none; 
    }
    
    .responsive-accordion-table td:last-child {
        text-align: right;
    }
    .responsive-accordion-table td:last-child::before {
        display: none;
    }

    .mobile-toggle-icon {
        display: block;
        transition: transform 0.3s ease;
        color: var(--muted-foreground);
    }

    .responsive-accordion-table tr.expanded td {
        display: block; 
    }
    .responsive-accordion-table tr.expanded td:first-child {
        border-bottom: 1px solid #f1f5f9;
    }
    .responsive-accordion-table tr.expanded .mobile-toggle-icon {
        transform: rotate(180deg);
    }
}

@media (min-width: 769px) {
    .mobile-toggle-icon {
        display: none !important;
    }
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.nav-section {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    margin: 0.75rem 1rem 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    margin-bottom: 0.15rem;
    font-weight: 500;
    font-size: 0.85rem;
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #f43f5e;
    color: white;
    border-color: #f43f5e;
}

/* Dashboard Main */
.dashboard-main {
    flex: 1;
    margin-left: 250px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dashboard-header {
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-search {
    position: relative;
    width: 400px;
}

.header-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
}

.header-search input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.8rem;
    border: 1px solid var(--border);
    border-radius: 2rem;
    background: #f1f5f9;
    font-size: 0.9rem;
    border: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notifications {
    position: relative;
    font-size: 1.2rem;
    color: var(--secondary);
    cursor: pointer;
}

.notifications .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f43f5e;
    color: white;
    font-size: 0.65rem;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border);
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--foreground);
}

.user-role {
    font-size: 0.7rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.user-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 6px -1px rgba(66, 0, 114, 0.2);
}

.dashboard-content {
    padding: 2.5rem;
    flex: 1;
}

/* Dashboard Summary Cards */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.summary-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.summary-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.summary-data h4 {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.summary-data .value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--foreground);
    font-family: var(--font-heading);
    line-height: 1;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }

    .sidebar-header .logo span,
    .nav-item span,
    .nav-section,
    .sidebar-footer span {
        display: none;
    }

    .dashboard-main {
        margin-left: 80px;
    }

    .nav-item {
        justify-content: center;
        padding: 1rem;
        margin-inline: 0.5rem;
    }

    .header-search {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: flex;
        width: 250px;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 4px 0 10px rgba(0,0,0,0.1);
    }

    .sidebar.show-sidebar {
        transform: translateX(0);
    }

    .sidebar-header .logo span,
    .nav-item span,
    .nav-section,
    .sidebar-footer span {
        display: block !important;
    }

    .nav-item {
        justify-content: flex-start !important;
        padding: 0.5rem 1rem !important;
        margin-inline: 0 !important;
    }

    .dashboard-main {
        margin-left: 0;
    }

    .dashboard-header {
        padding: 0 1rem;
        height: auto;
        min-height: 70px;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .header-search {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1090;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.show-overlay {
    display: block;
    opacity: 1;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--foreground);
    cursor: pointer;
    margin-right: 1rem;
    align-items: center;
    justify-content: center;
}

.adaptive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .adaptive-header {
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    .adaptive-header > div:first-child h1 {
        font-size: 1.25rem !important;
        line-height: 1.2;
    }
    .adaptive-header > div:last-child {
        margin-left: auto;
        flex-shrink: 0;
        display: flex;
        gap: 0.5rem;
    }
    .adaptive-header .btn {
        font-size: 0 !important;
        padding: 0.6rem 0.8rem !important;
    }
    .adaptive-header .btn i {
        font-size: 1.1rem !important;
        margin-right: 0 !important;
    }
}

/* Trademark UI Enhancements */
.tm-row {
    transition: all 0.2s ease;
    cursor: pointer;
}

.tm-row:hover {
    background-color: #f8fafc !important;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: white;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.action-btn.delete:hover {
    background: #f43f5e;
    color: white;
    border-color: #f43f5e;
}

/* Detail Form Sticky Header */
.sticky-header {
    position: sticky;
    top: 70px;
    background: rgba(241, 245, 249, 0.9);
    backdrop-filter: blur(8px);
    z-index: 900;
    padding: 1rem 0;
    margin: -1rem 0 1rem 0;
    border-bottom: 1px solid var(--border);
}



/* Nice Checkbox GRID */
.class-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem;
}

.class-item {
    position: relative;
}

.class-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.class-item label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--muted-foreground);
    min-height: 40px;
}

.class-item input:checked+label {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(66, 0, 114, 0.2);
}

.class-item label:hover {
    background: #f8fafc;
    border-color: var(--primary);
}

.type-card {
    height: 100%;
}

.card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90px;
    /* Daha da azaltılmış sabit yükseklik */
}

.type-card input:checked+.card-content {
    border-color: var(--primary) !important;
    background-color: rgba(66, 0, 114, 0.05);
}

.type-card input:checked+.card-content i {
    color: var(--primary) !important;
}

.type-card input:checked+.card-content div {
    color: var(--primary) !important;
}

.type-card:hover .card-content {
    border-color: #cbd5e1 !important;
}

/* Tab System */
.tabs-container {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.tabs-nav {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
    padding: 0;
}

.tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--muted-foreground);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--primary);
    background: #f1f5f9;
}

.tab-btn.active {
    color: var(--primary);
    background: white;
    margin-bottom: -1px;
    border-bottom: 1px solid white;
}

.tab-btn i {
    font-size: 1rem;
    opacity: 0.7;
}

.tab-pane {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 2rem 0;
    position: relative;
}

.section-title-sm {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Dashboard Responsive Layout Fixes */
.dashboard-stats-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-stats-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
    display: block;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.recent-items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Desktop Defaults for Stats Toggle */
.mobile-stats-toggle {
    display: none;
}
.mobile-stats-content {
    display: block;
}

@media (max-width: 992px) {
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
    .recent-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .dashboard-stats-divider {
        display: none !important;
    }
    .recent-items-grid {
        grid-template-columns: auto 1fr;
        gap: 0.75rem 0.35rem; /* Yakıştır */
    }
    .recent-items-grid .dash-card {
        padding: 0.85rem !important; 
    }
    
    /* Compact Summary Grid */
    .summary-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        margin-bottom: 1.5rem !important;
    }
    .summary-card {
        padding: 1rem 0.5rem !important;
        gap: 0.5rem !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        border-radius: 0.75rem !important;
    }
    .summary-icon {
        width: 2.5rem !important;
        height: 2.5rem !important;
        font-size: 1.1rem !important;
    }
    .summary-data h4 {
        font-size: 0.65rem !important;
    }
    .summary-data .value {
        font-size: 1.25rem !important;
    }
    
    /* Hide specific filter elements initially on mobile */
    .mobile-filter-form .filter-main-row {
        display: flex !important;
        flex-direction: column !important;
    }
    .mobile-filter-form:not(.mobile-filters-open) .filter-main-row > .form-group {
        display: none !important;
    }
    .mobile-filter-form.mobile-filters-open .filter-main-row > .form-group {
        display: block !important;
        order: 2;
        width: 100%;
    }
    .mobile-filter-form .filter-buttons-mobile {
        order: 1;
        display: flex;
        justify-content: stretch;
        width: 100%;
        gap: 0.5rem;
    }
    .mobile-filter-form .filter-buttons-mobile > * {
        flex: 1;
        justify-content: center;
        padding: 0.75rem 0.5rem !important;
        font-size: 0.85rem !important;
    }
    .mobile-filter-form .filter-buttons-mobile > .btn-primary {
        flex: 3;
    }
    .mobile-filter-form .filter-buttons-mobile > a.btn-outline {
        flex: 0 0 45px;
        padding: 0 !important;
    }
    #advancedFilters {
        grid-template-columns: 1fr !important;
        order: 3;
    }

    /* Stats Toggle for Mobile */
    .mobile-stats-wrapper {
        margin-bottom: 2rem;
    }
    .mobile-stats-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: white;
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1rem 1.25rem;
        font-weight: 700;
        font-size: 0.95rem;
        color: #1e293b;
        cursor: pointer;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        margin-bottom: 0;
        transition: all 0.2s;
    }
    .mobile-stats-wrapper.open .mobile-stats-toggle {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom: 1px dashed var(--border);
        box-shadow: none;
    }
    .mobile-stats-toggle .chevron-icon {
        transition: transform 0.3s;
        color: #94a3b8;
    }
    .mobile-stats-wrapper.open .mobile-stats-toggle .chevron-icon {
        transform: rotate(180deg);
    }
    
    .mobile-stats-content {
        display: none;
        background: white;
        border: 1px solid var(--border);
        border-top: none;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        padding: 1.5rem;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    }
    .mobile-stats-wrapper.open .mobile-stats-content {
        display: block;
        animation: fadeIn 0.3s ease;
    }
    .mobile-stats-wrapper .summary-grid {
        margin-bottom: 0 !important;
    }
}

/* Custom Responsive Grid for Detail Views */
.responsive-grid {
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .responsive-grid {
        grid-template-columns: var(--grid-cols, repeat(2, 1fr));
    }
    .col-span-2 {
        grid-column: span 2;
    }
    .col-span-3 {
        grid-column: span 3;
    }
}

@media (max-width: 767px) {
    #quickViewContent .responsive-grid,
    #quickViewContent [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    #quickViewContent .col-span-2,
    #quickViewContent .col-span-3 {
        grid-column: auto !important;
    }

    .mobile-separate-line {
        display: block !important;
        margin-top: 0.35rem;
        padding-top: 0.35rem;
        border-top: 1px dashed #e2e8f0;
    }
    .mobile-separator-hide {
        display: none !important;
    }
    .mobile-separate-field {
        display: block !important;
        margin-bottom: 0.5rem;
    }
}

/* Auth Persons Mobile Styling */
@media (max-width: 768px) {
    .auth-mobile-table, .auth-mobile-table tbody, .auth-mobile-table tr, .auth-mobile-table td, .auth-mobile-table th {
        display: block;
        width: 100%;
    }
    .auth-mobile-table {
        min-width: 0 !important;
    }
    .auth-mobile-table thead {
        display: none;
    }
    .auth-mobile-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border);
        border-radius: 12px;
        overflow: hidden;
        background: white;
    }
    .auth-mobile-table td {
        display: none;
        padding: 0.75rem 1rem !important;
        border-bottom: 1px dashed var(--border) !important;
    }
    .auth-mobile-table td:first-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f8fafc;
        font-weight: 700;
        cursor: pointer;
    }
    .auth-mobile-table td:first-child::after {
        content: '\f078';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        transition: transform 0.3s ease;
    }
    .auth-mobile-table tr.expanded td:first-child::after {
        transform: rotate(180deg);
    }
    .auth-mobile-table tr.expanded td {
        display: flex;
        flex-direction: column;
        align-items: flex-start !important;
    }
    .auth-mobile-table td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 0.75rem;
        color: var(--muted-foreground);
        text-transform: uppercase;
        margin-bottom: 0.25rem;
    }
    .auth-mobile-table td:first-child::before {
        display: none;
    }
    .auth-mobile-table .action-btn-sm-container {
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }
    
    .auth-form-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
    }
    .auth-form-row > label {
        width: auto !important;
        padding-top: 0 !important;
    }
    .auth-form-row > div:not(.auth-responsibilities) {
        flex-direction: column !important;
    }
    .auth-form-row .auth-inputs-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Detail Header Mobile Adjustments */
    .detail-header-wrapper {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        width: 100%;
        overflow: hidden;
    }
    .detail-header-left {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    .detail-header-left h1 {
        font-size: 1.15rem !important;
        flex: 1;
        min-width: 0;
        gap: 0.5rem !important;
        white-space: nowrap;
        overflow: hidden;
        display: flex;
        align-items: center;
    }
    .detail-header-left h1 span {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.9rem !important;
        padding: 0.2rem 0.6rem !important;
        display: block !important;
    }
    .detail-header-right {
        width: 100% !important;
        justify-content: flex-end !important;
        flex-wrap: wrap !important;
    }
    .detail-header-right .btn span.btn-text {
        display: none !important;
    }
    .detail-header-right .btn {
        padding: 0.6rem 0.8rem !important;
    }
    .detail-header-right .btn i {
        margin-right: 0 !important;
    }
}




@media (max-width: 768px) { .adaptive-header-subtitle { display: none !important; } .catalog-actions-wrapper { justify-content: space-between !important; width: 100% !important; flex-wrap: wrap !important; } }

@media (max-width: 768px) { .catalog-header-mobile { flex-direction: column !important; align-items: stretch !important; } }

/* Mobile Tab Nav Adjustments */
@media (max-width: 768px) {
    .tabs-nav {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .tabs-nav::-webkit-scrollbar {
        display: none;
    }
    .tabs-nav .tab-btn {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        padding: 1rem 0 !important;
        justify-content: center !important;
        gap: 0 !important;
        font-size: 0 !important; 
        white-space: nowrap !important;
    }
    .tabs-nav .tab-btn i {
        font-size: 1.25rem !important;
        margin: 0 !important;
        opacity: 0.9 !important;
    }
}

/* Utilities for hiding subtitle on mobile */
.d-none { display: none !important; }
@media (min-width: 768px) {
    .d-none { display: none !important; }
    .d-md-block { display: block !important; }
}


.summary-grid-app {
    display: grid !important;
    gap: 1.5rem !important;
    grid-template-columns: repeat(6, 1fr) !important;
}
@media (max-width: 992px) {
    .summary-grid-app { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
    .summary-grid-app { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Turbo SPA Loading Blur Effect */
.turbo-loading-blur {
    filter: blur(2px);
    opacity: 0.6;
    pointer-events: none;
    transition: filter 0.1s ease, opacity 0.1s ease;
}


/* Base Checkbox & Radio Accent Color */
input[type='checkbox'], input[type='radio'] {
    accent-color: #420072;
}
