/* 越南团播赛程网 - 后台管理系统通用样式 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #ff00ff, #00ffff, #ff00ff, #ffff00, #ff00ff);
    background-size: 400% 400%;
    background-attachment: fixed;
    color: #ffffff;
    line-height: 1.6;
    animation: neonGradient 15s ease infinite;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

@keyframes neonGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 管理员登录页面专用样式 */
.admin-login-header {
    position: relative;
    padding: 20px 0;
    z-index: 10;
}

.admin-login-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-login-logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.admin-login-logo:hover {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.admin-login-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 登录区域样式 */
.admin-login-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 40px 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
    perspective: 1000px;
}

.login-box {
    background: rgba(30, 30, 40, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(255, 0, 255, 0.1),
                0 0 40px rgba(255, 255, 0, 0.1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

.login-box:hover {
    transform: translateY(-5px) rotateY(5deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(255, 0, 255, 0.15),
                0 0 50px rgba(255, 255, 0, 0.15);
}

.login-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.05), rgba(255, 255, 0, 0.05), rgba(0, 255, 255, 0.05), rgba(255, 0, 255, 0.05));
    animation: glowing 20s linear infinite;
    z-index: -1;
}

/* 登录头部样式 */
.login-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.login-icon {
    font-size: 56px;
    margin-bottom: 15px;
    display: inline-block;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.login-header h2 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.login-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 15px;
}

.security-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(0, 255, 100, 0.2);
    color: #00ff64;
    font-size: 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 100, 0.3);
    backdrop-filter: blur(5px);
}

/* 表单样式 */
.form-group {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    background: rgba(45, 45, 45, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: #ff69b4;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
}

.form-control::placeholder {
    color: #888888;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff69b4, #ff85c0);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 105, 180, 0.6);
}

.login-btn:hover::before {
    left: 100%;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.form-footer a {
    color: #ff69b4;
    text-decoration: none;
    transition: all 0.3s ease;
}

.form-footer a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    position: relative;
    z-index: 1;
}

/* 页脚样式 */
.admin-login-footer {
    position: relative;
    padding: 20px 0;
    z-index: 10;
}

.admin-login-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.back-to-site {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid transparent;
}

.back-to-site:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 控制台通用布局样式 */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #1a1a2e;
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .logo {
    text-align: center;
    padding: 20px;
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-item {
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sidebar-item:hover {
    background-color: #16213e;
}

.sidebar-item.active {
    background-color: #0f3460;
    border-left: 4px solid #e94560;
}

.sidebar-item a {
    color: white;
    text-decoration: none;
    display: block;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
}

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

.dashboard-header h1 {
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-name {
    margin-right: 15px;
}

.logout-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.logout-btn:hover {
    background-color: #c0392b;
}

/* 数据统计卡片样式 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: #ff69b4;
    font-size: 14px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 10px;
    color: #00ffff;
}

/* 最近活动样式 */
.recent-activities {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.recent-activities h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

.activity-list {
    list-style: none;
    padding: 0;
}

.activity-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

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

.activity-time {
    color: #888;
    font-size: 12px;
    margin-top: 5px;
}

/* 表格样式 */
.data-table-container {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
}

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

.search-bar {
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    width: 300px;
    background: rgba(45, 45, 45, 0.8);
    color: #ffffff;
}

.search-bar::placeholder {
    color: #888;
}

.add-item-btn {
    background: linear-gradient(135deg, #ff69b4, #ff85c0);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.add-item-btn:hover {
    background: linear-gradient(135deg, #ff85c0, #ffa2cf);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

th {
    background: rgba(45, 45, 45, 0.6);
    font-weight: 600;
    color: #ff69b4;
}

tr:hover {
    background: rgba(255, 105, 180, 0.1);
}

/* 状态标签样式 */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-upcoming {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.status-live {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
    animation: pulse 1.5s infinite;
}

.status-completed {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.status-draft {
    background: rgba(127, 140, 141, 0.2);
    color: #95a5a6;
    border: 1px solid rgba(127, 140, 141, 0.3);
}

.status-published {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* 操作按钮样式 */
.action-buttons {
    display: flex;
    gap: 5px;
}

.edit-btn, .delete-btn, .view-btn, .publish-btn, .unpublish-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.edit-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.edit-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.4);
}

.delete-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
}

.view-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.view-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.4);
}

.publish-btn {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
}

.publish-btn:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.4);
}

.unpublish-btn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.unpublish-btn:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c757d);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(149, 165, 166, 0.4);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    list-style: none;
    padding: 0;
}

.pagination li {
    margin: 0 5px;
}

.pagination a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #3498db;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(45, 45, 45, 0.8);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: rgba(255, 105, 180, 0.1);
    border-color: #ff69b4;
    transform: translateY(-1px);
}

.pagination .active a {
    background: linear-gradient(135deg, #ff69b4, #ff85c0);
    color: white;
    border-color: #ff69b4;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 24px;
    margin: 0;
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #ff69b4;
    transform: rotate(90deg);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c757d);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* 选项卡样式 */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    border-bottom: 3px solid transparent;
    margin-right: 10px;
    color: #888;
    transition: all 0.3s ease;
}

.tab:hover {
    color: #ffffff;
}

.tab.active {
    border-bottom: 3px solid #ff69b4;
    color: #ff69b4;
}

/* 赛事特有的样式 */
.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team-name {
    flex: 1;
    color: #ffffff;
    font-weight: 500;
}

.match-vs {
    margin: 0 10px;
    color: #888;
    font-weight: 600;
}

.match-score {
    font-weight: bold;
    margin-left: 10px;
    min-width: 40px;
    text-align: right;
    color: #ff69b4;
    font-size: 18px;
}

.tournament-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    background: rgba(149, 165, 166, 0.2);
    color: #95a5a6;
    border: 1px solid rgba(149, 165, 166, 0.3);
}

/* 战队管理特有的样式 */
.team-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.team-card:hover {
    background: rgba(255, 105, 180, 0.05);
    transform: translateX(5px);
}

.team-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid rgba(255, 105, 180, 0.3);
}

.team-info {
    flex: 1;
    color: #ffffff;
}

.team-info h4 {
    margin: 0 0 5px 0;
    color: #ff69b4;
}

.team-info p {
    margin: 0;
    color: #888;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .search-bar {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 600px) {
    .sidebar {
        width: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 2000;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .login-box {
        padding: 32px 24px;
    }
    
    .modal-content {
        padding: 24px 16px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #ff69b4;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(45, 45, 45, 0.8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 105, 180, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 105, 180, 0.7);
}

/* 选中文字样式 */
::selection {
    background: rgba(255, 105, 180, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(255, 105, 180, 0.3);
    color: #ffffff;
}