body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
h1, h2, h3 {
    color: #333;
    margin-top: 0;
}
.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
input, textarea, select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
}
button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}
button:hover {
    background-color: #0056b3;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
th {
    background-color: #f2f2f2;
}
.actions {
    display: flex;
    gap: 5px;
}
.actions button {
    padding: 5px 10px;
    font-size: 12px;
}
.tab-container {
    margin-bottom: 20px;
}
.tab {
    display: inline-block;
    padding: 10px 15px;
    background-color: #e9ecef;
    border: none;
    cursor: pointer;
}
.tab.active {
    background-color: #007bff;
    color: white;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.error-message {
    color: #dc3545;
    margin: 10px 0;
    padding: 10px;
    background-color: #f8d7da;
    border-radius: 4px;
    display: none;
}
.stats-box {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: inline-block;
    margin-right: 20px;
}
.stats-value {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}
.key-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
}
.key-item {
    padding: 8px 5px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.key-item:last-child {
    border-bottom: none;
}
.key-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}
.status-active {
    background-color: #28a745;
}
.status-inactive {
    background-color: #dc3545;
}
.key-info {
    display: flex;
    align-items: center;
}
.key-failure {
    color: #666;
    font-size: 12px;
    margin-left: 10px;
}
.current-key-tag {
    background-color: #28a745;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 10px;
}
.check-result {
    margin-top: 5px;
    font-size: 12px;
    display: block;
}
.check-success {
    color: #28a745;
}
.check-error {
    color: #dc3545;
}
.section-divider {
    height: 1px;
    background-color: #eee;
    margin: 25px 0;
}
.retry-button {
    margin-left: 10px;
    background-color: #28a745;
}
.current-key-display-container {
    margin: 15px 0;
    padding: 10px;
    background-color: #f0f7ff;
    border-radius: 4px;
}
.sync-notification {
    color: #28a745;
    margin: 10px 0;
    padding: 8px;
    background-color: #f0fff4;
    border-radius: 4px;
    display: none;
    font-size: 14px;
}
.current-license-highlight {
    background-color: #fff8e1;
}
.license-status {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    color: white;
}
.status-valid {
    background-color: #28a745;
}
.status-invalid {
    background-color: #dc3545;
}
.status-expired {
    background-color: #6c757d;
}
.status-warning {
    background-color: #ffc107;
    color: #333;
}
.key-warning {
    color: #ffc107;
    font-weight: bold;
}
.debug-button {
    background-color: #6c757d;
    margin-left: 10px;
}
.login-container {
    max-width: 400px;
    margin: 80px auto;
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.login-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.login-title {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}
.login-subtitle {
    color: #666;
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: normal;
}
.login-form .form-group {
    margin-bottom: 22px;
}
.login-form label {
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}
.login-form input {
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s;
}
.login-form input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}
.login-form button {
    width: 100%;
    padding: 13px;
    font-size: 16px;
    background-color: #007bff;
    border-radius: 6px;
    transition: background-color 0.3s;
}
.login-form button:hover {
    background-color: #0056b3;
}
.login-error {
    color: #dc3545;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8d7da;
    border-radius: 6px;
    display: none;
}
.verification-group {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}
.verification-group .form-group {
    flex: 1;
    margin-bottom: 0;
}
.verification-group button {
    width: auto;
    padding: 12px 20px;
    white-space: nowrap;
    height: 46px;
}
.countdown {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}
.logout-button {
    background-color: #dc3545;
    margin-left: 15px;
    float: right;
}
.icp-info {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 14px;
}
.blocked-message {
    color: #dc3545;
    margin-top: 10px;
    font-weight: bold;
    display: none;
}
.import-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.status-success {
    background-color: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}
.status-failed {
    background-color: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}
.webhook-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.webhook-detail-modal.active {
    display: flex;
}
.webhook-detail-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    width: 90%;
}
.webhook-detail-content pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 12px;
}
.webhook-detail-close {
    float: right;
    background-color: #6c757d;
    margin-bottom: 15px;
}

.user-modal-btn {
    display: inline-block;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    font-size: 14px;
}

.user-actions-cell {
    position: relative;
}

.user-actions-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    min-width: 120px;
    z-index: 100;
    display: none;
}

.user-actions-menu.show {
    display: block;
}

.user-actions-menu button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.user-actions-menu button:last-child {
    border-bottom: none;
}

.user-actions-menu button:hover {
    background-color: #f5f5f5;
}

.user-actions-menu button.action-edit {
    color: #007bff;
}

.user-actions-menu button.action-reset {
    color: #ffc107;
}

.user-actions-menu button.action-delete {
    color: #dc3545;
}

.user-actions-btn {
    background-color: #f8f9fa;
    border: 1px solid #adb5bd;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #495057;
}

.user-actions-btn:hover {
    background-color: #e9ecef;
    border-color: #6c757d;
}

.user-table {
    font-size: 13px;
}

.user-table th,
.user-table td {
    padding: 8px 10px;
}

.user-table th {
    font-size: 12px;
    font-weight: 600;
}