.chatislav-admin-wrap {
    margin: 0px 0 0 -20px;
    padding: 0;
    min-height: calc(100vh - 32px);
}

.chatislav-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 40px;
    margin-bottom: 30px;
}

.chatislav-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
}

.chatislav-logo {
    width: 60px;
    height: 60px;
}

.chatislav-title-section h1 {
    color: #424242;
    font-size: 2rem;
    font-weight: 700;
}

.chatislav-subtitle {
    color: #48494f;
    font-size: 1.1rem;
    margin: 0;
}

.chatislav-admin-wrap form {
    padding: 0 40px 40px 40px;
}

.chatislav-ai-agent-config-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.chatislav-ai-agent-config-section h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f1;
}

.chatislav-form-table {
  width: 100%;
}

.chatislav-form-table th {
    color: #333;
    font-weight: 600;
    padding: 15px 20px 15px 0;
    width: 180px;
}

.chatislav-form-table td {
    padding: 15px 0;
}

.chatislav-token-input-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.chatislav-regular-text {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    width: 100%;
    max-width: 700px;
    flex: 1;
}

.chatislav-regular-text:focus {
    border-color: #8e3dff !important;
    outline: none !important;
}

.chatislav-button {
    background: #8e3dff;
    border: none;
    border-radius: 8px;
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.chatislav-button:hover {
    background: #7c2df0;
    color: white;
}

.chatislav-remove-ai-agent {
    background: rgb(255, 102,89) !important;
    color: #fff !important;
    padding: 8px 16px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px !important;
    cursor: pointer;
    position: relative;
    transition: all 0.1s linear;
    border: none !important;
    outline: none !important;
    white-space: nowrap;
}

.chatislav-remove-ai-agent:hover {
    background: #c53030 !important;
    color: #fff !important;
}

.chatislav-add-ai-agent {
    background: rgba(0, 240, 179, 1) !important;
    color: #0c0810 !important;
    padding: 8px 16px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px !important;
    cursor: pointer;
    position: relative;
    transition: all 0.1s linear;
    border: none !important;
    outline: none !important;
}

.chatislav-add-ai-agent:hover {
    background: rgba(0, 240, 179, 0.6) !important;
    color: #0c0810 !important;
}

.chatislav-admin-wrap input[type="radio"] {
    margin-right: 8px;
}

.chatislav-admin-wrap label {
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
}

.chatislav-specific-pages {
    margin-left: 25px;
    margin-top: 15px;
}

.chatislav-specific-pages select {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    width: 100%;
    max-width: 400px;
    min-height: 120px;
}

.chatislav-specific-pages select:focus {
    border-color: #8e3dff;
    outline: none;
}

.chatislav-submit,
#chatislav-submit {
    background: #8e3dff !important;
    padding: 8px 16px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px !important;
    border: none !important;
    outline: none !important;
    width: 120px;
    cursor: pointer;
    position: relative;
    transition: all 0.1s linear;
    color: white !important;
}

.chatislav-submit:hover,
#chatislav-submit:hover {
    background: rgba(142, 61, 255, 0.6) !important;
    color: white !important;
}

.chatislav-success-message {
    background: #00F0B3;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.chatislav-error-message {
    background: #e53e3e;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.chatislav-description {
    color: #666 !important;
    font-size: 13px !important;
    margin-top: 8px !important;
    font-style: italic !important;
}

.chatislav-admin-wrap fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.chatislav-screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.chatislav-empty-state {
    background: white;
    border-radius: 12px;
    padding: 60px 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: block !important;
    visibility: visible !important;
}

.chatislav-empty-state-content {
    max-width: 400px;
    margin: 0 auto;
    display: block !important;
    visibility: visible !important;
}

.chatislav-empty-state-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.chatislav-empty-state h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.chatislav-empty-state p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 30px 0;
}

.chatislav-empty-state .chatislav-button {
    margin: 0 auto;
}

.chatislav-token-row {
  display: flex;
  gap: 16px;
}

@media screen and (max-width: 768px) {

    .chatislav-token-row {
      flex-direction: column;
    }

    .chatislav-token-input-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .chatislav-regular-text {
        max-width: none;
    }

    .chatislav-remove-ai-agent {
        margin-top: 10px !important;
        width: 100%;
    }

    .chatislav-admin-wrap {
        margin-left: -20px;
        margin-right: -10px;
    }

    .chatislav-header {
        padding: 20px;
    }

    .chatislav-header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .chatislav-title-section h1 {
        font-size: 2rem;
    }

    .chatislav-admin-wrap form {
        padding: 0 20px 20px 20px;
    }

    .chatislav-ai-agent-config-section {
        padding: 20px;
    }

    .form-table th,
    .chatislav-form-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
}
