/* Modern Effects CSS - PM Tool Visual Enhancements */

/* ============================================
   GLOBAL SMOOTH SCROLLING & CURSOR FEEDBACK
   ============================================ */
html {
    scroll-behavior: smooth;
}

* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

button, a, [role="button"], input[type="checkbox"], select {
    cursor: pointer;
}

input:not([type="checkbox"]):not([type="radio"]), textarea {
    cursor: text;
}

/* ============================================
   RIPPLE EFFECT
   ============================================ */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Dark mode ripple */
.dark .ripple::before {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   TAB SCROLL CONTAINER
   ============================================ */
.tab-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    display: flex;
    align-items: center;
}

.tab-scroll::-webkit-scrollbar {
    height: 6px;
}

.tab-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.tab-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.tab-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Dark mode scrollbar */
.dark .tab-scroll {
    scrollbar-color: #475569 #1e293b;
}

.dark .tab-scroll::-webkit-scrollbar-track {
    background: #1e293b;
}

.dark .tab-scroll::-webkit-scrollbar-thumb {
    background: #475569;
}

.dark .tab-scroll::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ============================================
   DARK MODE SCROLLBARS (General)
   ============================================ */
/* Dark scrollbars for any overflow container within .dark parent */
.dark .overflow-x-auto,
.dark .overflow-y-auto,
.dark .overflow-auto {
    scrollbar-width: thin;
    scrollbar-color: #475569 #1e293b;
}

.dark .overflow-x-auto::-webkit-scrollbar,
.dark .overflow-y-auto::-webkit-scrollbar,
.dark .overflow-auto::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.dark .overflow-x-auto::-webkit-scrollbar-track,
.dark .overflow-y-auto::-webkit-scrollbar-track,
.dark .overflow-auto::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 4px;
}

.dark .overflow-x-auto::-webkit-scrollbar-thumb,
.dark .overflow-y-auto::-webkit-scrollbar-thumb,
.dark .overflow-auto::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

.dark .overflow-x-auto::-webkit-scrollbar-thumb:hover,
.dark .overflow-y-auto::-webkit-scrollbar-thumb:hover,
.dark .overflow-auto::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ============================================
   TASKS BOARD SCROLLBARS
   ============================================ */
/* Light mode scrollbar */
.scrollbar-light {
    scrollbar-width: auto;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.scrollbar-light::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}

.scrollbar-light::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 6px;
}

.scrollbar-light::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 6px;
    border: 2px solid #f1f5f9;
}

.scrollbar-light::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Dark mode scrollbar */
.scrollbar-dark {
    scrollbar-width: auto;
    scrollbar-color: #475569 #1e293b;
}

.scrollbar-dark::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}

.scrollbar-dark::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 6px;
}

.scrollbar-dark::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 6px;
    border: 2px solid #1e293b;
}

.scrollbar-dark::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Theme-aware scrollbar (uses .dark parent selector) */
.scrollbar-theme {
    scrollbar-width: auto;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.scrollbar-theme::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}

.scrollbar-theme::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 6px;
}

.scrollbar-theme::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 6px;
    border: 2px solid #f1f5f9;
}

.scrollbar-theme::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.dark .scrollbar-theme {
    scrollbar-color: #475569 #1e293b;
}

.dark .scrollbar-theme::-webkit-scrollbar-track {
    background: #1e293b;
}

.dark .scrollbar-theme::-webkit-scrollbar-thumb {
    background: #64748b;
    border: 2px solid #1e293b;
}

.dark .scrollbar-theme::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Shadow lift effect on hover */
.shadow-lift:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ============================================
   TAB ANIMATIONS
   ============================================ */
.tab-container {
    position: relative;
}

.tab-button {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-button:hover {
    transform: translateY(-1px);
}

.tab-button:active {
    transform: translateY(0) scale(0.98);
}

.tab-button.active {
    animation: tabActivate 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tabActivate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Sliding tab indicator */
.tab-indicator {
    position: absolute;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px 2px 0 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* ============================================
   BUTTON EFFECTS
   ============================================ */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-modern:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn-modern:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Gradient flow animation */
.btn-gradient-flow {
    background-size: 200% 100%;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.btn-gradient-flow:hover {
    animation: gradientFlowFast 1s ease infinite;
}

@keyframes gradientFlowFast {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Pulse ring effect */
.btn-pulse:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    border: 2px solid currentColor;
    transform: translate(-50%, -50%);
    animation: pulseRing 0.6s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Lock/Unlock button animation */
.lock-button {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lock-button:hover {
    transform: rotate(5deg) scale(1.1);
}

.lock-button:active {
    animation: lockToggle 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lockToggle {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(20deg) scale(1.2);
    }
    50% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* ============================================
   GLASSMORPHISM
   ============================================ */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animated gradient border */
.border-animated {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6) border-box;
    background-size: 300% 100%;
    animation: borderFlow 4s linear infinite;
}

.border-animated-dark {
    background: linear-gradient(rgb(30, 41, 59), rgb(30, 41, 59)) padding-box,
                linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6) border-box;
    background-size: 300% 100%;
    animation: borderFlow 4s linear infinite;
}

@keyframes borderFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   DROPDOWN ANIMATIONS
   ============================================ */
.dropdown-enter {
    animation: dropdownSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dropdownSlide {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item:hover::before {
    width: 100%;
}

/* Stagger animation for dropdown items */
.dropdown-item:nth-child(1) { animation-delay: 0.05s; }
.dropdown-item:nth-child(2) { animation-delay: 0.1s; }
.dropdown-item:nth-child(3) { animation-delay: 0.15s; }
.dropdown-item:nth-child(4) { animation-delay: 0.2s; }
.dropdown-item:nth-child(5) { animation-delay: 0.25s; }

.dropdown-item-stagger {
    animation: itemFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

@keyframes itemFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   CHECKBOX ANIMATIONS
   ============================================ */
input[type="checkbox"] {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="checkbox"]:checked {
    animation: checkboxPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkboxPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* ============================================
   INPUT FOCUS EFFECTS
   ============================================ */
.input-glow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3),
                0 0 20px rgba(59, 130, 246, 0.2);
    transform: scale(1.01);
}

.input-glow-dark:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4),
                0 0 20px rgba(59, 130, 246, 0.3);
}

/* ============================================
   CARD HOVER EFFECTS
   ============================================ */
.card-modern {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Glowing border on hover */
.card-glow {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-glow:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3),
                0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
}

/* ============================================
   LOADING & SKELETON ANIMATIONS
   ============================================ */
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.spinner-modern {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Pulsing dot */
.pulse-dot {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* ============================================
   MODAL ANIMATIONS
   ============================================ */
.modal-backdrop {
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   SAVE STATUS ANIMATIONS
   ============================================ */
.save-indicator {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.save-success {
    animation: successPulse 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* ============================================
   THEME TRANSITION
   ============================================ */
.theme-transition {
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   DELETE BUTTON SHAKE WARNING
   ============================================ */
.delete-shake:hover {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-3px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(3px, 0, 0);
    }
}

/* ============================================
   MAGNETIC BUTTON EFFECT
   ============================================ */
.btn-magnetic {
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   ICON ANIMATIONS
   ============================================ */
.icon-rotate-on-hover:hover {
    animation: iconRotate 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.icon-pulse:hover {
    animation: iconPulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ============================================
   TOOLTIP FADE
   ============================================ */
.tooltip-fade {
    animation: tooltipFade 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   FLOATING ANIMATION
   ============================================ */
.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   GLOW EFFECT
   ============================================ */
.glow {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.5),
                0 0 10px rgba(59, 130, 246, 0.3),
                0 0 15px rgba(59, 130, 246, 0.2);
}

.glow-green {
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.5),
                0 0 10px rgba(34, 197, 94, 0.3),
                0 0 15px rgba(34, 197, 94, 0.2);
}

.glow-red {
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.5),
                0 0 10px rgba(239, 68, 68, 0.3),
                0 0 15px rgba(239, 68, 68, 0.2);
}

/* ============================================
   SLIDE TRANSITIONS
   ============================================ */
.slide-in-right {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   BOUNCE ENTRANCE
   ============================================ */
.bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* ============================================
   NOTIFICATION TOAST
   ============================================ */
.toast-enter {
    animation: toastSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toastSlide {
    from {
        opacity: 0;
        transform: translateX(100%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

/* ============================================
   KANBAN CARD EFFECTS
   ============================================ */
/* Kanban card hover - subtle lift with enhanced shadow */
.kanban-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Kanban card when being dragged */
.kanban-card:active {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    cursor: grabbing;
}

/* Notes icon pulse when notes exist */
.notes-icon-pulse {
    animation: notesPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes notesPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0);
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */
.gpu-accelerate {
    transform: translateZ(0);
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   DIGITAL PORTFOLIO STYLE - PROJECT FORM
   ============================================ */

/* Project Card Base */
.project-card-portfolio {
    background: white;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.dark .project-card-portfolio {
    background: rgb(30, 41, 59);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Section Card with Left Accent */
.section-card-portfolio {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #4169E1;
}

.dark .section-card-portfolio {
    background: rgb(51, 65, 85);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    border-left-color: #60a5fa;
}

/* Header Bar (Gradient matching Projects Tab) */
.header-bar-portfolio {
    background: linear-gradient(to right, #3b82f6, #6366f1);
    border-radius: 12px 12px 0 0;
}

.dark .header-bar-portfolio {
    background: linear-gradient(to right, #2563eb, #4f46e5);
}

/* Input Styled */
.input-portfolio {
    border: 1px solid #E5E7EB;
    transition: all 0.15s ease;
    background: white;
    border-radius: 6px;
    font-size: 13px;
}

.input-portfolio:hover {
    border-color: #D1D5DB;
}

.input-portfolio:focus {
    outline: none;
    border-color: #4169E1;
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

.dark .input-portfolio {
    background: rgb(51, 65, 85);
    border-color: rgb(71, 85, 105);
    color: #e2e8f0;
}

.dark .input-portfolio:hover {
    border-color: rgb(100, 116, 139);
}

.dark .input-portfolio:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

/* Header Input (Lighter blue hue on gradient) */
.input-header-portfolio {
    background: rgba(147, 197, 253, 0.25);
    border: 1px solid rgba(191, 219, 254, 0.4);
    color: #e0f2fe;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.input-header-portfolio:hover {
    background: rgba(147, 197, 253, 0.35);
    border-color: rgba(191, 219, 254, 0.5);
}

.input-header-portfolio:focus {
    background: rgba(147, 197, 253, 0.35);
    outline: none;
    box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.25);
}

.input-header-portfolio::placeholder {
    color: rgba(186, 230, 253, 0.7);
}

/* Primary Button (Rounded) */
.btn-primary-portfolio {
    background: #4169E1;
    border-radius: 20px;
    transition: all 0.2s ease;
    font-weight: 600;
    color: white;
    padding: 6px 16px;
    font-size: 13px;
}

.btn-primary-portfolio:hover {
    background: #3557c5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

.dark .btn-primary-portfolio {
    background: #60a5fa;
}

.dark .btn-primary-portfolio:hover {
    background: #3b82f6;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

/* Icon Button */
.btn-icon-portfolio {
    transition: all 0.15s ease;
    border-radius: 6px;
    padding: 6px;
}

.btn-icon-portfolio:hover {
    background: #F3F4F6;
}

.dark .btn-icon-portfolio:hover {
    background: rgb(71, 85, 105);
}

/* Badge Pill */
.badge-pill-portfolio {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-blue-portfolio { background: #4169E1; color: white; }
.badge-green-portfolio { background: #10B981; color: white; }
.badge-orange-portfolio { background: #F59E0B; color: white; }
.badge-purple-portfolio { background: #8B5CF6; color: white; }
.badge-indigo-portfolio { background: #6366F1; color: white; }
.badge-red-portfolio { background: #EF4444; color: white; }
.badge-gray-portfolio { background: #E5E7EB; color: #6B7280; }
.badge-lightblue-portfolio { background: #bfdbfe; color: #1e40af; }

.dark .badge-gray-portfolio { background: rgb(71, 85, 105); color: #9ca3af; }
.dark .badge-lightblue-portfolio { background: rgba(59, 130, 246, 0.3); color: #93c5fd; }

/* Header badge with white outline */
.badge-header-outline-portfolio {
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Avatar Circle (smaller for team assignments) */
.avatar-circle-portfolio {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4169E1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-sm-portfolio {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    color: white;
    border: 2px solid white;
}

.dark .avatar-sm-portfolio {
    border-color: rgb(30, 41, 59);
}

.avatar-stack-portfolio {
    display: flex;
    margin-left: -8px;
}

.avatar-stack-portfolio > * {
    margin-left: -6px;
}

.avatar-stack-portfolio > *:first-child {
    margin-left: 0;
}

/* Expanded Content */
.expanded-content-portfolio {
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
}

.dark .expanded-content-portfolio {
    background: rgb(30, 41, 59);
    border-top-color: rgb(71, 85, 105);
}

/* Team Assignment Panel */
.team-assignment-panel-portfolio {
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    background: white;
}

.dark .team-assignment-panel-portfolio {
    border-color: rgb(71, 85, 105);
    background: rgb(51, 65, 85);
}

.team-member-row-portfolio {
    display: grid;
    grid-template-columns: 32px 1fr 90px 32px;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #F3F4F6;
}

.team-member-row-portfolio:hover {
    background: white;
}

.team-member-row-portfolio:last-child {
    border-bottom: none;
}

.dark .team-member-row-portfolio {
    border-bottom-color: rgb(51, 65, 85);
}

.dark .team-member-row-portfolio:hover {
    background: rgb(51, 65, 85);
}

/* Budget Table Styles */
.budget-table-portfolio {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.budget-table-portfolio thead th {
    background: linear-gradient(to bottom, #F8FAFC, #F1F5F9);
    border-bottom: 2px solid #E2E8F0;
    padding: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #475569;
}

.dark .budget-table-portfolio thead th {
    background: linear-gradient(to bottom, rgb(51, 65, 85), rgb(71, 85, 105));
    border-bottom-color: rgb(100, 116, 139);
    color: #94a3b8;
}

.budget-table-portfolio tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #F1F5F9;
}

.dark .budget-table-portfolio tbody td {
    border-bottom-color: rgb(51, 65, 85);
}

.budget-table-portfolio tbody tr:hover {
    background: #FAFBFC;
}

.dark .budget-table-portfolio tbody tr:hover {
    background: rgb(51, 65, 85);
}

.budget-row-label-portfolio {
    font-weight: 600;
    color: #1E293B;
    font-size: 13px;
}

.dark .budget-row-label-portfolio {
    color: #e2e8f0;
}

.budget-input-portfolio {
    border: 1px solid #E2E8F0;
    background: white;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
    transition: all 0.15s ease;
    font-variant-numeric: tabular-nums;
    width: 100%;
}

.budget-input-portfolio:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
}

.budget-input-portfolio:focus {
    outline: none;
    border-color: #4169E1;
    background: white;
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.08);
}

.dark .budget-input-portfolio {
    background: rgb(51, 65, 85);
    border-color: rgb(71, 85, 105);
    color: #e2e8f0;
}

.dark .budget-input-portfolio:hover {
    border-color: rgb(100, 116, 139);
    background: rgb(71, 85, 105);
}

.dark .budget-input-portfolio:focus {
    border-color: #60a5fa;
    background: rgb(51, 65, 85);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.budget-total-portfolio {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1px solid #BFDBFE;
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: 700;
    color: #1E40AF;
    text-align: center;
    font-size: 13px;
}

.dark .budget-total-portfolio {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(96, 165, 250, 0.15) 100%);
    border-color: rgba(96, 165, 250, 0.4);
    color: #93c5fd;
}

.budget-subtotal-portfolio {
    background: #F8FAFC;
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: 600;
    color: #334155;
    text-align: center;
    font-size: 13px;
}

.dark .budget-subtotal-portfolio {
    background: rgb(51, 65, 85);
    color: #94a3b8;
}

.budget-remaining-positive-portfolio {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border: 1px solid #86EFAC;
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: 700;
    color: #15803D;
    text-align: center;
    font-size: 13px;
}

.dark .budget-remaining-positive-portfolio {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(74, 222, 128, 0.1) 100%);
    border-color: rgba(74, 222, 128, 0.4);
    color: #86efac;
}

.budget-remaining-negative-portfolio {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border: 1px solid #FCA5A5;
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: 700;
    color: #DC2626;
    text-align: center;
    font-size: 13px;
}

.dark .budget-remaining-negative-portfolio {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(248, 113, 113, 0.1) 100%);
    border-color: rgba(248, 113, 113, 0.4);
    color: #fca5a5;
}

.budget-divider-row-portfolio td {
    padding: 0 !important;
    height: 12px;
    background: transparent;
    border: none !important;
}

/* Budget Summary Card */
.budget-summary-card-portfolio {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.budget-summary-card-portfolio:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.dark .budget-summary-card-portfolio {
    background: rgb(51, 65, 85);
    border-color: rgb(71, 85, 105);
}

.dark .budget-summary-card-portfolio:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.budget-summary-label-portfolio {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.dark .budget-summary-label-portfolio {
    color: #94a3b8;
}

.budget-summary-value-portfolio {
    font-size: 24px;
    font-weight: 700;
    color: #1E293B;
    font-variant-numeric: tabular-nums;
}

.dark .budget-summary-value-portfolio {
    color: #f1f5f9;
}

.budget-summary-icon-portfolio {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

/* Project Table Styles */
.project-table-portfolio {
    width: 100%;
    border-collapse: collapse;
}

.project-table-portfolio th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    padding: 8px 12px;
    border-bottom: 1px solid #E5E7EB;
    background: #F9FAFB;
}

.dark .project-table-portfolio th {
    color: #9ca3af;
    border-bottom-color: rgb(71, 85, 105);
    background: rgb(51, 65, 85);
}

.project-table-portfolio td {
    padding: 8px 12px;
    font-size: 13px;
    border-bottom: 1px solid #F3F4F6;
}

.dark .project-table-portfolio td {
    border-bottom-color: rgb(51, 65, 85);
}

.project-table-portfolio tbody tr:hover {
    background: #F9FAFB;
}

.dark .project-table-portfolio tbody tr:hover {
    background: rgb(51, 65, 85);
}

.project-table-portfolio tbody tr:last-child td {
    border-bottom: none;
}

/* Footer Style */
.footer-portfolio {
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
}

.dark .footer-portfolio {
    background: rgb(30, 41, 59);
    border-top-color: rgb(71, 85, 105);
}