/* Popup styles */

.recharge-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.recharge-popup.active {
    display: block;
}

.recharge-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.recharge-popup-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.recharge-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.recharge-popup-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* API Key styling */
.api-key-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-key-masked, .api-key-full {
    font-family: monospace;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 0.9em;
}

.api-key-full {
    word-break: break-all;
}

.show-api-key, .copy-api-key {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 0.8em;
    cursor: pointer;
    transition: background 0.2s;
}

.show-api-key:hover, .copy-api-key:hover {
    background: #e0e0e0;
}

.copy-message {
    position: absolute;
    right: 0;
    top: -20px;
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 10;
}

.copy-message.success {
    background: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.copy-message.error {
    background: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* Existing popup styles */
#recharge-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.recharge-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.recharge-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.recharge-popup-close {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.loading {
    text-align: center;
    padding: 20px;
}

.error {
    color: red;
    text-align: center;
    padding: 20px;
}

/* API Key status styling */
.api-key-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 500;
}

.status-active {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.status-inactive, .status-suspended {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.status-pending {
    background-color: #fcf8e3;
    color: #8a6d3b;
    border: 1px solid #faebcc;
}

.status-unknown {
    background-color: #f5f5f5;
    color: #777;
    border: 1px solid #ddd;
}

/* Usage popup styles */
.usage-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.usage-popup.active {
    display: block;
}

.usage-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.usage-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.usage-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.usage-popup-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.usage-popup-close {
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.api-key-actions {
    display: flex;
    gap: 8px;
}

.usage-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.usage-table th, 
.usage-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.usage-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.usage-table tr:hover {
    background-color: #f9f9f9;
}

.loading, .error, .no-data {
    text-align: center;
    padding: 20px;
}

.error {
    color: #a94442;
}

.no-data {
    color: #777;
}

