/* Common Styles for AMB Stats Site */

/* Header Styles */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 20;
    height: 84px; /* 增加高度 */
    box-sizing: border-box;
}

header .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

header .flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0 0.25rem 0;
    height: 100%;
}

header .flex.items-center {
    align-items: flex-start;
}

/* 系统状态容器 - 保持时间和绿色圆圈在同一高度 */
header .flex.items-center.bg-am-light-gray\/50 {
    align-items: center;
    margin-top: 0.5rem; /* 整体下移，保持在header上下居中 */
}

header .group {
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
    margin-left: 2rem; /* 向右移动 */
    margin-top: -0.25rem; /* 向上微调 */
}

header .group:hover .text-am-text-dark {
    color: #c41e1e;
}

header .group:hover .shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

header .bg-gradient-to-br {
    background: linear-gradient(135deg, #c41e1e 0%, #9c0000 100%);
}

header .rounded-lg {
    border-radius: 0.5rem;
}

header .w-10 {
    width: 3rem; /* 放大logo */
}

header .h-10 {
    height: 3rem; /* 放大logo */
}

header .flex.items-center.justify-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

header .mr-3 {
    margin-right: 1rem; /* 增加间距 */
}

header .shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

header .transition-all {
    transition: all 0.3s ease;
}

header .duration-300 {
    transition-duration: 300ms;
}

header .text-white {
    color: #ffffff;
}

header .text-xl {
    font-size: 1.5rem; /* 放大标题 */
    line-height: 2rem;
    font-weight: bold;
}

header .text-am-text-dark {
    color: #333333;
}

header .transition-colors {
    transition: color 0.3s ease;
}

header .text-xs {
    font-size: 0.875rem; /* 放大副标题 */
    line-height: 1.25rem;
}

header .text-am-text-light {
    color: #999999;
}

header .gap-4 {
    gap: 1rem;
}

header .bg-am-light-gray\/50 {
    background-color: rgba(245, 245, 245, 0.5);
}

header .rounded-full {
    border-radius: 9999px;
}

header .px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

header .py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

header .text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

header .text-am-text-medium {
    color: #666666;
}

/* 实时时间样式 - 应用到全局 */
#current-date-time {
    font-weight: 500;
    color: #c41e1e;
    font-family: 'Courier New', monospace;
}

header .w-2 {
    width: 0.5rem;
}

header .h-2 {
    height: 0.5rem;
}

header .bg-green-500 {
    background-color: #10b981;
}

header .animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

header .ml-2 {
    margin-left: 0.5rem;
}

/* Sidebar Styles */
aside {
    width: 14rem;
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
    height: calc(100vh - 84px);
    position: fixed;
    left: 0;
    top: 84px;
    overflow-y: auto;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.05);
    z-index: 10;
    border-top: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

nav {
    padding: 1.5rem 0;
}

nav .px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

nav .mb-4 {
    margin-bottom: 1rem;
}

nav .text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

nav .text-am-text-light {
    color: #999999;
}

nav .uppercase {
    text-transform: uppercase;
}

nav .font-semibold {
    font-weight: 600;
}

nav .tracking-wider {
    letter-spacing: 0.05em;
}

nav .sidebar-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #333333;
    border-radius: 0.5rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

nav .sidebar-item:hover {
    background-color: rgba(196, 30, 30, 0.05);
}

nav .sidebar-item.active {
    background: linear-gradient(90deg, rgba(196, 30, 30, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    border-left: 4px solid #c41e1e;
}

nav .w-8 {
    width: 2rem;
}

nav .h-8 {
    height: 2rem;
}

nav .rounded-lg {
    border-radius: 0.5rem;
}

nav .bg-am-red\/20 {
    background-color: rgba(196, 30, 30, 0.2);
}

nav .flex.items-center.justify-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

nav .mr-3 {
    margin-right: 0.75rem;
}

nav .text-am-red {
    color: #c41e1e;
}

nav .bg-am-light-gray\/50 {
    background-color: rgba(245, 245, 245, 0.5);
}

nav .text-am-text-medium {
    color: #666666;
}

nav .mt-8 {
    margin-top: 2rem;
}

nav .justify-between {
    justify-content: space-between;
}

nav .bg-am-red.bg-opacity-10 {
    background-color: rgba(196, 30, 30, 0.1);
}

nav .text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

nav .px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

nav .py-0\.5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

nav .rounded-full {
    border-radius: 9999px;
}

nav .font-medium {
    font-weight: 500;
}

/* Main Content Styles */
main {
    flex: 1;
    padding: 1.5rem;
    margin-left: 14rem;
    transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 768px) {
    aside {
        left: -14rem;
        transition: left 0.3s ease;
    }
    
    aside.mobile-open {
        left: 0;
    }
    
    main {
        margin-left: 0;
    }
}