/* Remix Icon Fix */
:where([class^="ri-"])::before {
    content: "\f3c2";
}

/* Base Styles */
body {
    font-family: 'Nunito', sans-serif;
    background-color: #101827;
}

/* Panel Page Styles */
body.panel-page {
    background-color: #111827;
    color: #f3f4f6;
}

/* Index Page Styles */
body.index-page {
    background-color: #f8fafc;
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.9) 0%, rgba(245, 158, 11, 0.8) 100%);
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Hero Slider Styles */
.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.slide-content {
    animation: slideContentIn 0.8s ease-out;
}

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

.slider-dot {
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border: none;
    padding: 0;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.slider-dot.active {
    background-color: rgba(255, 255, 255, 1);
    width: 2rem;
}

@media (max-width: 768px) {
    .hero-slide h1,
    .hero-slide h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-slide p {
        font-size: 1rem;
    }
    
    .hero-slide ul {
        font-size: 0.9rem;
    }
}

/* Number Input Spinner Hide */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes dash {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

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

/* Island Styles */
.island-path {
    stroke-dasharray: 10;
    animation: dash 20s linear infinite;
}

.island-node {
    transition: all 0.3s ease;
}

.island-node:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

.island-locked {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: all !important;
}

.island-locked:hover {
    filter: none !important;
    transform: none !important;
}

/* Task Styles */
.task-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.task-checkbox:disabled + div label {
    cursor: not-allowed !important;
    color: #9ca3af !important;
}

/* Badge Styles */
.badge {
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
}

/* Chat Message Styles */
.chat-message {
    animation: fadeIn 0.3s ease-in-out;
}

/* Avatar Option Styles */
.avatar-option {
    transition: all 0.2s ease;
}

.avatar-option:hover {
    transform: scale(1.05);
    border-color: #6366f1;
}

.avatar-option.selected {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #1f2937;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #6366f1;
}

/* Task Checkbox Styles */
.task-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #4b5563;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-checkbox:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

.task-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.task-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Switch Toggle Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #374151;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #6366f1;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Spin Animation for Loading */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

/* Session Expired Modal Styles */
.session-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

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

.session-modal-content {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    overflow: hidden;
}

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

.session-modal-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 24px;
    text-align: center;
}

.session-modal-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    animation: pulse 2s ease-in-out infinite;
}

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

.session-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.session-modal-body {
    padding: 32px 24px;
    text-align: center;
    color: #374151;
}

.session-modal-body p {
    margin: 12px 0;
    font-size: 16px;
    line-height: 1.6;
}

.session-modal-footer {
    padding: 0 24px 24px;
    text-align: center;
}

.session-modal-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.session-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

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

/* Mobile Menu Styles */
.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  border-radius: 0.5rem;
  color: #374151;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  width: 100%;
  text-decoration: none;
}

.mobile-menu-item:hover {
  background-color: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.mobile-menu-item i {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-menu-item span {
  flex: 1;
  text-align: left;
}

/* Mobile Menu Animation */
#mobileFullScreenMenu {
  animation: slideInFromRight 0.3s ease-out;
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

#mobileFullScreenMenu.hidden {
  animation: slideOutToRight 0.3s ease-in;
}

@keyframes slideOutToRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  @apply fixed inset-0 bg-black/50 z-40 hidden;
}

.mobile-menu-overlay.active {
  @apply block;
}

/* ========================================
   RESPONSIVE SIDEBAR STYLES
   ======================================== */

/* Navbar Sidebar Toggle Button */
#sidebarToggleNav {
    display: none;
}

@media (max-width: 999px) {
    #sidebarToggleNav {
        display: flex;
    }
}

/* Sidebar Overlay */
#sidebarOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
    display: none;
}

#sidebarOverlay.active {
    display: block;
}

/* Left Sidebar */
#leftSidebar {
    position: fixed;
    width: 320px;
    background-color: #111827;
    border-right: 1px solid #1f2937;
    padding: 1.5rem;
    overflow-y: auto;
    height: calc(100vh - 73px);
    z-index: 50;
    left: -320px;
    transition: left 0.3s ease-in-out;
}

#leftSidebar.open {
    left: 0;
}

/* Close Button */
#sidebarClose {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #9ca3af;
    transition: color 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem;
}

#sidebarClose:hover {
    color: white;
}

/* Desktop görünüm (≥1000px) */
@media (min-width: 1000px) {
    #sidebarToggle {
        display: none;
    }
    
    #sidebarOverlay {
        display: none !important;
    }
    
    #leftSidebar {
        position: relative;
        left: 0 !important;
    }
    
    #sidebarClose {
        display: none;
    }
}


