/* Skill Book Panel Styles */
#skill-book-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #555;
    border-radius: 10px;
    padding: 20px;
    z-index: 1000;
    color: white;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

#skill-book-panel h2 {
    margin: 0 0 20px 0;
    text-align: center;
    color: #ffd700;
    font-size: 28px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#skill-book-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: calc(100% - 60px);
}

/* Skill List Section */
#skill-list {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    overflow-y: auto;
}

.skill-item {
    background: rgba(50, 50, 50, 0.8);
    border: 2px solid #555;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.skill-item:hover {
    background: rgba(70, 70, 70, 0.9);
    border-color: #777;
    transform: translateX(5px);
}

.skill-item.learned {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
}

.skill-item.learned:hover {
    background: rgba(76, 175, 80, 0.3);
}

.skill-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.skill-item.locked:hover {
    transform: none;
}

.skill-item.draggable {
    cursor: grab;
}

.skill-item.draggable:active {
    cursor: grabbing;
}

.skill-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.skill-name {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.skill-level-req {
    font-size: 12px;
    color: #aaa;
}

.skill-item.locked .skill-level-req {
    color: #f44336;
}

/* Skill Details Section */
#skill-details {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
}

#skill-details h3 {
    margin: 0 0 15px 0;
    color: #ffd700;
    font-size: 20px;
    text-align: center;
}

#skill-details-content {
    color: #ddd;
}

.skill-detail-name {
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 10px;
    text-align: center;
}

.skill-detail-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.skill-detail-stats {
    display: grid;
    gap: 8px;
}

.skill-stat-line {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    background: rgba(50, 50, 50, 0.5);
    border-radius: 4px;
}

.skill-stat-label {
    color: #aaa;
    font-size: 14px;
}

.skill-stat-value {
    color: #4CAF50;
    font-weight: bold;
    font-size: 14px;
}

/* Close Button */
#skill-book-panel .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

#skill-book-panel .close-btn:hover {
    color: #ff6b6b;
}

/* Action Bar Styles Update */
#action-bar .skill-slot {
    position: relative;
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid #555;
}

#action-bar .skill-slot.has-skill {
    border-color: #4CAF50;
}

#action-bar .skill-slot.drag-over {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
    transform: scale(1.1);
}

.skill-icon {
    font-size: 32px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.skill-cooldown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 900px) {
    #skill-book-panel {
        width: 95vw;
        height: 90vh;
    }
    
    #skill-book-content {
        grid-template-columns: 1fr;
    }
    
    #skill-details {
        max-height: 300px;
        overflow-y: auto;
    }
}