/* Unity UI Toolkit Compatible Active Quest UI Styles */

/* Main quest tracker container */
.quest-tracker {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 300px;
    max-height: 500px;
    background-color: rgba(20, 20, 30, 0.9);
    border-radius: 8px;
    padding: 15px;
    border-width: 2px;
    border-color: rgba(100, 100, 150, 0.5);
}

/* Tracker header */
.tracker-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom-width: 1px;
    border-bottom-color: rgba(100, 100, 150, 0.3);
}

.tracker-title {
    font-size: 16px;
    -unity-font-style: bold;
    color: rgb(255, 215, 0);
}

.tracker-toggle {
    width: 20px;
    height: 20px;
    background-color: rgba(100, 100, 150, 0.5);
    border-radius: 10px;
    font-size: 12px;
    -unity-font-style: bold;
    color: white;
}

/* Quest list in tracker */
.quest-tracker-list {
    max-height: 350px;
}

/* Individual quest entries */
.quest-entry {
    background-color: rgba(40, 40, 60, 0.8);
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 4px;
    border-left-width: 3px;
    border-left-color: rgba(100, 100, 150, 0.7);
}

.quest-entry:hover {
    background-color: rgba(50, 50, 70, 0.9);
}

.quest-entry.selected {
    background-color: rgba(60, 60, 80, 1);
    border-left-color: rgb(255, 215, 0);
}

/* Quest entry content */
.quest-entry-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.quest-entry-title {
    font-size: 13px;
    -unity-font-style: bold;
    color: white;
    flex-grow: 1;
}

.quest-entry-time {
    font-size: 10px;
    color: rgb(255, 165, 0);
    -unity-text-align: middle-right;
}

.quest-entry-location {
    font-size: 11px;
    color: rgb(100, 200, 255);
    margin-bottom: 3px;
}

.quest-entry-progress {
    font-size: 10px;
    color: rgb(200, 200, 200);
}

/* Quest action buttons */
.quest-actions {
    flex-direction: row;
    justify-content: space-around;
    margin-top: 8px;
}

.quest-action-btn {
    height: 25px;
    min-width: 60px;
    font-size: 10px;
    border-radius: 3px;
    background-color: rgba(100, 100, 150, 0.6);
    color: white;
}

.quest-action-btn:hover {
    background-color: rgba(120, 120, 170, 0.8);
}

/* Quest popup/detail view */
.quest-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 400px;
    max-height: 500px;
    background-color: rgba(20, 20, 30, 0.95);
    border-radius: 8px;
    padding: 20px;
    border-width: 2px;
    border-color: rgb(100, 100, 150);
}

.popup-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.popup-title {
    font-size: 18px;
    -unity-font-style: bold;
    color: rgb(255, 215, 0);
}

.popup-close {
    width: 25px;
    height: 25px;
    background-color: rgba(139, 69, 19, 0.8);
    border-radius: 3px;
    font-size: 14px;
    -unity-font-style: bold;
    color: white;
}

.popup-content {
    flex-grow: 1;
}

.popup-section {
    margin-bottom: 15px;
}

.popup-section-title {
    font-size: 14px;
    -unity-font-style: bold;
    color: rgb(100, 200, 255);
    margin-bottom: 5px;
}

.popup-text {
    font-size: 12px;
    color: rgb(200, 200, 200);
}

/* Quest urgency indicators */
.quest-entry.urgency-critical {
    border-left-color: rgb(255, 0, 0);
}

.quest-entry.urgency-high {
    border-left-color: rgb(255, 165, 0);
}

.quest-entry.urgency-medium {
    border-left-color: rgb(255, 255, 0);
}

.quest-entry.urgency-low {
    border-left-color: rgb(0, 255, 0);
}

/* Minimized state */
.quest-tracker.minimized {
    height: 50px;
}

.quest-tracker.minimized .quest-tracker-list {
    display: none;
}
