/* Token section styles */
.tokens-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    max-width: 800px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.tokens-header {
    margin-bottom: 25px;
}
.tokens-info {
    display: flex;
    align-items: center;
}
.tokens-label {
    font-size: 18px;
    font-weight: 500;
    margin-right: 10px;
    color: #333;
}
.tokens-value {
    font-size: 28px;
    font-weight: 600;
    color: #0073aa;
}
.tokens-negative {
    color: #d63638;
}
.tokens-low {
    color: #f56e28;
}
.refresh-link {
    margin-left: 15px;
    text-decoration: none;
    color: #0073aa;
}
.refresh-link .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}
.tokens-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.recharge-section {
    margin-right: 20px;
}
#add-tokens {
    padding: 8px 20px;
    font-size: 14px;
}
.auto-recharge-section {
    display: flex;
    align-items: center;
}
.auto-recharge-status {
    display: flex;
    align-items: center;
}
.status-label {
    font-weight: 500;
    margin-right: 8px;
}
.status-value {
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}
.status-enabled {
    background-color: #edfaef;
    color: #00a32a;
}
.status-disabled {
    background-color: #f8f8f8;
    color: #72777c;
}
.payment-error {
    color: #d63638;
    margin-top: 10px;
}
.payment-loading {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}
.payment-loading:after {
    content: " ";
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #0073aa;
    border-color: #0073aa transparent #0073aa transparent;
    animation: payment-loading 1.2s linear infinite;
}
@keyframes payment-loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Plan cards styles */
.plans-section {
    margin: 25px 0;
}
.plan-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}
.plan-card {
    background: #1e2a36;
    border: 1px solid #2c3e50;
    border-radius: 6px;
    padding: 15px;
    width: 180px;
    color: #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-color: #3498db;
}
.plan-card.selected {
    border: 2px solid #f1c40f;
    background-color: #2c3e50;
}
.plan-header {
    margin-bottom: 15px;
}
.plan-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}
.plan-tokens {
    font-size: 14px;
    color: #bdc3c7;
}
.plan-price {
    font-size: 22px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 15px;
}
.select-plan {
    width: 100%;
    text-align: center;
    background-color: #3498db !important;
    border-color: #2980b9 !important;
    color: white !important;
    padding: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.select-plan .dashicons {
    margin-right: 5px;
}
.select-plan:hover {
    background-color: #2980b9 !important;
}

/* Auto-recharge styles */
.auto-recharge-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.auto-recharge-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.toggle-label {
    font-size: 16px;
    font-weight: 500;
    margin-right: 15px;
}
.auto-recharge-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
#auto-recharge-plan {
    flex: 1;
    min-width: 300px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 14px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.07);
}
#save-auto-recharge {
    background-color: #2271b1;
    color: white;
    border: none;
    padding: 8px 16px;
    height: 40px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}
#save-auto-recharge:hover {
    background-color: #135e96;
}
.cancel-link {
    color: #2271b1;
    text-decoration: none;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}
.cancel-link:hover {
    color: #135e96;
    text-decoration: underline;
}
.current-plan {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.plan-details {
    background: #f0f6fc;
    border: 1px solid #c5d9ed;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    color: #2271b1;
}
#change-plan {
    background-color: #f0f0f1;
    border: 1px solid #c3c4c7;
    color: #3c434a;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
}
#change-plan:hover {
    background-color: #e0e0e1;
}
.status-enabled {
    color: #00a32a;
    font-weight: 500;
}
.status-disabled {
    color: #cc1818;
    font-weight: 500;
}
.status-pending {
    color: #f0ad4e;
    font-style: italic;
    font-weight: 500;
}

/* Document list styles */
.documents-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.rag-documents-list table {
    margin-top: 10px;
}

.rag-regenerate-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    max-width: 800px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin {
    animation: spin 2s linear infinite;
    display: inline-block;
}

.rag-documents-list {
    position: relative;
}

.documents-header {
    position: absolute;
    top: 0;
    right: 0;
}

.rag-documents-list h2 {
    display: inline-block;
    margin-right: 15px;
}

/* Add some top margin to the table for better spacing when header is absolute positioned */
.rag-documents-list table {
    margin-top: 20px;
}

/* Standardize button styles */
.button-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button-with-icon .dashicons {
    margin-right: 5px;
}

/* Make text and icon align properly */
.rag-documents-list .button-with-icon,
.rag-regenerate-section .button-with-icon {
    line-height: 1.4;
}

.upload-guidelines {
    margin: 10px 0;
    padding: 10px 15px;
}

.upload-guidelines ul {
    margin: 5px 0 5px 20px;
    list-style-type: disc;
}

.upload-guidelines li {
    margin: 3px 0;
}

.upload-guidelines.inline {
    max-width: 400px;
}

/* Document status styles */
.status-complete {
    color: green;
    font-weight: bold;
}
.status-pending {
    color: orange;
    font-weight: bold;
}
.error-message {
    color: red;
    font-size: 0.9em;
} 