/* 计时器图标样式 */
.timer-trigger {
    position: fixed;
    left: 0;
    top: 160px; /* 位于记事本图标下方 */
    background: white;
    padding: 10px;
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s ease;
}

.timer-trigger:hover {
    transform: translateX(3px);
}

.timer-trigger i {
    color: #4a90e2;
    font-size: 20px;
}

/* 时间显示徽章 */
.timer-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #4a90e2;
    color: white;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 4px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.timer-badge.show {
    opacity: 1;
    transform: scale(1);
}

/* 设置面板样式 */
.timer-panel {
    position: fixed;
    left: -300px;
    top: 205px;
    width: 300px;
    background: white;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    border-radius: 0 8px 8px 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.timer-panel.show {
    transform: translateX(300px);
}

/* 面板头部 */
.timer-header {
    padding: 15px;
    background: #4a90e2;
    color: white;
    border-radius: 0 8px 0 0;
}

/* 模式切换 */
.timer-modes {
    display: flex;
    padding: 10px;
    gap: 10px;
}

.timer-mode-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
}

.timer-mode-btn.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

/* 时间设置区域 */
.timer-settings {
    padding: 15px;
}

/* 倒计时选择 */
.countdown-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.countdown-option {
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.countdown-option:hover {
    background: #f5f6fa;
}

.countdown-option.selected {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

/* 具体时间选择 */
.time-picker {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.time-picker input {
    width: 85px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

/* 操作按钮 */
.timer-actions {
    padding: 15px;
    display: flex;
    gap: 10px;
}

.timer-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.start-btn {
    background: #4a90e2;
    color: white;
}

.start-btn:hover {
    background: #357abd;
}

.cancel-btn {
    background: #f5f6fa;
    color: #666;
}

.cancel-btn:hover {
    background: #e8e9ec;
}

/* 全屏倒计时显示 */
.timer-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.timer-fullscreen.show {
    opacity: 1;
    pointer-events: auto;
}

.timer-countdown {
    font-size: 120px;
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
} 