.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: #1a1a1a;
    border: 1px solid #ff4444;
    border-radius: 10px;
    padding: 14px 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 68, 68, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.toast-notification.toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-notification.toast-hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 20px;
    color: #ff4444;
    flex-shrink: 0;
}

.toast-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toast-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.toast-message {
    font-size: 12px;
    color: #ff8888;
}

.keyboard-container {
    outline: none;
    padding: 20px;
    user-select: none;
}

.keyboard-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.kb-row {
    display: flex;
    gap: 6px;
}

.kb-offset-1 {
    margin-left: 30px;
}

.kb-offset-2 {
    margin-left: 15px;
}

.kb-space-row {
    margin-left: 15px;
}

.kb-key {
    position: relative;
    width: 80px;
    height: 80px;
    border: 2px solid #555;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #2a2a2a;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    transition: background 0.15s, transform 0.1s;
    overflow: hidden;
}

.kb-key:hover {
    background: #3a3a3a;
    transform: translateY(-2px);
}

.kb-key:active {
    transform: translateY(0);
}

.kb-key.on-cd {
    pointer-events: none;
    opacity: 0.7;
}

.kb-space {
    width: 520px;
    height: 80px;
}

.kb-shift {
    opacity: 0.85;
}

.key-label {
    font-size: 18px;
    font-weight: 700;
    z-index: 1;
}

.skill-name {
    font-size: 10px;
    opacity: 0.8;
    text-align: center;
    line-height: 1.2;
    z-index: 1;
}

.cd-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cd-svg {
    width: 100%;
    height: 100%;
}

.cd-bg {
    fill: none;
    stroke: #333;
    stroke-width: 8;
}

.cd-progress {
    fill: none;
    stroke: #ff4444;
    stroke-width: 8;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 0.1s linear;
}

.cd-text {
    position: absolute;
    font-size: 24px;
    font-weight: 700;
    color: #ff6666;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.character-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 20px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
}

.character-selector label {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.character-selector select {
    padding: 6px 12px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #0f0f0f;
    color: #e0e0e0;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.character-selector select:focus {
    border-color: #5588ff;
    box-shadow: 0 0 0 3px rgba(85, 136, 255, 0.15);
}

.kb-divider {
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 16px 0 8px;
    padding-top: 12px;
    border-top: 1px solid #444;
    width: 80%;
    text-align: center;
}

.kb-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.kb-left {
    flex-shrink: 0;
}

.kb-right {
    flex: 1;
    min-width: 280px;
    position: sticky;
    top: 20px;
}

.skill-detail {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.skill-detail-empty {
    border-style: dashed;
    border-color: #333;
    background: #141414;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.empty-hint {
    text-align: center;
    color: #555;
}

.empty-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.empty-hint p {
    margin: 0;
    font-size: 13px;
}

.skill-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a2a;
}

.skill-detail-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.skill-detail-key {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    background: #2a2a2a;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #444;
    text-transform: uppercase;
}

.skill-detail-desc {
    margin-bottom: 14px;
}

.skill-detail-desc p {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #bbb;
}

.skill-detail-desc p:last-child {
    margin-bottom: 0;
}

.skill-detail-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #222;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #cce;
}

.skill-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-detail-tags .tag-badge {
    font-size: 11px;
    padding: 3px 8px;
    background: #2a2a40;
    border: 1px solid #3a3a55;
    border-radius: 4px;
    color: #99b;
}
