﻿.adminContainer {
    display: flex;
}

.fm-sidebar-admin {
    width: 180px;
    background: #1b1b1b;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-right: 10px;
}

.btn-nav-admin {
    background-color: #1b1b1b;
    color: #d1d5db;
    border: none;
    width: 100%;
    justify-content: flex-start;
    transition: all 0.2s ease;
    padding: 10px 14px;
    border-radius: 8px;
}

    .btn-nav-admin:hover {
        background-color: rgba(255, 255, 255, 0.08);
        color: white;
    }

    .btn-nav-admin.active {
        background-color: #3b82f6;
        color: white;
    }

    .btn-nav-admin.danger.active {
        background-color: #ef4444;
        box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.5);
    }

    .btn-nav-admin.purple.active {
        background-color: #7c3aed;
        box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.5);
    }

    .btn-nav-admin.pink.active {
        background-color: #ec4899;
        box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.5);
    }

.admin-dark-card {
    display: flex;
    gap: 12px;
    border-radius: 5px;
    background: rgb(50, 49, 48);
    border: 0.5px solid #e6e6e6;
    width: 67.5vw;
    margin-left: 2%;
    padding: 10px;
    overflow: visible !important;
}

.admin-dark-card-block {
    display: block;
    overflow: visible !important;
}

.darkCardObject input::placeholder {
    color: rgba(255,255,255,1);
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    opacity: 1;
}

.section-title {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 600;
}

.table-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible !important;
    position: relative;
}

.roles-table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible !important;
    position: relative;
}

.budget-table {
    color: #f3f4f6;
}

    .budget-table,
    .budget-table thead,
    .budget-table tbody,
    .budget-table tr,
    .budget-table td,
    .budget-table th,
    .trDark,
    .trDark td {
        overflow: visible !important;
    }

        .budget-table th {
            color: #ffffff;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.4px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            vertical-align: middle;
        }

        .budget-table td {
            color: #e5e7eb;
            font-size: 14px;
            vertical-align: middle;
            border: none;
        }

            .budget-table td:first-child {
                color: #ffffff;
                font-weight: 600;
            }

.admin-table-header {
    background-color: #1e90ff !important;
    color: #ffffff !important;
}

th.admin-table-header {
    background-color: #1e90ff !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.trDark td {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    border: none !important;
}

.dropdown-trigger {
    background: #6f6f6f;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    border-radius: 6px;
    transition: all 0.2s ease;
}

    .dropdown-trigger:hover,
    .dropdown-trigger:focus {
        background: #7a7a7a;
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.9);
        box-shadow: none;
    }

.dropdown-dark {
    background: #1b1b1b !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

    .dropdown-dark.dropdown-menu {
        background: #1b1b1b !important;
        color: #ffffff !important;
    }

    .dropdown-dark .dropdown-item {
        color: #ffffff !important;
        background: transparent !important;
    }

        .dropdown-dark .dropdown-item:hover,
        .dropdown-dark .dropdown-item:focus {
            background: rgba(255,255,255,0.08) !important;
            color: #ffffff !important;
        }

    .dropdown-dark .border-bottom {
        border-color: rgba(255,255,255,0.1) !important;
    }

    .dropdown-dark span,
    .dropdown-dark small,
    .dropdown-dark strong {
        color: #ffffff !important;
    }

    .dropdown-dark input[type="checkbox"] {
        background-color: #2f2f2f;
        border: 1px solid rgba(255,255,255,0.4);
    }

.access-col {
    width: 360px;
    min-width: 360px;
    overflow: visible !important;
}

.role-access-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    position: relative;
    overflow: visible !important;
}

.role-access-dropdown {
    position: relative;
    overflow: visible !important;
}

.role-access-trigger {
    min-width: 150px;
    height: 32px;
    padding: 4px 12px;
    background: #2d2d2d;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.18);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
}

    .role-access-trigger:hover,
    .role-access-trigger:focus {
        background: #373737;
        color: #fff;
        border-color: rgba(255,255,255,0.28);
        box-shadow: none;
    }

.drop-down-overflow {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    bottom: auto !important;
    left: 0 !important;
    min-width: 300px;
    width: 300px;
    max-width: 300px;
    z-index: 9999 !important;
    background: #1f1f1f !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    padding: 10px;
    transform: none !important;
}

    .drop-down-overflow.open-up {
        top: auto !important;
        bottom: calc(100% + 6px) !important;
    }

.show-popup {
    display: block !important;
}

.hide-popup {
    display: none !important;
}

.dropdown-actions-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.role-access-items {
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
}

.role-access-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
    border-radius: 6px;
    padding: 6px 8px;
    background: transparent !important;
}

    .role-access-item:hover {
        background: rgba(255,255,255,0.08) !important;
    }

    .role-access-item span {
        color: #ffffff !important;
    }

    .role-access-item .form-check-input {
        margin-top: 0;
        flex: 0 0 auto;
    }

.role-access-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.add-role-access-actions {
    width: 100%;
}

.role-dropdown {
    width: 200px;
    min-width: 200px;
}

.role-dropdown-wide {
    width: 100%;
    min-width: 100%;
}

.role-dropdown .dropdown-trigger {
    width: 100%;
    min-width: 100%;
    height: 42px;
    min-height: 42px;
    padding: 8px 14px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #6f6f6f !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.7) !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: none !important;
}

    .role-dropdown .dropdown-trigger:hover,
    .role-dropdown .dropdown-trigger:focus,
    .role-dropdown .dropdown-trigger:active,
    .role-dropdown .dropdown-trigger.show {
        background: #7a7a7a !important;
        color: #ffffff !important;
        border-color: rgba(255,255,255,0.9) !important;
        box-shadow: none !important;
    }

    .role-dropdown .dropdown-trigger span,
    .role-dropdown .dropdown-trigger small,
    .role-dropdown .dropdown-trigger strong {
        color: #ffffff !important;
    }

.dropdown-toggle {
    border: white solid 1px;
    color: white;
}

.role-dropdown .dropdown-toggle::after {
    margin-left: 8px;
    color: #ffffff !important;
    border-top-color: #ffffff;
}

.role-secondary-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

    .role-secondary-btn:hover,
    .role-secondary-btn:focus,
    .role-secondary-btn:active {
        background: rgba(255, 255, 255, 0.12);
        color: #fff !important;
    }

.role-check-item {
    color: #fff !important;
    border-radius: 8px;
    padding: 8px 10px;
}

    .role-check-item:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .role-check-item span {
        color: #ffffff !important;
        font-size: 14px;
    }

.role-delete-btn {
    background-color: rgba(220, 53, 69, 0.18) !important;
    border: 1px solid rgba(220, 53, 69, 0.45) !important;
    color: #ff6b6b !important;
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 500;
    opacity: 1 !important;
}

    .role-delete-btn:hover,
    .role-delete-btn:focus,
    .role-delete-btn:active {
        background-color: rgba(220, 53, 69, 0.28) !important;
        color: #ffffff !important;
    }

.role-save-btn {
    min-width: 78px;
    height: 32px;
    padding: 4px 14px;
    border: 1px solid #ffffff !important;
    border-radius: 6px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .role-save-btn:hover,
    .role-save-btn:focus,
    .role-save-btn:active {
        background: #1f78eb !important;
        color: #ffffff !important;
        border-color: #1f78eb !important;
        box-shadow: none !important;
    }

    .role-save-btn:disabled {
        background: #2d8cff !important;
        color: #ffffff !important;
        border-color: #2d8cff !important;
        opacity: 0.65;
    }

.role-cancel-btn {
    min-width: 72px;
    height: 32px;
    background: transparent;
    color: #d6d6d6;
    border: 1px solid rgba(255,255,255,0.18);
}

    .role-cancel-btn:hover:not(:disabled) {
        background: rgba(255,255,255,0.06);
        color: #fff;
    }

.role-unsaved-pill {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.16);
    color: #ffd666;
    border: 1px solid rgba(255, 193, 7, 0.24);
    font-size: 0.8rem;
    font-weight: 600;
}

.action-btn-primary {
    background: linear-gradient(135deg, #3ac6f4, #1da1d2);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .action-btn-primary:hover {
        background: linear-gradient(135deg, #1da1d2, #158bb5);
        color: white;
    }

    .action-btn-primary:disabled {
        background: #555;
        color: #aaa;
        cursor: not-allowed;
    }

.action-btn-warning {
    background-color: #fcb913;
    border: none;
    color: white;
}

    .action-btn-warning:hover {
        background-color: #e0a50f;
    }

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 90px;
    height: 30px;
}

.status-active {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-inactive {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-warning {
    background-color: rgba(255, 193, 7, 0.16);
    border: 1px solid rgba(255, 193, 7, 0.35);
    color: #ffd666;
    padding: 0 12px;
}

.dark-input,
.dark-input:focus,
.form-select.dark-input,
.form-select.dark-input:focus {
    background-color: #6b6b6b !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: none !important;
    min-height: 42px;
}

    .form-select.dark-input option {
        background-color: #2f2f2f !important;
        color: #ffffff !important;
    }

.user-edit-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-edit-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.edit-user-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
}

.edit-user-subtitle {
    margin-top: 4px;
    color: #9ca3af;
    font-size: 13px;
}

.edit-user-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 16px;
}

.admin-dark-card .form-label {
    color: #dbe3ea !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.admin-dark-card .dark-input,
.admin-dark-card .dark-input:focus,
.admin-dark-card .form-control.dark-input {
    background-color: #6f6f6f !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.7) !important;
    min-height: 42px;
    height: 42px;
    box-shadow: none !important;
}

    .admin-dark-card .dark-input::placeholder {
        color: #d1d5db !important;
    }

@media (max-width: 900px) {
    .edit-user-grid {
        grid-template-columns: 1fr;
    }

    .user-edit-modal-footer {
        flex-direction: column;
    }

        .user-edit-modal-footer .btn {
            width: 100%;
        }

    .role-access-actions {
        flex-wrap: wrap;
    }

    .role-dropdown,
    .role-dropdown-wide {
        width: 100%;
        min-width: 100%;
    }
}
