/* Tracker Panel Styles */

tracker-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 0;
    z-index: 1000;
    /* transition: width 0.3s ease-in-out; */
    pointer-events: none;
    overflow: hidden;
}

tracker-panel.open {
    width: 500px;
    pointer-events: auto;
}

tracker-panel:not(.open) .tracker-panel-content {
    pointer-events: none;
}

.tracker-panel-tab {
    position: fixed;
    right: 0;
    top: 200px;
    transform: translateY(-50%);
    width: 25px;
    height: 350px;
    background-color: var(--theme-secondary-color);
    border-radius: 15px 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s;
    pointer-events: auto;
}

tracker-panel.open .tracker-panel-tab {
    right: 500px;
}

.tracker-panel-tab:hover {
    background-color: var(--theme-secondary-color-800);
}

.tracker-tab-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 5px 0;
}

.tracker-tab-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.tracker-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    color: white;
}

.tracker-tab-item .material-symbols-outlined {
    font-size: 20px;
    color: white;
}

.tracker-tab-item[data-type="phone-attempt"] .material-symbols-outlined {
    color: #ff4444;
}

.tracker-tab-item[data-type="phone-report"] .material-symbols-outlined {
    color: #4caf50;
}

.tracker-tab-item .item-count {
    font-size: 13px;
    font-weight: 600;
    color: white;
    line-height: 1;
}

.tracker-tab-item[data-type="phone-attempt"] .item-count {
    color: #ff4444;
}

.tracker-tab-item[data-type="phone-report"] .item-count {
    color: #4caf50;
}

.tracker-panel-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 500px;
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

tracker-panel.open .tracker-panel-content {
    opacity: 1;
    visibility: visible;
}

.tracker-panel-close {
    position: absolute;
    top: 3px;
    right: 7px;
    z-index: 10;
}

.tracker-panel-close .btn-icon {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Internal Tracker Styles */

.internal-tracker {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Tab Navigation */
.tracker-tabs {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.tracker-tab {
    padding: 10px 10px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.tracker-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.tracker-tab.active {
    color: white;
    border-bottom-color: #ff4444;
}

/* Add Button */
.tracker-add-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin: 15px;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.tracker-add-button:hover {
    background-color: #ff6666;
}

.tracker-add-button .material-symbols-outlined {
    font-size: 20px;
}

/* Tracker Contents */
.internal-tracker .tracker-contents {
    padding: 0 15px 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Item Card */
.tracker-item-card {
    background-color: rgba(50, 50, 50, 0.9);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
}

.tracker-item-card.pinned {
    background-color: rgba(95, 253, 111, 0.2);
    border: 1px solid rgba(51, 136, 51, 0.5);
}

/* Icon Wrapper */
.tracker-item-icon-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tracker-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tracker-item-icon-symbol {
    font-size: 28px;
}

.tracker-item-icon-symbol-white {
    color: #ffffff;
}

.tracker-item-icon-symbol-red {
    color: #ff4444;
}

.tracker-item-icon-symbol-green {
    color: #4caf50;
}

/* Item Details */
.tracker-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.tracker-item-name {
    font-weight: 600;
    font-size: 16px;
    color: white;
    line-height: 1.3;
}

.tracker-item-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.2;
}

.tracker-item-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-top: 4px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Settings Button */
.tracker-item-settings {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.tracker-item-settings:hover {
    color: rgba(255, 255, 255, 0.9);
}

.tracker-item-settings .material-symbols-outlined {
    font-size: 20px;
}

.tracker-item-completed-label {
    color: white;
}

.tracker-item-answer-text {
    margin-top:30px;
    color: var(--theme-primary-color);
    font-weight: 600;
}

.tracker-item-answered-label {
    color: white;
    font-size: 13px;

/* Responsive adjustments */
@media (max-width: 768px) {
    tracker-panel.open {
        width: 100%;
    }
    
    .tracker-panel-content {
        width: 100%;
    }
    
    tracker-panel.open .tracker-panel-tab {
        right: 100%;
    }
}
