/* Main Layout */
body {
    background-color: #f4f4f4;
}

.ui.main.container {
    margin-top: 7em;
    padding-bottom: 3em;
}

/* Feedback Cards */
.feedback-item {
    background: #fff;
    border-radius: 8px;
    padding: 1.5em;
    margin-bottom: 1em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
    cursor: pointer;
}

.feedback-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feedback-item .header {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 0.5em;
}

.feedback-item .title {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    flex-grow: 1;
}

.feedback-item .description {
    color: #666;
    margin-bottom: 1em;
    line-height: 1.5;
}

.feedback-item .meta {
    display: flex;
    align-items: center;
    gap: 1em;
    color: #888;
    font-size: 0.9em;
}

/* Vote Box */
.vote-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    min-width: 80px;
}

.vote-box .ui.button {
    margin: 0;
}

.vote-box .ui.button.voted {
    background-color: #2185d0;
    color: white;
}

.vote-count {
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
}

/* Status Labels */
.ui.label.status-pending {
    background-color: #fbbd08;
    color: #fff;
}

.ui.label.status-open {
    background-color: #2185d0;
    color: #fff;
}

.ui.label.status-planned {
    background-color: #6435c9;
    color: #fff;
}

.ui.label.status-in-progress {
    background-color: #f2711c;
    color: #fff;
}

.ui.label.status-done {
    background-color: #21ba45;
    color: #fff;
}

.ui.label.status-rejected {
    background-color: #db2828;
    color: #fff;
}

/* Type Labels */
.ui.label.type-feature {
    background-color: #00b5ad;
    color: #fff;
}

.ui.label.type-bug {
    background-color: #db2828;
    color: #fff;
}

/* Roadmap */
.roadmap-list {
    min-height: 200px;
}

.roadmap-list .item {
    padding: 1em !important;
    background: #fff;
    border-radius: 4px;
    margin-bottom: 0.5em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.roadmap-list .item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.roadmap-list .item .header {
    font-weight: 600;
    margin-bottom: 0.5em;
}

.roadmap-list .item .description {
    color: #666;
    font-size: 0.9em;
}

.roadmap-list .item .meta {
    margin-top: 0.5em;
    font-size: 0.85em;
    color: #888;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 1em 1.5em;
    border-radius: 4px;
    color: #fff;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.toast.success {
    background-color: #21ba45;
}

.toast.error {
    background-color: #db2828;
}

.toast.info {
    background-color: #2185d0;
}

.toast.warning {
    background-color: #fbbd08;
    color: #333;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOut 0.3s ease forwards;
}

/* Admin Table */
#admin-table .actions-cell {
    white-space: nowrap;
}

#admin-table .ui.button {
    margin: 0.2em;
}

/* Pagination */
#pagination-container {
    margin-top: 2em;
}

/* Modal Improvements */
.ui.modal .vote-box {
    padding: 1em;
    background: #f9f9f9;
    border-radius: 8px;
}

.ui.modal .vote-box .ui.statistic {
    margin: 0;
}

/* Detail Modal */
#detail-description {
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Loading States */
.ui.items.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Dropdown Improvements */
.ui.dropdown .menu > .item > i.icon {
    margin-right: 0.5em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ui.main.container {
        margin-top: 5em;
    }

    .feedback-item {
        padding: 1em;
    }

    .vote-box {
        min-width: 60px;
    }

    .vote-count {
        font-size: 1.2em;
    }

    #toast-container {
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
}

/* Admin Stats */
#admin-stats {
    margin-bottom: 1em;
}

/* GitHub Link */
.github-link {
    color: #888;
    text-decoration: none;
}

.github-link:hover {
    color: #333;
}

/* User Menu */
#auth-menu .ui.dropdown {
    padding: 0.92857143em 1.14285714em;
}

/* Empty State */
.ui.placeholder.segment {
    min-height: 300px;
}
