
/* 默认主题 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --gradient-start: #f6f8f9;
    --gradient-end: #e5ebee;
    --border-color: #e0e6e9;
    --shadow-color: rgba(0,0,0,0.1);
}

/* 蓝色主题 */
:root[data-theme="blue"] {
    --primary-color: #1a237e;
    --secondary-color: #283593;
    --accent-color: #1976d2;
    --text-color: #1a237e;
    --light-bg: #e8eaf6;
    --gradient-start: #e3f2fd;
    --gradient-end: #bbdefb;
    --border-color: #c5cae9;
    --shadow-color: rgba(25,118,210,0.1);
}

/* 绿色主题 */
:root[data-theme="green"] {
    --primary-color: #1b5e20;
    --secondary-color: #2e7d32;
    --accent-color: #43a047;
    --text-color: #1b5e20;
    --light-bg: #e8f5e9;
    --gradient-start: #e8f5e9;
    --gradient-end: #c8e6c9;
    --border-color: #a5d6a7;
    --shadow-color: rgba(67,160,71,0.1);
}

/* 橙色主题 */
:root[data-theme="orange"] {
    --primary-color: #e65100;
    --secondary-color: #ef6c00;
    --accent-color: #f57c00;
    --text-color: #e65100;
    --light-bg: #fff3e0;
    --gradient-start: #fff3e0;
    --gradient-end: #ffe0b2;
    --border-color: #ffcc80;
    --shadow-color: rgba(245,124,0,0.1);
}

* {
    transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.login-container {
    max-width: 400px;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin: 2rem auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.login-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 500;
}

.form-control {
    border-radius: 30px;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem var(--shadow-color);
}

.form-label {
    color: var(--text-color);
    margin-left: 0.5rem;
}

.btn-primary {
    background: var(--accent-color);
    border: none;
    border-radius: 30px;
    padding: 0.8rem 2rem;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-sso {
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.8rem 2rem;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-sso:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    color: white;
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border-color);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.divider span {
    background: white;
    padding: 0 1rem;
    color: var(--text-color);
    opacity: 0.6;
}

.theme-selector {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
    width: 130px;
}

.form-select {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    border-color: var(--border-color);
    color: var(--text-color);
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem var(--shadow-color);
}

.alert-danger {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
    border-radius: 10px;
}
.alert-success {
    background-color: #d4edda;
    border-color: #0c6f05;
    color: #155724;
    border-radius: 10px;
}

.alert-error {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
    border-radius: 10px;
}

/* Dashboard特定样式 */
.container {
    max-width: 1200px;
    padding: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: none;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.dashboard-title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0;
}
.token-actions {
    
    padding: 1rem;
    height: 100%;
    background-color: var(--card-bg);
    transition: all 0.3s ease;
}

.token-item-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    height: 100%;
    background-color: var(--card-bg);
    transition: all 0.3s ease;
}

.token-item-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.token-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.token-item:hover {
    background-color: var(--light-bg);
}

.token-item:last-child {
    border-bottom: none;
}

.btn {
    border-radius: 30px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 0.25rem 0.8rem;
}

.btn-primary {
    background: var(--accent-color);
    border: none;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    transform: translateY(-2px);
}

.login-btn {
    position: absolute;
    top: 20px; /* 根据需要调整位置 */
    right: 20px; /* 根据需要调整位置 */
    padding: 10px 20px;
    background-color: #007bff; /* 按钮背景色 */
    color: white; /* 按钮文字颜色 */
    border-radius: 5px; /* 圆角 */
    text-decoration: none; /* 去掉下划线 */
    font-weight: bold; /* 加粗文字 */
}

.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    color: var(--text-color);
    font-weight: 500;
}

.table td {
    vertical-align: middle;
}

.form-select {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    border-color: var(--border-color);
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

.logout-btn {
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
}

.validation-error {
    border-color: #dc3545;
}

.error-text {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.theme-selector {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
}

.token-info h6 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.token-info small {
    color: var(--text-color);
    opacity: 0.7;
}

.btn-group {
    gap: 0.5rem;
}

.form-control {
    border-radius: 30px;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border-color);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem var(--shadow-color);
}

/* 用户卡片样式 */
.user-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    height: 100%;
    background-color: var(--card-bg);
    transition: all 0.3s ease;
}

.user-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.user-card-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.user-info h6 {
    color: var(--text-color);
    margin: 0;
}

.user-card-body {
    margin-bottom: 1rem;
}

.user-card-footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.user-card-footer .btn {
    flex: 1;
    min-width: 10px;
}

@media (max-width: 576px) {
    .user-card-footer {
        flex-direction: column;
    }
    
    .user-card-footer .btn {
        width: 100%;
    }
} 
