/* =========================================================
   main.css — Dashboard Ana Düzen & Bileşen Stilleri
   Değişkenler için theme.css dosyasına bakın.
   Yükleme sırası: theme.css → main.css → forms.css → profile.css
   ========================================================= */

/* =========================================================
   TEMEL — Gövde, Bağlantılar, Scrollbar
   ========================================================= */
body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

p {
    margin-bottom: 0;
}

a {
    text-decoration: none;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #2A3143;
    border-radius: 4px;
}

/* =========================================================
   ANA DÜZEN — Dashboard Konteyner
   ========================================================= */
.dashboard-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.main-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.content-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.main-content {
    flex: 1;
    background-color: var(--bg-panel);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-body {
    padding: 24px 40px 40px;
    overflow-y: auto;
    flex: 1;
}

/* =========================================================
   SOL KENAR ÇUBUĞU
   ========================================================= */
.sidebar-left {
    width: var(--sidebar-width);
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-left.offcanvas-lg {
    background-color: var(--bg-main) !important;
}

.brand {
    display: flex;
    align-items: center;
    padding: 0 24px;
    margin-bottom: 40px;
}

.logo-icon {
    font-size: 24px;
    color: var(--accent-blue);
    margin-right: 12px;
}

.brand-text h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.brand-text span {
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px;
}

.menu-section {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin: 20px 8px 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.menu-item i:first-child {
    font-size: 16px;
    width: 24px;
    margin-right: 10px;
}

.menu-item.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.menu-item:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.submenu-icon {
    font-size: 12px !important;
    width: auto !important;
    margin-right: 0 !important;
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
}

.system-status-active {
    background-color: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--brand-primary);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.status-dot-active {
    width: 6px;
    height: 6px;
    background-color: var(--brand-primary);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px var(--brand-primary);
}

.system-status-passive {
    background-color: rgba(185, 16, 61, 0.05);
    border: 1px solid rgba(185, 16, 55, 0.2);
    color: var(--brand-danger);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.status-dot-passive {
    width: 6px;
    height: 6px;
    background-color: var(--brand-danger);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px var(--brand-danger);
}

.version-info {
    font-size: 11px;
    color: var(--text-muted);
}

/* =========================================================
   ÜST NAVİGASYON ÇUBUĞU
   ========================================================= */
.top-navbar {
    height: 80px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0 16px;
    width: 320px;
    height: 42px;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
    margin-left: 10px;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box .search-icon {
    color: var(--text-secondary);
}

.shortcut {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4px 6px;
    border-radius: 4px;
}

.icon-link {
    color: var(--text-secondary);
    font-size: 18px;
    transition: color 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
}

.icon-link:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* =========================================================
   SAYFA BAŞLIĞI & FİLTRELER
   ========================================================= */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.right-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.date-text {
    font-size: 11px;
    color: var(--text-secondary);
}

.filters-area {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-select {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: 8px;
    outline: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:hover,
.filter-select:focus {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.search-project {
    position: relative;
}

.search-project input {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px 10px 40px;
    border-radius: 8px;
    outline: none;
    font-size: 13px;
    width: 300px;
    transition: border-color 0.2s ease;
}

.search-project i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.search-project input:focus {
    border-color: var(--brand-primary);
}

/* =========================================================
   BÖLÜM BAŞLIKLARI
   ========================================================= */
.section-container {
    display: flex;
    flex-direction: column;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin: 0;
}

.view-all {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s ease;
}

.view-all:hover {
    color: var(--text-primary);
}

.view-all i {
    font-size: 10px;
    margin-left: 4px;
}

/* =========================================================
   HERO BANNER
   ========================================================= */
.hero-banner {
    background: linear-gradient(105deg, #0F3F2D 0%, #11202E 50%, #151A24 100%);
    border-radius: 16px;
    display: flex;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-content {
    padding: 40px;
    z-index: 2;
    max-width: 60%;
}

.greeting {
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-primary);
    letter-spacing: 1px;
}

.hero-title {
    font-size: 38px;
    font-weight: 700;
    color: white;
    margin: 12px 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.hero-actions .btn {
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
}

.btn-primary-custom {
    background-color: var(--brand-primary);
    color: #fff;
    border: none;
}

.btn-primary-custom:hover {
    background-color: var(--brand-primary-hover);
    color: #fff;
}

.btn-outline-custom {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-outline-custom:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mask-image: linear-gradient(to right, transparent 0%, black 40%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
    opacity: 0.6;
}

/* =========================================================
   İSTATİSTİK KARTLARI
   ========================================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background-color: var(--bg-card-hover);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: var(--text-secondary);
    margin-right: 16px;
    margin-bottom: 10px;
}

.stat-icon.bg-green {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--brand-primary);
}

.stat-icon.bg-yellow {
    background-color: rgba(185, 157, 16, 0.1);
    color: var(--brand-warning);
}

.stat-icon.bg-blue {
    background-color: rgba(16, 146, 185, 0.1);
    color: var(--accent-blue);
}

.stat-icon.bg-purple {
    background-color: rgba(129, 16, 185, 0.1);
    color: var(--color-purple);
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.stat-value .trend.up {
    font-size: 11px;
    color: var(--brand-primary);
    margin-left: 8px;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.stat-progress {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    margin-top: 10px;
    border-radius: 2px;
}

.stat-progress .progress-bar {
    background-color: var(--accent-blue) !important;
}

.stat-block {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 30vh;
}

.arrow-icon {
    position: absolute;
    right: 20px;
    color: var(--text-muted);
    font-size: 12px;
}

/* =========================================================
   HIZLI ERİŞİM KARTLARI
   ========================================================= */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.access-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.access-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
    background-color: var(--bg-card-hover);
}

.drafting-icon {
    font-size: 28px;
    color: #4A5568;
    margin-bottom: 20px;
    display: block;
}

.access-card h5 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.access-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    padding-right: 20px;
}

.icon-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    color: var(--text-muted);
    font-size: 14px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
}

.access-card:hover .icon-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--text-primary);
}

/* =========================================================
   SON PROJELER
   ========================================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 290px;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-img-wrapper {
    height: 140px;
    background-color: rgba(255, 255, 255, 0.02);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-img {
    font-size: 60px;
}

.placeholder-img.c-1 {
    color: #8C93A1;
}

.placeholder-img.c-2 {
    color: #4A5568;
}

.placeholder-img.c-3 {
    color: #2A3143;
}

.badge {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-passive {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--brand-warning);
}

.badge-active {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--brand-primary);
}

.badge-design {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.badge-test {
    background-color: rgba(139, 92, 246, 0.15);
    color: #8B5CF6;
}

.more-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
}

.project-info {
    padding: 20px;
}

.project-info h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.project-info p {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.progress-wrap .progress {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.progress-wrap .percent {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.add-new-project {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.add-new-project:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.02);
    transform: none;
}

.add-new-content {
    text-align: center;
}

.add-new-content button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: none;
    margin-bottom: 12px;
    transition: background-color 0.2s ease;
}

.add-new-project:hover button {
    background-color: rgba(255, 255, 255, 0.1);
}

.add-new-content span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
}

/* =========================================================
   SAĞ KENAR ÇUBUĞU
   ========================================================= */
.sidebar-right {
    width: var(--right-sidebar-width);
    background-color: var(--bg-main);
    border-left: 1px solid var(--border-color);
    padding: 24px;
    flex-shrink: 0;
    overflow-y: auto;
}

/* =========================================================
   DETAYLI PROJE KARTI (projects.html)
   ========================================================= */
.detailed-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 30px;
}

.detailed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.detailed-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detailed-card:hover::before {
    opacity: 1;
}

.p-card-header {
    padding: 24px 24px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.p-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.p-card-icon.blue {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.p-card-icon.purple {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.p-card-icon.orange {
    background-color: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.p-card-icon.red {
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.icon-small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.icon-small:hover {
    background-color: var(--brand-primary);
    color: white;
    transform: scale(1.05);
}

.p-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--brand-primary);
    letter-spacing: 0.5px;
}

.p-badge.paused {
    background-color: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.p-card-actions {
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.p-card-actions:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.p-card-body {
    padding: 0 24px 24px;
    flex-grow: 1;
}

.p-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.p-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* Standart uyumluluk için eklendi */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.p-date {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.p-team {
    display: flex;
    align-items: center;
}

.p-team-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    margin-left: -10px;
    object-fit: cover;
}

.p-team-avatar:first-child {
    margin-left: 0;
}

.p-team-extra {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -10px;
    border: 2px solid var(--bg-card);
}

.p-card-footer {
    padding: 20px 24px;
    background-color: rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border-color);
    /*display: flex;*/
    /*justify-content: space-between;*/
    /*align-items: center;*/
}

.p-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.p-progress {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.p-progress-bar {
    height: 100%;
    background-color: var(--brand-primary);
    border-radius: 3px;
}

.p-progress-bar.blue {
    background-color: var(--accent-blue);
}

.p-progress-bar.purple {
    background-color: #8B5CF6;
}

.p-progress-bar.orange {
    background-color: #F59E0B;
}

/* =========================================================
   ZAMAN ÇİZELGESİ
   ========================================================= */
.timeline {
    position: relative;
    padding-left: 10px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 44px;
    top: 5px;
    bottom: 0;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    display: flex;
    margin-bottom: 24px;
    position: relative;
}

.timeline-item .time {
    font-size: 11px;
    color: var(--text-muted);
    width: 34px;
    flex-shrink: 0;
    margin-top: 2px;
}

.timeline-item .event {
    margin-left: 20px;
    padding-left: 16px;
    position: relative;
}

.timeline-item .event::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--text-muted);
    border: 2px solid var(--bg-main);
    z-index: 1;
}

.timeline-item:hover .event::before {
    background-color: var(--brand-primary);
    box-shadow: 0 0 6px var(--brand-primary);
}

.timeline-item .event h6 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-item .event p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* =========================================================
   BİLDİRİMLER
   ========================================================= */
.notif-item {
    display: flex;
    margin-bottom: 20px;
}

.notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 14px;
}

.notif-icon.bg-green {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.notif-icon.bg-blue {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}

.notif-icon.bg-orange {
    background-color: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.notif-content h6 {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.notif-content p {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
    line-height: 1.4;
}

.notif-content .time {
    font-size: 10px;
    color: #4A5568;
}

/* =========================================================
   HIZLI EYLEMLER
   ========================================================= */
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.action-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-btn:hover {
    background-color: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

.action-btn i {
    font-size: 20px;
    margin-bottom: 8px;
}

.action-btn span {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

/* =========================================================
   KULLANICI PROFİL DROPDOWN
   ========================================================= */
.custom-dropdown-menu {
    position: absolute;
    top: 130%;
    right: 0;
    width: 220px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.custom-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    top: 110%;
}

.custom-dropdown-menu .dropdown-header {
    padding: 12px 20px;
}

.custom-dropdown-menu .dropdown-header h6 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.custom-dropdown-menu .dropdown-header span {
    font-size: 11px;
    color: var(--text-muted);
}

.custom-dropdown-menu .dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

.custom-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.custom-dropdown-menu .dropdown-item i {
    width: 20px;
    margin-right: 10px;
    font-size: 14px;
}

.custom-dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.custom-dropdown-menu .dropdown-item.text-danger:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.custom-dropdown-menu .dropdown-item.warning:hover {
    background-color: rgba(239, 205, 68, 0.1);
    color: #EF9144;
}

.custom-dropdown-menu .dropdown-item.success:hover {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #10B981 !important;
}

.user-chevron.rotate {
    transform: rotate(180deg);
}

/* =========================================================
   KART MENÜ DROPDOWN
   ========================================================= */
.card-dropdown {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    padding: 8px 0;
}

.card-dropdown .dropdown-item {
    color: var(--text-secondary) !important;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.card-dropdown .dropdown-item i {
    color: var(--text-muted);
}

.card-dropdown .dropdown-item:hover {
    background-color: rgba(128, 128, 128, 0.15) !important;
    color: var(--text-primary) !important;
}

.card-dropdown .dropdown-item:hover i {
    color: var(--text-primary);
}

.card-dropdown .dropdown-item.text-danger:hover {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #EF4444 !important;
}

.card-dropdown .dropdown-item.text-warning:hover {
    background-color: rgba(239, 205, 68, 0.1) !important;
    color: #EF9144 !important;
}

.card-dropdown .dropdown-item.text-success:hover {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #10B981 !important;
}

.card-dropdown .dropdown-item.text-danger:hover i {
    color: #EF4444 !important;
}

.card-dropdown .dropdown-item.text-warning:hover i {
    color: #EF9144 !important;
}

.card-dropdown .dropdown-item.text-success:hover i {
    color: #10B981 !important;
}

.card-dropdown .dropdown-divider {
    border-color: var(--border-color) !important;
}

/* =========================================================
   MOBİL MENÜ BUTONU
   ========================================================= */
.menu-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.menu-toggle-btn:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* =========================================================
   FİKİR & ARAŞTIRMA KARTLARI (IDEAS)
   ========================================================= */

.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.idea-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.idea-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.idea-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.idea-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.idea-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
    color: var(--brand-primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.idea-icon.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.idea-icon.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.05));
    color: #8B5CF6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.idea-status {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.idea-status i {
    font-size: 10px;
}

.idea-status.research {
    color: #F59E0B;
    border-color: rgba(245, 158, 11, 0.3);
    background-color: rgba(245, 158, 11, 0.05);
}

.idea-status.patent {
    color: #8B5CF6;
    border-color: rgba(139, 92, 246, 0.3);
    background-color: rgba(139, 92, 246, 0.05);
}

.idea-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.idea-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.idea-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.idea-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.idea-tag:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.idea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.idea-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.idea-author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.idea-author span {
    font-size: 12px;
    color: var(--text-secondary);
}

.idea-actions {
    display: flex;
    gap: 10px;
}


/* =========================================================
   STAT MINI KARTLAR
   ========================================================= */

.stat-mini-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-mini-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-mini-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--brand-primary);
}

.stat-mini-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.stat-mini-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.stat-mini-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.stat-mini-info span {
    font-size: 12px;
    color: var(--text-muted);
}


@media (max-width: 1400px) {
    .stats-grid,
    .quick-access-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   RESPONSIVE — Orta Ekran (< 992px)
   ========================================================= */
@media (max-width: 991.98px) {
    .sidebar-left.offcanvas-lg {
        --bs-offcanvas-width: 100vw;
    }

    .top-navbar {
        padding: 0 20px;
        height: 70px;
        position: relative;
    }

    .search-box {
        width: auto;
        background: transparent;
        border: none;
        padding: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .search-box input,
    .search-box .shortcut {
        display: none;
    }

    .search-box .search-icon {
        font-size: 20px;
        cursor: pointer;
    }

    .search-box.expanded {
        position: absolute;
        left: 70px;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        height: 48px;
        background-color: var(--bg-card);
        border: 1px solid var(--brand-primary);
        border-radius: 12px;
        padding: 0 16px;
        z-index: 50;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5),
        0 0 0 4px rgba(16, 185, 129, 0.1);
    }

    .search-box.expanded input {
        display: block;
        width: 100%;
        margin-left: 10px;
    }

    .search-box.expanded .search-icon {
        font-size: 16px;
        color: var(--brand-primary);
    }

    .content-wrapper {
        flex-direction: column;
        overflow-y: auto;
    }

    .main-content {
        overflow: visible;
        flex: none;
    }

    .content-body {
        padding: 24px 20px;
        overflow-y: visible;
    }

    .sidebar-right {
        width: 100%;
        display: block;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding: 30px 20px;
        overflow-y: visible;
    }
}

/* =========================================================
   RESPONSIVE — Küçük Ekran (< 768px)
   ========================================================= */
@media (max-width: 767.98px) {
    .stats-grid,
    .quick-access-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-banner {
        flex-direction: column;
    }

    .hero-content {
        max-width: 100%;
        padding: 24px;
    }

    .hero-image {
        position: relative;
        width: 100%;
        height: 150px;
    }

    .hero-photo {
        mask-image: linear-gradient(to bottom, transparent 0%, black 40%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 40%);
    }
}


