

.bot-api-dropdown-container {
    width: 100%;
    background: rgba(15, 20, 25, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    overflow: visible;
    transition: all 0.3s ease;
}

.bot-api-dropdown-container:hover {
    background: rgba(25, 22, 28, 0.7);
    border-color: rgba(212, 175, 55, 0.3);
}

.bot-api-dropdown-container .connect-bot-btn {
    border: none !important;
    width: 100%;
    background: transparent !important;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #e8d5e8;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.bot-api-dropdown-container .connect-bot-btn:hover {
    background: rgba(75, 45, 85, 0.3) !important;
}

.bot-api-dropdown-container.active .connect-bot-btn {
    border-radius: 6px 6px 0 0 !important;
}

.connect-bot-btn::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #d4af37;
    transition: transform 0.3s ease;
}

.bot-api-dropdown-container.active .connect-bot-btn::after {
    transform: translateY(-50%) rotate(180deg);
}

.bot-icon {
    font-size: 16px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px currentColor);
}

.bot-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    text-align: left;
}

.bot-name {
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.3px;
    color: #e8d5e8;
}

.bot-description {
    font-size: 10px;
    opacity: 0.8;
    font-style: italic;
    color: #ccc;
}

.bot-api-dropdown-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease, 
                padding 0.3s ease;
    padding: 0 15px;
    background: rgba(15, 20, 25, 0.4);
    border-radius: 0 0 6px 6px;
}

.bot-api-dropdown-container.active .bot-api-dropdown-content {
    max-height: 800px;
    opacity: 1;
    padding: 18px 15px;
    overflow: visible;
}

.bot-api-info {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.06));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.bot-api-info p {
    margin: 0 0 6px 0;
    color: #e8d5e8;
    font-size: 11px;
    line-height: 1.5;
}

.bot-api-info p:last-child {
    margin-bottom: 0;
}

.key-count {
    font-weight: 700;
    color: #d4af37 !important;
    font-size: 12px;
}

.bot-docs-body::-webkit-scrollbar {
    width: 12px;
}

.bot-docs-body::-webkit-scrollbar-track {
    background: rgba(15, 20, 25, 0.6);
    border-radius: 10px;
    border-left: 1px solid rgba(212, 175, 55, 0.15);
}

.bot-docs-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        rgba(212, 175, 55, 0.4) 0%, 
        rgba(212, 175, 55, 0.25) 50%,
        rgba(212, 175, 55, 0.4) 100%
    );
    border-radius: 10px;
    border: 2px solid rgba(15, 20, 25, 0.4);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.bot-docs-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        rgba(212, 175, 55, 0.6) 0%, 
        rgba(212, 175, 55, 0.45) 50%,
        rgba(212, 175, 55, 0.6) 100%
    );
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.bot-docs-body::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, 
        rgba(212, 175, 55, 0.7) 0%, 
        rgba(212, 175, 55, 0.55) 50%,
        rgba(212, 175, 55, 0.7) 100%
    );
}

.bot-docs-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.4) rgba(15, 20, 25, 0.6);
}

.no-keys-message {
    text-align: center;
    padding: 30px 15px;
    color: #888;
}

.no-keys-message p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #aaa;
}

.no-keys-message .subtext {
    font-size: 11px;
    color: #777;
    font-style: italic;
}

.keys-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.key-item {
    background: linear-gradient(135deg, rgba(75, 45, 85, 0.25), rgba(75, 45, 85, 0.15));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.25s ease;
}

.key-item:hover {
    background: linear-gradient(135deg, rgba(75, 45, 85, 0.35), rgba(75, 45, 85, 0.25));
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.key-item.revoked {
    opacity: 0.5;
    filter: grayscale(0.5);
}

.key-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.key-name {
    font-size: 12px;
    font-weight: 700;
    color: #e8d5e8;
    letter-spacing: 0.3px;
}

.key-status {
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.4);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

.status-unused {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
    border: 1px solid rgba(255, 152, 0, 0.4);
}

.status-revoked {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.4);
}

.key-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 10px;
}

.key-detail {
    display: flex;
    flex-direction: column;
}

.detail-label {
    color: #888;
    font-size: 9px;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: #e8d5e8;
    font-weight: 600;
    font-size: 11px;
}

.revoke-key-btn {
    width: 100%;
    padding: 8px;
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid rgba(244, 67, 54, 0.35);
    border-radius: 6px;
    color: #f44336;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.revoke-key-btn:hover {
    background: rgba(244, 67, 54, 0.25);
    border-color: #f44336;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.generate-key-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    color: #d4af37;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.generate-key-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(212, 175, 55, 0.25));
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.generate-key-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.revoked-keys-section {
    margin-top: 8px;
    padding-top: 12px;
    margin-bottom: 16px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    width: 100%;
}

.revoked-keys-toggle {
    width: 100%;
    padding: 10px 12px;
    background: rgba(75, 45, 85, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    color: #888;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.revoked-keys-toggle:hover {
    background: rgba(75, 45, 85, 0.25);
    border-color: rgba(212, 175, 55, 0.3);
    color: #aaa;
}

.toggle-icon {
    font-size: 10px;
    transition: transform 0.2s ease;
    color: #d4af37;
}

.revoked-keys-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.key-item.revoked {
    opacity: 0.6;
    filter: grayscale(0.3);
}

.key-item.revoked:hover {
    opacity: 0.8;
}

.bot-api-footer {
    text-align: center;
    padding-top: 0;
    padding-bottom: 4px;
    margin-top: 0;
    margin-bottom: -15px;
    border-top: none;
}

.docs-link {
    color: #d4af37;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 8px 12px;
}

.docs-link:hover {
    color: #f4d76b;
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.bot-generate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
}

.bot-key-success-modal,
.bot-docs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bot-generate-modal.active,
.bot-key-success-modal.active,
.bot-docs-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.bot-generate-content {
    background: linear-gradient(135deg, #1a2332 0%, #0f1419 100%);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.bot-generate-content h3 {
    margin: 0 0 12px 0;
    color: #d4af37;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.bot-generate-content p {
    margin: 0 0 18px 0;
    color: #999;
    font-size: 13px;
    line-height: 1.5;
}

.key-name-input {
    width: 100%;
    padding: 14px;
    background: rgba(15, 20, 25, 0.9);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #e8d5e8;
    font-size: 14px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.key-name-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.generate-buttons {
    display: flex;
    gap: 12px;
}

.generate-buttons .cancel-btn,
.generate-buttons .generate-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.generate-buttons .cancel-btn {
    background: rgba(75, 45, 85, 0.4);
    border: 2px solid rgba(212, 175, 55, 0.25);
    color: #e8d5e8;
}

.generate-buttons .cancel-btn:hover {
    background: rgba(75, 45, 85, 0.6);
    border-color: rgba(212, 175, 55, 0.4);
}

.generate-buttons .generate-btn {
    background: rgba(212, 175, 55, 0.3);
    border: 2px solid rgba(212, 175, 55, 0.5);
    color: #d4af37;
}

.generate-buttons .generate-btn:hover {
    background: rgba(212, 175, 55, 0.4);
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.security-warning-inline {
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid rgba(255, 152, 0, 0.4);
    border-radius: 6px;
    padding: 12px 16px !important;
    margin: 12px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 14px !important;  
    color: #FF9800 !important;
    line-height: 1.6 !important;
    font-weight: 700 !important;  
}

.security-warning-inline .warning-icon {
    font-size: 20px !important;  
    flex-shrink: 0;
}

.security-warning-inline .warning-text {
    flex: 1;
    font-size: 14px !important;  
}

.bot-key-success-content {
    background: linear-gradient(135deg, #1a2332 0%, #0f1419 100%);
    border: 2px solid rgba(76, 175, 80, 0.6);
    border-radius: 16px;
    padding: 35px;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.bot-key-success-content h3 {
    margin: 0 0 20px 0;
    color: #4CAF50;
    font-size: 22px;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.warning-box {
    background: rgba(255, 152, 0, 0.25);
    border: 2px solid rgba(255, 152, 0, 0.6);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 24px;
    color: #FF9800;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credential-box {
    background: rgba(15, 20, 25, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 18px;
}

.credential-box label {
    display: block;
    color: #999;
    font-size: 11px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.credential-value {
    display: flex;
    gap: 10px;
    align-items: center;
}

.credential-value code {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    padding: 12px;
    color: #d4af37;
    font-size: 11px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    padding: 10px 14px;
    background: rgba(212, 175, 55, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    color: #d4af37;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 700;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(212, 175, 55, 0.35);
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.integration-info {
    background: rgba(75, 45, 85, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
}

.integration-info p {
    margin: 0 0 10px 0;
    color: #e8d5e8;
    font-size: 13px;
    line-height: 1.5;
}

.integration-info p:last-child {
    margin-bottom: 0;
}

.done-btn {
    width: 100%;
    padding: 14px;
    background: rgba(76, 175, 80, 0.3);
    border: 2px solid rgba(76, 175, 80, 0.6);
    border-radius: 10px;
    color: #4CAF50;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.done-btn:hover {
    background: rgba(76, 175, 80, 0.4);
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.bot-docs-content {
    background: linear-gradient(135deg, #1a2332 0%, #0f1419 100%);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 16px;
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.bot-docs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.03));
}

.bot-docs-header h3 {
    margin: 0;
    color: #d4af37;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.close-btn {
    background: rgba(244, 67, 54, 0.25);
    border: 1px solid rgba(244, 67, 54, 0.4);
    border-radius: 6px;
    color: #f44336;
    font-size: 16px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(244, 67, 54, 0.4);
    border-color: #f44336;
    transform: scale(1.1);
}

.bot-docs-body {
    padding: 24px;
    overflow-y: auto;
}

.bot-docs-body h4 {
    color: #d4af37;
    font-size: 15px;
    margin: 20px 0 10px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bot-docs-body p {
    color: #e8d5e8;
    font-size: 13px;
    margin: 10px 0;
    line-height: 1.6;
}

.bot-docs-body pre {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 14px;
    overflow-x: auto;
    margin: 12px 0;
}

.bot-docs-body code {
    color: #4CAF50;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.5;
}

.bot-docs-body ul {
    margin: 12px 0;
    padding-left: 24px;
}

.bot-docs-body li {
    color: #e8d5e8;
    font-size: 13px;
    margin: 6px 0;
    line-height: 1.5;
}

.bot-docs-body .install-note {
    margin-top: 8px;
    color: #999;
    font-size: 11px;
}

.rate-limits-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px auto;
}

.rate-limits-table thead tr {
    background: rgba(212, 175, 55, 0.1);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.rate-limits-table th {
    padding: 10px;
    text-align: center;
    color: #d4af37;
    font-size: 12px;
    font-weight: 700;
}

.rate-limits-table tbody tr {
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.rate-limits-table tbody tr:last-child {
    border-bottom: none;
}

.rate-limits-table td {
    padding: 10px;
    text-align: center;
    color: #e8d5e8;
    font-size: 12px;
}

.security-warning-box {
    background: rgba(255, 152, 0, 0.15);
    border: 2px solid rgba(255, 152, 0, 0.4);
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.security-warning-box h4 {
    color: #FF9800;
    margin: 0 0 10px 0;
    font-size: 14px;
}

.security-warning-box p {
    margin: 0 0 10px 0;
    color: #e8d5e8;
    font-size: 12px;
}

.security-warning-box ul {
    margin: 0;
    padding-left: 20px;
    color: #e8d5e8;
    font-size: 12px;
    line-height: 1.6;
}

.security-warning-box ul li {
    margin: 4px 0;
}

.loading-message,
.error-message {
    text-align: center;
    padding: 30px;
    color: #888;
    font-size: 13px;
}

.error-message {
    color: #f44336;
    font-weight: 600;
}

@container (max-width: 219px) {
    .bot-api-dropdown-container .connect-bot-btn {
        padding: 10px 8px;
        gap: 6px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .bot-icon {
        font-size: 16px;
        align-self: center !important;
        margin: 0;
    }
    
    .bot-details {
        gap: 3px;
        align-items: center;
        width: 100%;
    }
    
    .bot-name {
        font-size: 10px !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.3 !important;
        overflow-wrap: break-word !important;
        text-align: center !important;
        width: 100%;
    }
    
    .bot-description {
        display: none !important;  
    }
    
    .connect-bot-btn::after {
        right: 8px;
        font-size: 8px;
        top: 10px;
    }
    
    .bot-api-dropdown-content {
        padding: 0 8px;
    }
    
    .bot-api-dropdown-container.active .bot-api-dropdown-content {
        padding: 15px 8px;
    }
    
    .bot-api-info {
        display: none !important;
    }
    
    .key-item {
        padding: 10px 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    
    .key-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 0;
        width: 100%;
        gap: 6px;
    }
    
    .key-name {
        font-size: 11px;
        font-weight: 700;
        color: #e8d5e8;
        text-align: center;
        width: 100%;
        word-break: break-word;
        line-height: 1.3;
    }
    
    .key-status {
        font-size: 9px;
        padding: 3px 8px;
        margin: 0;
        display: inline-block;
        border-radius: 10px;
        white-space: nowrap;
    }
    
    .key-details {
        display: none !important;
    }
    
    .revoke-key-btn {
        display: none !important;
    }
    
    .keys-list {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .generate-key-btn {
        display: none !important;
    }
    
    .bot-api-footer {
        display: none !important;
    }
    
    .revoked-keys-section {
        display: none !important;
    }
    
    .no-keys-message {
        padding: 20px 10px;
    }
    
    .no-keys-message p {
        font-size: 11px;
    }
    
    .no-keys-message .subtext {
        font-size: 9px;
    }
}

@container (max-width: 180px) {
    .bot-api-dropdown-container .connect-bot-btn {
        padding: 8px 6px;
    }
    
    .bot-icon {
        font-size: 14px;
    }
    
    .bot-name {
        font-size: 9px !important;
    }
    
    .bot-description {
        font-size: 8px;
    }
    
    .key-item {
        padding: 8px 4px;
        gap: 6px;
    }
    
    .key-name {
        font-size: 10px;
    }
    
    .key-status {
        font-size: 8px;
        padding: 2px 6px;
    }
    
    .no-keys-message {
        padding: 15px 8px;
    }
    
    .no-keys-message p {
        font-size: 10px;
    }
    
    .no-keys-message .subtext {
        font-size: 8px;
    }
}

@container (min-width: 400px) {
    .bot-api-info {
        padding: 14px 16px;
        margin-bottom: 18px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .bot-api-info p {
        font-size: 12px;
        line-height: 1.6;
        margin: 0 0 8px 0;
    }
    
    .bot-api-info p:last-child {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(212, 175, 55, 0.15);
    }
    
    .key-count {
        font-size: 13px;
        letter-spacing: 0.5px;
    }
    
    .key-item {
        background: linear-gradient(135deg, rgba(75, 45, 85, 0.3), rgba(75, 45, 85, 0.2));
        border-color: rgba(212, 175, 55, 0.3);
        border-radius: 10px;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .key-item:hover {
        background: linear-gradient(135deg, rgba(75, 45, 85, 0.4), rgba(75, 45, 85, 0.3));
        border-color: rgba(212, 175, 55, 0.5);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }
    
    .key-header {
        margin-bottom: 14px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    }
    
    .key-name {
        font-size: 14px;
        letter-spacing: 0.5px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    .key-status {
        font-size: 10px;
        padding: 4px 10px;
        border-radius: 12px;
        letter-spacing: 0.8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }
    
    .key-details {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-bottom: 14px;
        justify-items: center;
    }
    
    .key-detail {
        gap: 4px;
        text-align: center;
        align-items: center;
    }
    
    .detail-label {
        font-size: 9px;
        letter-spacing: 0.8px;
        font-weight: 600;
    }
    
    .detail-value {
        font-size: 12px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    .revoke-key-btn {
        padding: 10px;
        border-radius: 8px;
        font-size: 11px;
        letter-spacing: 1px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }
    
    .revoke-key-btn:hover {
        box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
    }
    
    .generate-key-btn {
        padding: 14px;
        font-size: 13px;
        letter-spacing: 1.2px;
    }
    
    .bot-api-footer {
        padding-top: 8px;
        padding-bottom: 6px;
        margin-bottom: -12px;
    }
    
    .docs-link {
        font-size: 12px;
        padding: 10px 16px;
    }
    
    .no-keys-message {
        padding: 40px 20px;
        background: rgba(15, 20, 25, 0.4);
        border: 1px dashed rgba(212, 175, 55, 0.2);
        border-radius: 8px;
    }
    
    .no-keys-message p {
        font-size: 14px;
        margin-bottom: 10px;
        font-weight: 600;
    }
    
    .no-keys-message .subtext {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .keys-list {
        gap: 14px;
        margin-bottom: 18px;
    }
    
    .revoked-keys-section {
        width: 100%;
        margin-top: 12px;
        padding-top: 16px;
    }
    
    .revoked-keys-toggle {
        padding: 12px 16px;
        font-size: 12px;
    }
    
    .key-item.revoked {
        padding: 12px 16px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }
    
    .key-item.revoked .key-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        flex-shrink: 0;
    }
    
    .key-item.revoked .key-name {
        font-size: 13px;
        margin: 0;
        white-space: nowrap;
    }
    
    .key-item.revoked .key-status {
        margin: 0;
        flex-shrink: 0;
    }
    
    .key-item.revoked .key-details {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .key-item.revoked .key-detail {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        margin: 0;
    }
    
    .key-item.revoked .detail-label {
        font-size: 10px;
        margin: 0;
    }
    
    .key-item.revoked .detail-value {
        font-size: 11px;
        margin: 0;
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    15% {
        opacity: 1;
        transform: translateY(0);
    }
    85% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}