* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    min-height: 100vh;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #07c160;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #07c160, #10b981);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #06ad56, #059669);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.btn-cancel:hover {
    background: #e8e8e8;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.register-link a {
    color: #07c160;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 18px;
    font-weight: 600;
    color: #07c160;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: #666;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #07c160;
    background: rgba(7, 193, 96, 0.1);
}

.logout-btn {
    padding: 8px 16px;
    border: 1px solid #ff4d4f;
    background: white;
    color: #ff4d4f;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #fff2f0;
}

.main-content {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h2 {
    color: #333;
}

.page-header p {
    color: #666;
    margin-top: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 36px;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.stat-label {
    color: #999;
    font-size: 14px;
}

.quick-actions h3 {
    margin-bottom: 15px;
    color: #333;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    border-color: #07c160;
    color: #07c160;
}

.action-btn span {
    font-size: 18px;
}

.config-list,
.plugin-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.config-item,
.plugin-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.config-info h4 {
    margin-bottom: 8px;
    color: #333;
}

.config-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 4px;
}

.action-btn-small {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.action-btn-small.edit {
    background: #fff7e6;
    color: #fa8c16;
}

.action-btn-small.edit:hover {
    background: #ffe082;
}

.action-btn-small.delete {
    background: #fff2f0;
    color: #ff4d4f;
}

.action-btn-small.delete:hover {
    background: #ffccc7;
}

.action-btn-small.enable {
    background: #f6ffed;
    color: #52c41a;
}

.action-btn-small.enable:hover {
    background: #b7eb8f;
}

.action-btn-small.disable {
    background: #f5f5f5;
    color: #999;
}

.action-btn-small.disable:hover {
    background: #e8e8e8;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

.modal-header h3 {
    color: #333;
}

.close {
    color: #999;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #666;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-end;
}

.plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.plugin-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.plugin-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.plugin-card h3 {
    color: #333;
    margin-bottom: 10px;
}

.plugin-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.plugin-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #999;
}

.plugin-info {
    display: flex;
    gap: 15px;
    flex: 1;
}

.plugin-detail h3 {
    margin-bottom: 8px;
    color: #333;
}

.plugin-detail p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.plugin-detail .plugin-meta {
    flex-direction: row;
    gap: 15px;
    margin-bottom: 0;
}

.plugin-status {
    margin-right: 20px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status-badge.active {
    background: #f6ffed;
    color: #52c41a;
}

.status-badge.inactive {
    background: #f5f5f5;
    color: #999;
}

.empty-text {
    text-align: center;
    color: #999;
    padding: 50px;
}

.empty-text a {
    color: #07c160;
    text-decoration: none;
}

.empty-text a:hover {
    text-decoration: underline;
}