/* Dashboard Styles - Restored from Original */
.action-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 850px;
    margin-bottom: 25px;
}
.dash-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}
.dash-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); transform: translateY(-2px); }

.playbook-fab {
    position: fixed;
    right: 40px;
    bottom: 120px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 1200;
    box-shadow: 0 6px 16px rgba(255, 50, 50, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.playbook-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 24px rgba(255, 50, 50, 0.5);
}

.project-list {
    width: 100%;
    max-width: 850px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.project-card {
    background-color: rgba(45, 10, 10, 0.3);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 100, 100, 0.2);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    cursor: grab;
}
.p-row-top {
    padding-right: 70px;
}
.actions {
    position: absolute;
    top: 10px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.project-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 1, 1, 0.4), var(--bg-dark));
    z-index: 1; opacity: 0.8;
}
.project-card > * { position: relative; z-index: 2; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(255, 50, 50, 0.15); border-color: var(--accent); }

.p-card-hint {
    position: absolute; bottom: 15px; left: 20px;
    font-size: 0.8rem; color: #ffffff; opacity: 0;
    transition: opacity 0.5s ease 1s; pointer-events: none;
    background: rgba(10, 1, 1, 0.7); padding: 4px 12px;
    border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 1px; font-weight: 500; z-index: 2;
}
.project-card:hover .p-card-hint { opacity: 1; }

.icon-btn {
    background: transparent; border: none; cursor: pointer;
    color: var(--text-secondary); padding: 4px; display: flex;
    align-items: center; transition: all 0.2s;
}
.icon-btn:hover { color: white; transform: scale(1.1); }
.inline-action { padding: 2px; }

.official-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: rgba(255, 51, 51, 0.25);
    border: 1px solid rgba(255, 120, 120, 0.6);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.inline-title-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 6px 10px;
    outline: none;
}

.status { padding: 4px 10px; border-radius: 4px; font-size: 0.85rem; background: rgba(255,51,51,0.2); color: #ff5555; }
.status.completed { display: none; }

.progress-container { width: 100%; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; height: 6px; margin: 0; }
.progress-bar { height: 100%; background: var(--accent-gradient); transition: width 0.3s; }

/* Edit / Share / Confirm Modals - Correct Styles */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 3000;
}
.modal-content {
    background: #1a0505; border: 1px solid var(--accent); border-radius: 12px;
    padding: 25px; width: 90%; max-width: 500px; box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.edit-popup {
    position: absolute; background: rgba(20, 0, 0, 0.95);
    border: 1px solid var(--accent); padding: 8px; border-radius: 8px;
    backdrop-filter: blur(10px); z-index: 9999; display: flex; gap: 8px; align-items: center;
}
.edit-popup input {
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
    color: white; padding: 6px 10px; border-radius: 4px; outline: none;
}
.btn-confirm-mini { background: var(--accent-gradient); color:white; border:none; border-radius:4px; padding:6px 12px; cursor:pointer; }

/* Background Player */
.bg-player-frame { position: fixed; top: 0; left: 0; width: 100%; height: 100%; border: none; background: #000; display: none; z-index: 10000; }
.bg-player-frame.active { display: block; }
.bg-player-frame.minimized { display: block; visibility: hidden; pointer-events: none; }
.player-fab {
    position: fixed; bottom: 30px; right: 20px; width: 56px; height: 56px;
    background: var(--accent-gradient); border-radius: 50%; z-index: 10001;
    display: none; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 5px 20px rgba(255,0,0,0.3);
}
#toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: rgba(50, 200, 50, 0.9); color: white; padding: 12px 24px;
    border-radius: 30px; z-index: 11000; display: none;
}

@media screen and (max-width: 850px) {
    .action-bar { flex-wrap: wrap; }
    .project-card { flex-wrap: wrap; }
    .p-row-top { flex-wrap: wrap; padding-right: 60px; }
    .actions { top: 8px; right: 12px; }
    .p-card-title { font-size: 20px !important; }
}
