:root {
    --mud-default-borderradius: 0px;
    --mud-drawer-border-radius: 0px;
    --mud-card-border-radius: 0px;
    --mud-button-border-radius: 0px;
}

.me-auto {
    margin-right: 0 !important;
}

.theme-switcher {
    transition: all 0.3s ease-in-out !important;
    border-radius: 50% !important;
}

    .theme-switcher:hover {
        background-color: var(--mud-palette-action-hover) !important;
        transform: rotate(180deg) scale(1.1);
    }

    .theme-switcher .mud-icon {
        transition: all 0.3s ease-in-out;
    }


    .theme-switcher.changing {
        animation: themeChange 0.5s ease-in-out;
    }

@keyframes themeChange {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}



* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    color: #1f2937;
    line-height: 1.5;
}

/* === LAYOUT UTILITIES === */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.flex {
    display: flex;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-1 {
    flex: 1 1 0%;
}
.flex-gap-1 {
    gap: 5px;
}
.flex-gap-2 {
    gap: 10px;
}
.flex-gap-3 {
    gap: 15px;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.justify-start {
    justify-content: flex-start;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

/* === POSITIONING === */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.cursor-pointer {
    cursor: pointer;
}

/* === SIZING === */
.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-16 {
    height: 4rem;
}

.w-4 {
    width: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-full {
    width: 100%;
}

.max-w-7xl {
    max-width: 80rem;
}

.min-w-200 {
    min-width: 200px;
}

/* === PADDING === */
.p-2 {
    padding: 0.5rem;
}

.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.pt-1 {
    padding-top: 0.25rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pb-3 {
    padding-bottom: 0.75rem;
}

.pl-3 {
    padding-left: 0.75rem;
}

.pr-4 {
    padding-right: 1rem;
}

/* === MARGIN === */
.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-3 {
    margin-left: 0.75rem;
}

.ml-4 {
    margin-left: 1rem;
}

.ml-10 {
    margin-left: 2.5rem;
}

.ml-auto {
    margin-left: auto;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-4 {
    margin-right: 1rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.my-1 {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

/* === BACKGROUND COLORS === */
.bg-white {
    background-color: #ffffff;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-primary {
    background-color: #2563eb;
}

.bg-primary-10 {
    background-color: rgba(37, 99, 235, 0.1);
}

.bg-red-50 {
    background-color: #fef2f2;
}

.bg-red-500 {
    background-color: #ef4444;
}

/* === TEXT COLORS === */
.text-gray-800 {
    color: #1f2937;
}

.text-gray-900 {
    color: #111827;
}

.text-secondary {
    color: #64748b;
}

.text-primary {
    color: #2563eb;
}

.text-white {
    color: #ffffff;
}

.text-red-600 {
    color: #dc2626;
}

.text-red-800 {
    color: #991b1b;
}

/* === BORDERS === */
.border-b-2 {
    border-bottom-width: 2px;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-primary {
    border-color: #2563eb;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-t {
    border-top-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

/* === SHADOWS === */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* === TYPOGRAPHY === */
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

/* === TRANSITIONS === */
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

/* === TRANSFORMS === */
.rotate-180 {
    transform: rotate(180deg);
}

/* === HOVER STATES === */
.hover-text-gray-900:hover {
    color: #111827;
}

.hover-text-primary:hover {
    color: #2563eb;
}

.hover-text-red-800:hover {
    color: #991b1b;
}

.hover-bg-gray-50:hover {
    background-color: #f9fafb;
}

.hover-bg-gray-100:hover {
    background-color: #f3f4f6;
}

.hover-bg-red-50:hover {
    background-color: #fef2f2;
}

.hover-border-b-2:hover {
    border-bottom-width: 2px;
}

.hover-border-gray-300:hover {
    border-color: #d1d5db;
}

/* === RESPONSIVE UTILITIES === */
.hidden {
    display: none;
}

.block {
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === DARK MODE STYLES === */
.dark {
    color-scheme: dark;
}

    .dark .bg-white {
        background-color: #1e293b;
    }

    .dark .bg-gray-50 {
        background-color: #0f172a;
    }

    .dark .bg-gray-100 {
        background-color: #334155;
    }

    .dark .text-gray-800 {
        color: #f1f5f9;
    }

    .dark .text-gray-900 {
        color: #f8fafc;
    }

    .dark .text-white {
        color: #ffffff;
    }

    .dark .text-secondary {
        color: #94a3b8;
    }

    .dark .border-gray-200 {
        border-color: #1e293b;
    }

    .dark .border-gray-600 {
        border-color: #475569;
    }

    .dark .shadow-sm {
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    }

    .dark .shadow-lg {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    }

    .dark .hover-text-gray-900:hover {
        color: #f8fafc;
    }

    .dark .hover-text-white:hover {
        color: #ffffff;
    }

    .dark .hover-bg-gray-50:hover {
        background-color: #1e293b;
    }

    .dark .hover-bg-gray-100:hover {
        background-color: #334155;
    }

    .dark .hover-bg-slate-600:hover {
        background-color: #475569;
    }

    .dark .hover-bg-slate-700:hover {
        background-color: #334155;
    }

    .dark .hover-bg-red-900-20:hover {
        background-color: rgba(127, 29, 29, 0.2);
    }

/* === SPECIFIC COMPONENT STYLES === */

/* Header Styles */
.app-header {
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.dark .app-header {
    background-color: #1e293b;
}

/* Navigation Styles */
.nav-link {
    padding: 0.25rem;
    padding-top: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 200ms, border-color 200ms;
}

    .nav-link.active {
        color: #2563eb;
        border-bottom: 2px solid #2563eb;
    }

    .nav-link:not(.active) {
        color: #64748b;
    }

        .nav-link:not(.active):hover {
            color: #111827;
            border-bottom: 2px solid #d1d5db;
        }

.dark .nav-link:not(.active):hover {
    color: #ffffff;
}

/* User Menu Styles */
.user-menu-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    /*font-size: 0.875rem;*/
    transition: background-color 200ms, color 200ms;
}

    .user-menu-item:not(.destructive) {
        color: #64748b;
    }

        .user-menu-item:not(.destructive):hover {
            background-color: #f3f4f6;
        }

    .user-menu-item.destructive {
        color: #dc2626;
    }

        .user-menu-item.destructive:hover {
            background-color: #fef2f2;
        }

.dark .user-menu-item:not(.destructive) {
    color: #94a3b8;
}

    .dark .user-menu-item:not(.destructive):hover {
        background-color: #475569;
    }

.dark .user-menu-item.destructive:hover {
    background-color: rgba(127, 29, 29, 0.2);
}

/* Badge Styles */
.notification-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    height: 1rem;
    width: 1rem;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Avatar Styles */
.user-avatar {
    border-radius: 50%;
    object-fit: cover;
}

    .user-avatar.size-32 {
        height: 2rem;
        width: 2rem;
    }

    .user-avatar.size-40 {
        height: 2.5rem;
        width: 2.5rem;
    }

    .user-avatar.size-48 {
        height: 3rem;
        width: 3rem;
    }

/* === RESPONSIVE BREAKPOINTS === */

/* Mobile First - Base styles above apply to mobile */

/* Tablet and up (768px and above) */
@media (min-width: 768px) {
    .md-hidden {
        display: none;
    }

    .md-block {
        display: block;
    }

    .md-flex {
        display: flex;
    }

    .md-ml-4 {
        margin-left: 1rem;
    }

    .md-ml-10 {
        margin-left: 2.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}



.mud-menu-list {
    padding: 0 0 !important; /**/
    min-width: 112px;
}


/* Desktop and up (1024px and above) */
@media (min-width: 1024px) {
    .lg-block {
        display: block;
    }

    .lg-hidden {
        display: none;
    }

    .container {
        padding: 0 2rem;
    }
}

/* Large desktop (1280px and above) */
@media (min-width: 1280px) {
    .container {
        padding: 0 2rem;
    }
}

/* === FOCUS STYLES === */
.focus-outline:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.focus-ring:focus {
    box-shadow: 0 0 0 2px #2563eb, 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* === ANIMATION UTILITIES === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.animate-fade-in {
    animation: fadeIn 200ms ease-in-out;
}

.animate-slide-down {
    animation: slideDown 200ms ease-in-out;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: background-color 200ms;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

    .dark ::-webkit-scrollbar-thumb:hover {
        background: #64748b;
    }





@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }

    40%, 43% {
        transform: translateY(-8px);
    }

    70% {
        transform: translateY(-4px);
    }

    90% {
        transform: translateY(-2px);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}


/* Add these animation keyframes to your app.css for construction pages */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }

    40%, 43% {
        transform: translateY(-8px);
    }

    70% {
        transform: translateY(-4px);
    }

    90% {
        transform: translateY(-2px);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Enhanced MudBlazor theme support for better dark mode */
:root {
    --mud-elevation-4: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --mud-elevation-8: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --mud-elevation-12: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Dark mode elevation adjustments */
.mud-theme-dark {
    --mud-elevation-4: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --mud-elevation-8: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --mud-elevation-12: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* ========================================
   MudTabs - Better visibility in dark mode
   ======================================== */

/* Unselected tabs - Light mode */
.mud-tab:not(.mud-tab-active) {
    color: #6B7280 !important;
    font-weight: 500 !important;
}

/* Unselected tabs - Dark mode - More visible */
.mud-theme-dark .mud-tab:not(.mud-tab-active) {
    color: #E5E7EB !important;
    font-weight: 500 !important;
}

/* Hover state for unselected tabs */
.mud-tab:not(.mud-tab-active):hover {
    color: var(--mud-palette-text-primary) !important;
}

.mud-theme-dark .mud-tab:not(.mud-tab-active):hover {
    color: #FFFFFF !important;
}

/* Active tab - keep primary color */
.mud-tab.mud-tab-active {
    color: var(--mud-palette-primary) !important;
    font-weight: 600 !important;
}