/* Manage Keys Page Styles */

/* ===== CREATE KEYS PAGE TAB STYLING ===== */

/* Tab Navigation Styling */
#keysTabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 8px 8px 0 0;
    padding: 15px 25px;
    font-weight: 600;
    color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
    position: relative;
    margin-right: 5px;
}

#keysTabs .nav-link:hover {
    color: #495057;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-bottom-color: #adb5bd;
    transform: translateY(-1px);
}

#keysTabs .nav-link.active,
#keysTabs .nav-link[aria-selected='true'] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

#keysTabs .nav-link.active i,
#keysTabs .nav-link[aria-selected='true'] i {
    color: rgba(255, 255, 255, 0.9) !important;
}

#keysTabs .nav-link.active .badge,
#keysTabs .nav-link[aria-selected='true'] .badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* Tab Content Styling */
#keysTabContent {
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 15px 15px;
    background: white;
}

/* Table Styling to match Account Management */
#manageKeysTable {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    min-width: 800px;
    border: 1px solid #dee2e6;
}

#manageKeysTable thead th {
    background: #f8f9fa;
    color: #495057;
    border: none;
    padding: 15px;
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

/* Center the Update column header */
#manageKeysTable thead th:last-child {
    text-align: center;
}

/* Checkbox column alignment */
#manageKeysTable thead th:first-child,
#manageKeysTable tbody td:first-child {
    text-align: center;
    vertical-align: middle;
    padding: 8px;
}

#manageKeysTable thead th:first-child input[type="checkbox"],
#manageKeysTable tbody td:first-child input[type="checkbox"] {
    margin: 0;
    vertical-align: middle;
    cursor: pointer;
}

#manageKeysTable thead th.sortable-column {
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
}

/* Ensure row separation with visible borders */
#manageKeysTable tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef !important;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #495057;
}

/* Key ID column (first column) - compact display with copy button */
#manageKeysTable tbody td:first-child {
    white-space: nowrap;
    overflow: visible;
    min-width: 200px;
    max-width: 250px;
}

#manageKeysTable tbody tr:hover {
    background-color: #f8f9fa;
}

/* Table responsive wrapper styling */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Update button styling - circular purple button */
#manageKeysTable .btn-add-account.update-key-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

#manageKeysTable .btn-add-account.update-key-btn i {
    font-size: 16px;
    margin: 0;
}

/* Ensure Update button cell is centered */
#manageKeysTable tbody td:last-child {
    text-align: center;
}

/* Created Keys Table Styling (for Create Keys page) */
#createdKeysTable {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    min-width: 800px;
    border: 1px solid #dee2e6;
}

#createdKeysTable thead th {
    background: #f8f9fa;
    color: #495057;
    border: none;
    padding: 15px;
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

#createdKeysTable thead th.sortable-column {
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
}

/* Ensure row separation with visible borders */
#createdKeysTable tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef !important;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #495057;
}

#createdKeysTable tbody tr:hover {
    background-color: #f8f9fa;
}










