:root {
    --ihub-primary: #1a365d;
    --ihub-primary-dark: #122846;
    --ihub-secondary: #10b981;
    --ihub-dark: #0f172a;
    --ihub-light: #f8fafc;
    --ihub-gray: #64748b;
    --ihub-border: #e2e8f0;
    --ihub-radius: 12px;
    --ihub-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
    max-width: 100%;
}

html,
body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin: 0 !important;
}

/* WordPress sayfa düzenini bozmadan sadece bizim içerik alanımızı tam ekran yapıyoruz */
#wpbody-content:has(.ihub-body-wrap) {
    padding: 0 !important;
    margin: 0 !important;
}

#wpbody-content {
    overflow: hidden;
    /* Dış taşmayı engelleyen temel kural */
}

@media screen and (max-width: 991px) {
    #wpbody-content {
        overflow: visible !important;
        /* Mobil görünümde kaydırmayı serbest bırakır */
    }
}

body.ihub-body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
}

.ihub-body-wrap {
    display: flex;
    flex-direction: column;
    height: 100vh !important;
    width: 100%;
    position: relative;
    overflow: hidden !important;
    background: var(--ihub-light);
}

/* Adjust for WordPress Admin Bar */
body.admin-bar .ihub-body-wrap {
    height: calc(100vh - 32px) !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .ihub-body-wrap {
        height: calc(100vh - 46px) !important;
    }
}

/* PORTAL CSS */
.ihub-portal-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Pading'i içeriğe taşıdık */
    flex: 1;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

.ihub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    background: white;
    border-bottom: 1px solid var(--ihub-border);
    flex-shrink: 0;
    z-index: 1000;
    min-height: 90px;
    /* Slogan kaldırıldığı için biraz daraltıldı */
}

.ihub-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media screen and (max-width: 768px) {
    .ihub-header {
        padding: 10px 15px;
        min-height: 70px;
    }

    .ihub-header .ihub-logo-wrap img {
        height: 50px !important;
    }

    .ihub-header-actions {
        gap: 6px;
    }

    .ihub-header-actions>div:first-child {
        display: none;
        /* Hide user info text on mobile */
    }

    .ihub-btn-outline {
        padding: 6px !important;
        font-size: 11px !important;
    }
}

.ihub-view-scroll-content {
    flex: 1;
    overflow-y: auto !important;
    padding: 10px 25px 120px 25px;
    /* Alt boşluk, sabitlenen footer'ın (80px + margin) üzerine çıkması için 120px yapıldı */
    scrollbar-width: thin;
    scrollbar-color: var(--ihub-border) transparent;
    display: flex;
    flex-direction: column;
}

.ihub-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ihub-welcome-greeting {
    margin-bottom: 2px;
    animation: fadeInDown 0.6s ease-out;
}

.ihub-welcome-greeting h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--ihub-dark);
    margin: 0;
    letter-spacing: -0.5px;
}

@media screen and (max-width: 768px) {
    .ihub-welcome-greeting h2 {
        font-size: 20px;
    }

    .ihub-welcome-greeting p {
        font-size: 13px;
    }

    .ihub-view-scroll-content {
        padding: 10px 15px 120px 15px;
    }
}

.ihub-welcome-greeting p {
    color: var(--ihub-gray);
    font-size: 14px;
    margin-top: 4px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ihub-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ihub-logo img {
    height: 32px;
}

.ihub-logo h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(to right, var(--ihub-primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ihub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ihub-card {
    background: white;
    border-radius: var(--ihub-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--ihub-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.ihub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Windows App Shortcut Style Grid */
.ihub-app-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 10px 0 20px 0;
}

.ihub-app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.3s;
    width: 135px;
    cursor: pointer;
    position: relative;
}

@media screen and (max-width: 768px) {
    .ihub-app-grid {
        gap: 15px;
        justify-content: center;
    }

    .ihub-app-item {
        width: 100px;
    }

    .ihub-app-name {
        font-size: 12px;
    }
}

.ihub-app-icon-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 135px;
    /* Increased from 115px */
    background: white;
    border-radius: 28px;
    /* More rounded for larger size */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--ihub-border);
    margin-bottom: 12px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.ihub-app-item:hover .ihub-app-icon-wrap {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 40px -15px rgba(26, 54, 93, 0.25);
    border-color: var(--ihub-primary);
}

.ihub-app-icon-wrap img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.ihub-app-img-projehub {
    transform: scale(1.35);
    /* Increased for balance */
}

.ihub-app-img-maliyethub {
    transform: scale(1.05);
    /* Slight increase for parity */
}

.ihub-app-item:hover .ihub-app-icon-wrap img {
    transform: scale(1.1) !important;
}

.ihub-app-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--ihub-dark);
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: -0.2px;
}

.ihub-app-item:hover .ihub-app-name {
    color: var(--ihub-primary);
    transform: translateY(-2px);
}

/* Status: Grayscale for locked/inactive */
.ihub-app-item.locked .ihub-app-icon-wrap {
    filter: grayscale(1);
    opacity: 0.7;
    background: #f8fafc;
}

.ihub-app-item.locked:hover .ihub-app-icon-wrap {
    filter: grayscale(0.6);
    opacity: 0.9;
}

.ihub-app-item.locked .ihub-app-name {
    opacity: 0.6;
}

.ihub-app-sub-btn {
    margin-top: 10px;
    background: var(--ihub-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(26, 54, 93, 0.3);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(10px);
}

.ihub-app-item.locked:hover .ihub-app-sub-btn {
    opacity: 1;
    transform: translateY(0);
}

.ihub-app-sub-btn:hover {
    background: var(--ihub-secondary);
    transform: scale(1.05) !important;
}

/* Coming Soon Megaphone Badge */
.ihub-app-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f59e0b;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.4);
    z-index: 5;
    animation: ihub-pulse 2s infinite;
}

@keyframes ihub-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.ihub-card.locked {
    filter: grayscale(1);
    opacity: 0.8;
}

.ihub-card.locked::after {
    content: "🔒 Kilitli";
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fee2e2;
    color: #ef4444;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.platform-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.platform-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

.platform-card h2 {
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

.platform-card p {
    font-size: 14px;
    color: var(--ihub-gray);
    line-height: 1.5;
}

.platform-logo-wrap {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-card:hover .platform-logo-wrap {
    transform: scale(1.05);
}

.ihub-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--ihub-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--ihub-primary);
}

.ihub-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--ihub-dark);
}

.ihub-card p {
    color: var(--ihub-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.ihub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
    border: none;
}

.ihub-btn-primary {
    background: var(--ihub-primary) !important;
    color: white !important;
}

.ihub-btn-primary:hover {
    background: var(--ihub-primary-dark) !important;
}

.ihub-btn-outline {
    background: transparent;
    border: 1.5px solid var(--ihub-border);
    /* Slightly thicker border */
    color: var(--ihub-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px !important;
    min-width: 36px;
    min-height: 36px;
}

.ihub-btn-outline i,
.ihub-btn-outline svg {
    width: 18px !important;
    /* Increased icon size */
    height: 18px !important;
}

.ihub-btn-outline:hover {
    background: var(--ihub-light);
    border-color: var(--ihub-primary);
    color: var(--ihub-primary);
}

/* LOGIN CSS */
.ihub-login-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: transparent;
    position: relative;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    z-index: 1;
}

.ihub-login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    width: 100%;
    max-width: 440px;
    padding: 45px 40px;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 10;
}

@media screen and (max-width: 480px) {
    .ihub-login-card {
        padding: 25px 20px;
        max-width: 92%;
        border-radius: 16px;
    }
}

.ihub-tabs {
    display: flex;
    margin-bottom: 30px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 12px;
}

.ihub-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ihub-gray);
    transition: 0.2s;
}

.ihub-tab.active {
    background: white;
    color: var(--ihub-primary);
    box-shadow: 0 2px 4px rgb(0 0 0 / 0.05);
}

.ihub-form-group {
    margin-bottom: 12px;
}

.ihub-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ihub-dark);
}

.ihub-form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--ihub-border);
    transition: 0.2s;
    outline: none;
}

.ihub-form-group input:focus {
    border-color: var(--ihub-primary);
    box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.1);
}

/* SysAdmin Vertical Tabs Layout */
.sa-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

.sa-sidebar {
    background: white;
    border: 1px solid var(--ihub-border);
    border-radius: var(--ihub-radius);
    padding: 1.5rem 1rem;
    position: sticky;
    top: 2rem;
    box-shadow: var(--shadow);
}

.sa-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sa-nav-header {
    font-size: 11px;
    font-weight: 800;
    color: var(--ihub-gray);
    padding: 20px 15px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.sa-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--ihub-gray);
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 2px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.sa-nav-item i {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.sa-nav-item:hover {
    background: #f1f5f9;
    color: var(--ihub-primary);
}

.sa-nav-item.active {
    background: var(--ihub-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
}

.sa-nav-item.active i {
    opacity: 1;
}

.sa-content {
    min-height: 500px;
    overflow: visible !important;
}

.sa-tab-content {
    width: 100%;
}

.sa-mobile-selector {
    display: none;
    width: 100%;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .sa-layout {
        grid-template-columns: 1fr;
    }

    .sa-sidebar {
        display: none;
    }

    .sa-mobile-selector {
        display: block;
    }
}

.ihub-sub-tab.active {
    background: white !important;
    color: var(--ihub-primary) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}



/* Base Modal Overlay */
.ihub-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.8) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(8px) !important;
    padding: 20px !important;
}

/* Base Modal Content */
.ihub-modal-content {
    background: white !important;
    width: 100% !important;
    max-width: 550px;
    max-height: 90vh !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    position: relative !important;
    animation: ihubModalAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media screen and (max-width: 768px) {
    .ihub-modal {
        padding: 10px !important;
    }

    .ihub-modal-content {
        max-height: 96vh !important;
        border-radius: 16px !important;
    }
}

.ihub-modal-header {
    padding: 20px 25px !important;
    border-bottom: 1px solid var(--ihub-border) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.ihub-modal-header h3 {
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
}

.ihub-modal-close {
    background: #f1f5f9 !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    color: var(--ihub-gray) !important;
    font-size: 20px !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.ihub-modal-close:hover {
    background: #e2e8f0 !important;
    color: var(--ihub-dark) !important;
    transform: rotate(90deg) !important;
}

.ihub-modal-body {
    padding: 25px !important;
    overflow-y: auto !important;
    flex: 1 !important;
    max-height: 70vh !important;
}

.ihub-modal-footer {
    padding: 20px 25px !important;
    border-top: 1px solid var(--ihub-border) !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    background: #f8fafc !important;
    flex-shrink: 0 !important;
}

@keyframes ihubModalAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.projects-table-container {
    background: white;
    border-radius: var(--ihub-radius);
    border: 1px solid var(--ihub-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.projects-table th {
    background: #f8fafc;
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--ihub-gray);
    border-bottom: 1px solid var(--ihub-border);
}

.stats-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Legacy & Integrated Apps Support */
.sa-legacy-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 0;
    /* Remove internal padding for full view */
    border: 1px solid var(--ihub-border);
    overflow: visible !important;
    /* Allow scroll */
}

#pdm-app-container,
#mhub-app-container {
    width: 100%;
    min-height: 600px;
    height: auto !important;
    background: #fff;
    border-radius: 12px;
    overflow: visible !important;
    /* Force parent scroll */
}

#pdm-app-container .sidebar,
#mhub-app-container .sidebar {
    display: flex !important;
    /* Restore the sidebars */
}

#pdm-app-container .main-content,
#mhub-app-container .main-content {
    flex: 1;
    min-width: 0;
}

#pdm-app-container .wp-core-ui,
#pdm-app-container #wpwrap {
    display: flex !important;
    flex-direction: row !important;
}

.mhub-loading {
    padding: 100px;
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
}

/* Fix for WordPress generic 'wrap' and 'card' in frontend */
.sa-legacy-container .wrap {
    margin: 0;
}

.sa-legacy-container .card {
    max-width: none;
    margin: 10px 0;
}

.sa-mhub-subtab.active {
    background: white !important;
    border-color: var(--ihub-primary) !important;
    color: var(--ihub-primary) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mhub-sub-view.hidden {
    display: none;
}

/* Settings Modal Styles */
.ihub-settings-tab {
    padding: 12px 20px;
    margin: 0 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--ihub-gray);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.ihub-settings-tab i {
    width: 18px;
    height: 18px;
}

.ihub-settings-tab:hover {
    background: #f1f5f9;
    color: var(--ihub-primary);
}

.ihub-settings-tab.active {
    background: white;
    color: var(--ihub-primary);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    font-weight: 700;
}

.ihub-settings-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.ihub-settings-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ihub-avatar-item {
    transition: all 0.2s;
}

.ihub-avatar-item:hover {
    transform: scale(1.1);
}

.ihub-avatar-item.active {
    box-shadow: 0 0 0 3px var(--ihub-primary);
}

.ihub-star-rating span {
    transition: color 0.2s, transform 0.2s;
}

.ihub-star-rating span:hover {
    transform: scale(1.3);
}

/* Dark Theme Support (Base) */
body.dark-theme {
    --light: #0f172a;
    --dark: #f8fafc;
    --border: #1e293b;
}

body.dark-theme .ihub-modal-content {
    background: #1e293b;
    color: #f8fafc;
}

body.dark-theme .ihub-settings-panes {
    background: #1e293b !important;
}

body.dark-theme .ihub-settings-tab.active {
    background: #334155;
    color: white;
}

body.dark-theme .ihub-form-group label {
    color: #94a3b8;
}

body.dark-theme .ihub-form-group input,
body.dark-theme .ihub-form-group textarea {
    background: #0f172a;
    border-color: #334155;
    color: white;
}

body.dark-theme .ihub-modal-header {
    border-bottom-color: #334155;
}

body.dark-theme #ihub-avatar-grid {
    background: #0f172a !important;
}

/* Visibility Utilities (Moved to bottom to ensure override) */
.hidden,
[hidden],
.ihub-modal.hidden {
    display: none !important;
}

/* DASHBOARD WIDGETS */
.ihub-widget-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
    align-items: stretch;
    flex: 0 1 auto;
    max-height: 52vh;
    min-height: 350px;
    overflow: hidden;
}

@media (max-width: 1400px) {
    .ihub-widget-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 1100px) {
    .ihub-widget-grid {
        grid-template-columns: 1fr 1fr;
        max-height: none;
        overflow: visible;
    }

    .slider-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .ihub-widget-grid {
        grid-template-columns: 1fr;
    }

    .slider-card {
        grid-column: span 1;
    }
}

.ihub-widget-card {
    background: white;
    border-radius: var(--ihub-radius);
    padding: 15px;
    box-shadow: var(--shadow);
    border-left: none;
    /* Yan renk şeritleri kaldırıldı */
    border: 1px solid var(--ihub-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ihub-widget-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* PROMO SLIDER */
.slider-card {
    border-left: none !important;
    padding: 0 !important;
}

.ihub-promo-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.ihub-promo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}

.ihub-promo-slide.is-video {
    transform: none !important;
    transition: opacity 1s ease !important;
}

.ihub-promo-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.ihub-promo-slide.is-video.active {
    transform: none !important;
}

.ihub-promo-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 8s linear;
}

.ihub-promo-slide.active .ihub-promo-image {
    transform: scale(1.1) translateX(10px);
}

@media screen and (max-width: 768px) {
    .ihub-promo-slide {
        padding: 20px;
    }

    .ihub-promo-logo {
        max-width: 240px;
        max-height: 80px;
        margin-bottom: 0px;
    }

    .ihub-promo-content h3 {
        font-size: 18px;
    }

    .ihub-promo-content p {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .ihub-promo-btn {
        padding: 6px 16px;
        font-size: 11px;
    }
}

.ihub-promo-slide.is-video .ihub-promo-image,
.ihub-promo-slide.is-video.active .ihub-promo-image {
    transform: none !important;
    transition: none !important;
}

.ihub-promo-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.ihub-promo-content {
    position: relative;
    z-index: 2;
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
}

.ihub-promo-slide.active .ihub-promo-content {
    transform: translateY(0);
    opacity: 1;
}

.ihub-promo-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 320px;
    max-height: 120px;
    margin-bottom: -25px;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
    animation: fadeInDown 0.8s ease-out both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ihub-promo-content h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ihub-promo-content p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.5;
}

.ihub-promo-btn {
    display: inline-flex;
    align-items: center;
    background: white;
    color: black;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ihub-promo-btn:hover {
    background: var(--ihub-primary);
    color: white;
    transform: translateX(5px);
}

.ihub-slider-dots {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.ihub-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ihub-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.ihub-widget-card.secondary {
    border-left: none;
    /* Yan renk şeritleri kaldırıldı (secondary) */
    border-color: var(--ihub-border);
}

.ihub-widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.ihub-widget-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ihub-dark);
    margin: 0;
}

.ihub-widget-header i {
    width: 22px;
    height: 22px;
}

.ihub-notification-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    padding-right: 10px;
    /* More space for scrollbar */
    flex: 1;
}

.ihub-notification-item {
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid var(--ihub-border);
    transition: all 0.2s ease;
}

.ihub-notification-item:hover {
    border-color: var(--ihub-primary);
    background: #fff;
    transform: translateX(5px);
}

.ihub-notification-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--ihub-dark);
    margin-bottom: 5px;
}

.ihub-notification-content {
    font-size: 13px;
    color: var(--ihub-gray);
    line-height: 1.5;
}

.ihub-notification-date {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 8px;
    display: block;
}

.ihub-stats-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.ihub-stats-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--ihub-border);
}

.ihub-stats-platform-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ihub-stats-platform-name {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.ihub-stats-plan-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ihub-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

@media screen and (max-width: 480px) {
    .ihub-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ihub-stats-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Compact Stats Overrides */
.ihub-stats-box.is-compact {
    padding: 4px 10px;
    margin-bottom: 0px;
    border-radius: 10px;
}

.ihub-stats-box.is-compact .ihub-stats-platform-header {
    margin-bottom: 2px;
}

.ihub-stats-box.is-compact .ihub-stats-grid {
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.ihub-stats-box.is-compact .ihub-stats-item {
    flex: 1;
    border-right: 1px solid rgba(0, 0, 0, 0.03);
    padding: 2px 0;
}

.ihub-stats-box.is-compact .ihub-stats-item:last-child {
    border-right: none;
}

.ihub-stats-value {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--ihub-dark);
}

.ihub-stats-value.has-limit {
    font-size: 13px;
}

.ihub-stats-limit {
    font-size: 10px;
    color: var(--ihub-gray);
    font-weight: 500;
    margin-left: 1px;
    opacity: 0.8;
}

.ihub-stats-label {
    display: block;
    font-size: 9px;
    color: var(--ihub-gray);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-top: 1px;
}

.ihub-stats-box.is-compact .ihub-stats-value {
    font-size: 14px;
}

/* Custom Scrollbar */
.ihub-notification-list::-webkit-scrollbar,
.ihub-stats-container::-webkit-scrollbar {
    width: 6px;
}

.ihub-notification-list::-webkit-scrollbar-track,
.ihub-stats-container::-webkit-scrollbar-track {
    background: transparent;
}

.ihub-notification-list::-webkit-scrollbar-thumb,
.ihub-stats-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.ihub-notification-list::-webkit-scrollbar-thumb:hover,
.ihub-stats-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* FOOTER CSS */
.ihub-main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--ihub-border);
    border-radius: 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

@media screen and (max-width: 782px) {
    .ihub-main-footer {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        border-radius: 0;
        height: 60px;
        margin: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }

    .ihub-footer-logo {
        height: 24px;
    }

    .ihub-footer-content p {
        font-size: 9px;
    }
}

.ihub-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.ihub-footer-content p {
    color: var(--ihub-gray);
    font-size: 11px;
    font-weight: 500;
    margin: 0;
}

.ihub-footer-logo {
    height: 32px;
    /* Increased logo size */
    width: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.ihub-footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Squeeze the portal content area */
.ihub-widget-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
    align-items: stretch;
    flex: 0 1 auto;
    max-height: 52vh;
    min-height: 350px;
}

@media screen and (max-width: 768px) {
    .ihub-widget-grid {
        display: flex !important;
        flex-direction: column !important;
        max-height: none !important;
        height: auto !important;
        flex: none !important;
        gap: 15px !important;
        margin-bottom: 30px !important;
    }

    .ihub-widget-card {
        min-height: 180px !important;
        height: auto !important;
    }

    .slider-card {
        height: 250px !important;
        min-height: 250px !important;
    }

    .ihub-platforms-section {
        margin-top: 20px !important;
        padding-top: 10px;
        border-top: 1px dashed var(--ihub-border);
    }
}

@media screen and (max-width: 768px) {
    .ihub-modal {
        padding: 0 !important;
    }

    .ihub-modal-content {
        max-height: 100vh !important;
        height: 100vh !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #ihub-profile-body-wrap {
        flex-direction: column !important;
    }

    #ihub-profile-sidebar {
        width: 100% !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        padding: 5px !important;
        border-right: none !important;
        border-bottom: 1px solid var(--ihub-border) !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .ihub-settings-tab {
        padding: 10px 15px !important;
        margin: 0 5px !important;
        font-size: 13px !important;
    }

    #ihub-settings-panes {
        padding: 20px 15px !important;
    }

    #ihub-tab-profile form>div {
        grid-template-columns: 1fr !important;
    }

    #ihub-tab-profile form>div>div {
        grid-column: span 1 !important;
    }

    .ihub-modal-grid-mobile {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .projects-table th,
    .projects-table td {
        padding: 10px !important;
        font-size: 12px !important;
    }

    /* Hide specific columns on tiny screens to prevent overflow */
    .projects-table th:nth-child(4),
    .projects-table td:nth-child(4),
    .projects-table th:nth-child(5),
    .projects-table td:nth-child(5),
    .projects-table th:nth-child(6),
    .projects-table td:nth-child(6) {
        display: none;
    }
}

/* BIMHUB BCF Management Styles */
.ihub-status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    display: inline-block;
}

.status-open {
    background: #dbeafe;
    color: #1e40af;
}

.status-resolved {
    background: #dcfce7;
    color: #166534;
}

.status-closed {
    background: #f1f5f9;
    color: #475569;
}

.status-completed {
    background: #fef3c7;
    color: #92400e;
}

/* Kanban Link Button */
.kanban-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2563eb;
    color: white !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none !important;
    margin-top: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    border: none;
    cursor: pointer;
}

.kanban-link-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.kanban-link-btn i {
    width: 14px;
    height: 14px;
}