@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .text-shadow-lg {
        text-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    .bg-gradient-dark {
        background: linear-gradient(to bottom right, #0f172a, #1e293b);
    }
    .transition-all-300 {
        transition: all 300ms ease-in-out;
    }
    .progress-bar {
        transition: width 0.5s ease-in-out;
    }
}

/* 自定义样式 */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.editable-cell {
    position: relative;
    cursor: pointer;
}
.editable-cell input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}
.editable-cell.editing input {
    display: block;
}
.editable-cell.editing .cell-value {
    display: none;
}
.progress-bar-container {
    position: relative;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(255,255,255,0.1);
}
.progress-bar {
    height: 100%;
    border-radius: 10px;
}
.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.slide-animation {
    animation: slideIn 0.5s ease-out forwards;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}
.number-animation {
    transition: all 0.5s ease-out;
}
/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}
.data-table th {
    position: sticky;
    top: 0;
    background-color: #1e293b;
    z-index: 10;
}
.data-table td, .data-table th {
    padding: 0.75rem;
    border: 1px solid #334155;
    font-size: 0.875rem;
    white-space: nowrap;
    min-width: 70px;
}
.data-table tr:hover {
    background-color: rgba(255,255,255,0.05);
}
/* PPT样式 */
.ppt-container {
    background: linear-gradient(to bottom right, #0f172a, #1e293b);
    min-height: calc(100vh - 120px);
    color: white;
    overflow-y: auto;
}
/* 全屏模式下 */
.ppt-container:fullscreen {
    min-height: 100vh;
    overflow-y: auto;
}
.ppt-slide {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.ppt-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
    color: #e0f2fe;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.ppt-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #93c5fd;
}
.ppt-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
}
.ppt-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.2);
}
.ppt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}
.ppt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.ppt-card-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e0f2fe;
}
.ppt-card-position {
    font-size: 1rem;
    color: #94a3b8;
}
.ppt-card-content {
    margin-top: 1rem;
}
.ppt-card-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.ppt-card-label {
    color: #94a3b8;
}
.ppt-card-value {
    font-weight: bold;
    color: #e0f2fe;
}
.ppt-card-value.highlight {
    color: #22d3ee;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .ppt-title {
        font-size: 2rem;
    }
    .ppt-subtitle {
        font-size: 1.2rem;
    }
    .ppt-cards {
        grid-template-columns: 1fr;
    }
}

/* 滚动横幅动画 */
@keyframes marquee {
    0% {
        transform: translateX(100vw);
    }
}

/* 每周默认任务人员下拉框样式 */
.person-select-wrapper {
    position: relative;
}

.person-select-display {
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    min-height: 34px;
    cursor: pointer;
    background: white;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.person-select-display:hover {
    border-color: #9ca3af;
}

.person-dropdown {
    position: absolute;
    z-index: 50;
    width: 100%;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    margin-top: 0.25rem;
    max-height: 160px;
    overflow-y: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.person-option {
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.person-option:hover {
    background-color: #eff6ff;
}

.person-tag {
    display: inline-flex;
    align-items: center;
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    padding: 0.125rem 0.5rem;
    margin: 0.125rem;
}

.person-tag button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
    color: #1e40af;
    font-size: 1rem;
    line-height: 1;
}

.person-tag button:hover {
    color: #1e3a8a;
}

/* 周选择器样式 - 隐藏浏览器原生图标 */
.week-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.week-input::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 8px;
    cursor: pointer;
}