/* ===============================
   KURUCU PANELİ
================================ */

.founder-panel-nav{
    display:flex;
    align-items:center;
    justify-content:center;

    height:40px;
    padding:0 18px;

    margin-right:12px;

    background:#f0c419;
    color:#111;

    border:none;
    border-radius:8px;

    font-size:15px;
    font-weight:700;
    font-family:inherit;

    cursor:pointer;

    transition:.25s;
}

.founder-panel-nav:hover{
    background:#ffd84d;
    transform:translateY(-1px);
}

.founder-panel-nav:active{
    transform:translateY(0);
}

.founder-panel-overlay {
    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(10px);

    opacity: 0;
    visibility: hidden;

    transition: .25s;
    z-index: 1000000;
}

.founder-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.founder-panel-popup {
    position: relative;

    width: 850px;
    max-width: 100%;
    max-height: calc(100svh - 40px);

    overflow-y: auto;

    padding: 35px;

    background: #151515;
    border: 1px solid #343434;
    border-top: 4px solid #f0c419;
    border-radius: 22px;

    box-shadow: 0 25px 80px rgba(0, 0, 0, .7);
}

.founder-panel-close {
    position: absolute;
    top: 15px;
    right: 15px;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: #252525;
    color: white;

    font-size: 18px;
    cursor: pointer;
}

.founder-panel-close:hover {
    background: #f0c419;
    color: black;
}

.founder-panel-header {
    margin-bottom: 28px;
    text-align: center;
}

.founder-panel-header span {
    color: #f0c419;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.founder-panel-header h2 {
    margin: 8px 0 10px;
    font-size: 34px;
}

.founder-panel-header p {
    color: #aaa;
    line-height: 1.6;
}

.founder-search-area {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;

    margin-bottom: 25px;
}

.founder-search-area input {
    width: 100%;
    height: 52px;

    padding: 0 16px;

    background: #242424;
    border: 1px solid #444;
    border-radius: 11px;

    color: white;
    font-size: 16px;
    outline: none;
}

.founder-search-area input:focus {
    border-color: #f0c419;
}

.founder-search-area button {
    min-width: 170px;
    height: 52px;

    padding: 0 20px;

    border: none;
    border-radius: 11px;

    background: #f0c419;
    color: #111;

    font-size: 15px;
    font-weight: 800;

    cursor: pointer;
}

.founder-search-area button:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.founder-search-result {
    padding-top: 25px;
    border-top: 1px solid #333;
}

.founder-result-header {
    display: flex;
    align-items: center;
    gap: 22px;

    margin-bottom: 25px;
}

.founder-avatar-box {
    width: 120px;
    min-width: 120px;
    height: 140px;

    display: flex;
    justify-content: center;
    align-items: flex-end;

    overflow: hidden;

    background: #0f0f0f;
    border: 1px solid #343434;
    border-radius: 16px;
}

.founder-avatar-box img {
    max-width: none;
    height: 135px;
    object-fit: contain;
}

.founder-result-label {
    color: #f0c419;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.founder-result-header h3 {
    margin: 7px 0 8px;
    font-size: 30px;
    overflow-wrap: anywhere;
}

.founder-result-header p {
    color: #aaa;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.founder-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.founder-result-card {
    min-width: 0;

    padding: 16px;

    background: #202020;
    border: 1px solid #383838;
    border-radius: 12px;
}

.founder-result-card span {
    display: block;

    margin-bottom: 7px;

    color: #909090;
    font-size: 13px;
}

.founder-result-card strong {
    display: block;

    color: white;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {

    .founder-panel-overlay {
        padding: 12px;
    }

    .founder-panel-popup {
        padding: 28px 17px 22px;
        border-radius: 17px;
    }

    .founder-panel-header h2 {
        font-size: 27px;
    }

    .founder-search-area {
        grid-template-columns: 1fr;
    }

    .founder-search-area button {
        width: 100%;
    }

    .founder-result-header {
        flex-direction: column;
        text-align: center;
    }

    .founder-result-grid {
        grid-template-columns: 1fr;
    }
}

.founder-department-section {
    margin-top: 24px;
    padding-top: 24px;

    border-top: 1px solid #333;
}

.founder-department-section h3 {
    margin-bottom: 8px;

    color: #f0c419;
    font-size: 20px;
}

.founder-department-section p {
    margin-bottom: 15px;

    color: #999;
    line-height: 1.5;
}

.founder-department-section select {
    width: 100%;
    height: 52px;

    margin-bottom: 13px;
    padding: 0 15px;

    background: #242424;
    border: 1px solid #444;
    border-radius: 11px;

    color: white;
    font-size: 15px;

    outline: none;
    cursor: pointer;
}

.founder-department-section select:focus {
    border-color: #f0c419;
}

.founder-department-section button {
    width: 100%;
    min-height: 52px;

    padding: 13px 16px;

    border: none;
    border-radius: 11px;

    background: #f0c419;
    color: #111;

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;
}

.founder-department-section button:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* =========================================
   KURUCU PANELİ - GENEL KAYDETME BUTONU
========================================= */

.founder-save-all-section {
    grid-column: 1 / -1;

    margin-top: 26px;
    padding-top: 24px;

    border-top: 1px solid #363636;
}

.founder-save-all-btn {
    width: 100%;
    min-height: 58px;

    padding: 16px 22px;

    color: #111;
    font-size: 16px;
    font-weight: 800;

    background:
        linear-gradient(
            90deg,
            #e5b900,
            #ffd84e
        );

    border: none;
    border-radius: 12px;

    cursor: pointer;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}

.founder-save-all-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 24px
        rgba(244, 199, 20, .22);
}

.founder-save-all-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

/* =========================================
   KURUCU PANELİ - TABLO LOG TASARIMI
========================================= */

.founder-log-section {
    grid-column: 1 / -1;
    width: 100%;
}

.founder-log-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 22px;
}

.founder-log-header h3 {
    margin: 0 0 8px;
}

.founder-log-header p {
    margin: 0;
}

.founder-log-refresh-btn {
    width: auto !important;
    min-width: 125px;
    margin: 0 !important;
    padding: 13px 20px !important;
}

.founder-logs-table-wrapper {
    width: 100%;

    overflow-x: auto;

    border: 1px solid #363636;
    border-radius: 14px;
}

.founder-logs-table {
    width: 100%;
    min-width: 980px;

    border-collapse: collapse;

    background: #191919;
}

.founder-logs-table th {
    padding: 17px 16px;

    color: #d5d5d5;
    font-size: 12px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .5px;

    background: #1e1e1e;
    border-bottom: 1px solid #383838;
}

.founder-logs-table td {
    padding: 17px 16px;

    color: #ededed;
    font-size: 14px;
    vertical-align: middle;

    border-bottom: 1px solid #303030;
}

.founder-logs-table tbody tr:last-child td {
    border-bottom: none;
}

.founder-logs-table tbody tr {
    transition: background .2s ease;
}

.founder-logs-table tbody tr:hover {
    background: #222;
}

.founder-log-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-weight: 700;
    white-space: nowrap;
}

.founder-log-icon {
    font-size: 16px;
}

.action-role_update {
    color: #d085ff;
}

.action-rank_update {
    color: #58aaff;
}

.action-badge_update {
    color: #ffd21f;
}

.action-department_update {
    color: #47d7c8;
}

.action-single_promotion,
.action-bulk_promotion {
    color: #ff9d45;
}

.founder-log-username {
    font-weight: 700;
}

.founder-log-arrow {
    width: 35px;

    color: #aaa !important;
    font-size: 19px !important;
    text-align: center !important;
}

.founder-log-new-value {
    color: #45d56b !important;
    font-weight: 700;
}

.founder-log-date {
    color: #b9b9b9 !important;
    white-space: nowrap;
}

.founder-logs-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-top: 20px;
}

#founderLogsTotal {
    color: #bbb;
    white-space: nowrap;
}

.founder-log-page-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

#founderLogsPageNumbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.founder-log-page-controls button,
#founderLogsPageNumbers button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    margin: 0 !important;
    padding: 0 !important;

    color: #ddd;

    background: #222;
    border: 1px solid #3b3b3b;
    border-radius: 9px;

    cursor: pointer;
}

#founderLogsPageNumbers button.active {
    color: #111;

    background: #f6c915;
    border-color: #f6c915;
}

.founder-log-page-controls button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.founder-log-page-dots {
    padding: 0 5px;

    color: #999;
}

#founderLogsPageSize {
    width: auto;
    min-width: 125px;
    margin: 0;

    padding: 11px 14px;
}

.founder-log-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    margin-top: 22px;
    padding: 17px;

    background: #1c1c1c;
    border: 1px solid #363636;
    border-radius: 12px;
}

.founder-log-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    color: #f6c915;
    font-weight: 900;

    border: 2px solid #f6c915;
    border-radius: 50%;
}

.founder-log-info strong {
    color: #f6c915;
}

.founder-log-info p {
    margin: 5px 0 0;

    color: #aaa;
}

@media (max-width: 750px) {

    .founder-log-header {
        flex-direction: column;
    }

    .founder-log-refresh-btn {
        width: 100% !important;
    }

    .founder-logs-pagination {
        flex-direction: column;
    }

    #founderLogsPageSize {
        width: 100%;
    }

}

.founder-log-section {
    transition:
        opacity .2s ease,
        transform .2s ease;
}

/* =========================================
   KURUCU PANELİ - KULLANICI ÖNERİLERİ
========================================= */

.founder-search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

.founder-search-input-wrapper input {
    width: 100%;
}

.founder-username-suggestions {
    position: absolute;
    z-index: 50;

    top: calc(100% + 7px);
    left: 0;
    right: 0;

    max-height: 310px;
    overflow-y: auto;

    padding: 7px;

    background: #181818;
    border: 1px solid #444;
    border-radius: 12px;

    box-shadow:
        0 16px 35px
        rgba(0, 0, 0, .55);
}

.founder-username-suggestion-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;

    width: 100%;
    margin: 0;
    padding: 12px 14px;

    color: #eee;
    text-align: left;

    background: transparent;
    border: none;
    border-radius: 9px;

    cursor: pointer;
}

.founder-username-suggestion-item:hover {
    background: #292929;
}

.founder-username-suggestion-item strong {
    color: #f6c915;
    font-size: 14px;
}

.founder-username-suggestion-item span {
    color: #999;
    font-size: 12px;
}

.founder-username-suggestion-empty {
    padding: 14px;

    color: #999;
    text-align: center;
}

/* =========================================
   KURUCU PANELİ - GELİŞMİŞ KULLANICI ARAMA
========================================= */

.founder-search-area {
    position: relative;
    align-items: stretch;
}

.founder-search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

.founder-search-input-wrapper input {
    width: 100%;
    height: 100%;
}

.founder-username-suggestions {
    position: absolute;
    z-index: 9999;

    top: calc(100% + 8px);
    left: 0;
    right: 0;

    display: none;

    max-height: 340px;
    padding: 8px;

    overflow-y: auto;

    background: #161616;
    border: 1px solid #3d3d3d;
    border-radius: 13px;

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, .72);
}

/* Genel button stillerini sıfırlar */
.founder-username-suggestions
.founder-username-suggestion-item {
    display: grid !important;
    grid-template-columns:
        48px minmax(0, 1fr) auto;
    align-items: center !important;
    gap: 12px !important;

    width: 100% !important;
    min-height: 66px !important;

    margin: 0 !important;
    padding: 9px 12px !important;

    color: #f1f1f1 !important;
    text-align: left !important;

    background: transparent !important;
    background-image: none !important;

    border: 1px solid transparent !important;
    border-radius: 10px !important;

    box-shadow: none !important;

    cursor: pointer;
    transform: none !important;

    transition:
        background .16s ease,
        border-color .16s ease;
}

.founder-username-suggestions
.founder-username-suggestion-item:hover,
.founder-username-suggestions
.founder-username-suggestion-item.active {
    background: #262626 !important;
    border-color: rgba(246, 201, 21, .45) !important;
    transform: none !important;
}

.founder-suggestion-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    overflow: hidden;

    background: #292929;
    border: 1px solid #444;
    border-radius: 10px;
}

.founder-suggestion-avatar img {
    display: block;

    width: 46px;
    height: 56px;

    object-fit: contain;
    object-position: center bottom;

    image-rendering: auto;
}

.founder-suggestion-content {
    display: flex;
    flex-direction: column;
    gap: 6px;

    min-width: 0;
}

.founder-suggestion-name {
    display: block;

    color: #f6c915;
    font-size: 14px;
    font-weight: 800;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.founder-suggestion-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;

    color: #999;
    font-size: 11px;
    font-weight: 500;
}

.suggestion-dot {
    color: #555;
}

.founder-suggestion-open {
    color: #777;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;

    transition: color .16s ease;
}

.founder-username-suggestion-item:hover
.founder-suggestion-open,
.founder-username-suggestion-item.active
.founder-suggestion-open {
    color: #f6c915;
}

.founder-username-suggestion-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 70px;
    padding: 14px;

    color: #aaa;
    text-align: left;
}

.founder-username-suggestion-empty div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.founder-username-suggestion-empty strong {
    color: #ddd;
    font-size: 13px;
}

.founder-username-suggestion-empty span {
    color: #888;
    font-size: 11px;
}

.suggestion-empty-icon {
    font-size: 22px !important;
}

/* Scrollbar */
.founder-username-suggestions::-webkit-scrollbar {
    width: 7px;
}

.founder-username-suggestions::-webkit-scrollbar-track {
    background: transparent;
}

.founder-username-suggestions::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 20px;
}

.founder-username-suggestions::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

@media (max-width: 600px) {

    .founder-username-suggestions
    .founder-username-suggestion-item {
        grid-template-columns:
            42px minmax(0, 1fr) !important;

        min-height: 60px !important;
    }

    .founder-suggestion-avatar {
        width: 42px;
        height: 42px;
    }

    .founder-suggestion-avatar img {
        width: 40px;
        height: 50px;
    }

    .founder-suggestion-open {
        display: none;
    }

}

/* ===============================
   ÇOKLU ROL CHECKBOX TASARIMI
================================ */

.founder-role-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.founder-role-checkboxes label {
    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 46px;
    padding: 10px 12px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.04);

    color: #f1f1f1;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.founder-role-checkboxes label:hover {
    border-color: rgba(255, 204, 0, 0.65);
    background: rgba(255, 204, 0, 0.08);
    transform: translateY(-1px);
}

.founder-role-checkboxes input[type="checkbox"] {
    width: 18px;
    height: 18px;

    flex-shrink: 0;

    accent-color: #ffcc00;
    cursor: pointer;
}

.founder-role-checkboxes label:has(
    input[type="checkbox"]:checked
) {
    border-color: #ffcc00;
    background: rgba(255, 204, 0, 0.12);

    color: #ffdd55;

    box-shadow:
        0 0 0 1px rgba(255, 204, 0, 0.08),
        0 6px 18px rgba(0, 0, 0, 0.2);
}

.founder-role-checkboxes label:has(
    input[type="checkbox"]:disabled
) {
    opacity: 0.5;
    cursor: not-allowed;
}

.founder-role-checkboxes label:has(
    input[type="checkbox"]:disabled
):hover {
    transform: none;
}

@media (max-width: 650px) {

    .founder-role-checkboxes {
        grid-template-columns: 1fr;
    }

}