/* Unified Board Styles */

.page-content {
    min-height: 600px;
    padding: 40px 0;
    background: #f8f9fa;
}

.notice-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Filters Section */
.notice-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 25px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.total-count {
    font-size: 14px;
    color: #4a5568;
}

.total-count strong {
    color: #000000;
    font-weight: 600;
}

.notice-search {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.notice-search input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
}

.notice-search input:focus {
    outline: none;
    border-color: #4a5568;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
}

.notice-search button {
    padding: 10px 20px;
    background: #115e59;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.notice-search button:hover {
    background: #059669;
}

/* Notice List */
.notice-list {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.notice-item {
    display: block;
    padding: 0;
    margin-bottom: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.notice-item-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.notice-item:last-child {
    margin-bottom: 0;
}

.notice-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #cbd5e0;
}

.notice-item.important {
    background: #fffbf5;
    border-color: #fed7aa;
}

/* Badge */
.notice-badge {
    width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.badge-important {
    background: #f59e0b;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.badge-category {
    display: inline-block;
    background: #115e59;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

.badge-number {
    color: #1a202c;
    opacity: 0.5;
    font-size: 14px;
    font-weight: 500;
}

/* Content */
.notice-content {
    flex: 1;
    margin: 0 20px;
    min-width: 0;
}

.notice-title {
    font-size: 15px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.5;
}

.notice-title-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: keep-all;
    line-height: 1.5;
    color: #2d3748;
}

.category-tag {
    display: inline-block;
    background: #115e59;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 6px;
    vertical-align: middle;
}

.notice-summary {
    font-size: 15px;
    color: #1a202c;
    opacity: 0.6;
    line-height: 1.5;
    margin-top: 5px;
}

.notice-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
    color: #1a202c;
    opacity: 0.5;
    font-size: 14px;
}

.notice-date {
    color: #1a202c;
    opacity: 0.5;
    font-size: 14px;
    min-width: 150px;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.notice-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.notice-new {
    display: inline-block;
    background: #ef4444;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #1a202c;
    opacity: 0.6;
}

.empty-state i {
    font-size: 48px;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #4a5568;
    font-size: 18px;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 40px 0;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: white;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.page-btn:hover {
    background: #115e59;
    color: white;
    border-color: #115e59;
}

.page-btn.active {
    background: #115e59;
    color: white;
    border-color: #115e59;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notice-container {
        padding: 20px 15px;
    }

    .notice-filters {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .total-count {
        width: 100%;
    }

    .notice-search {
        width: 100%;
        max-width: none;
    }

    .notice-item {
        flex-direction: column;
        padding: 15px;
        gap: 10px;
        align-items: flex-start;
        margin-bottom: 10px;
        border-radius: 12px;
    }

    .notice-badge {
        width: auto;
        text-align: left;
        margin-bottom: 5px;
    }

    .notice-content {
        margin: 0;
        width: 100%;
    }

    .notice-title {
        font-size: 15px;
        color: #2d3748;
    }

    .notice-summary {
        font-size: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .notice-date {
        text-align: left;
        padding-top: 10px;
        border-top: 1px solid #f0f0f0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .notice-meta {
        margin-top: 0;
    }

    .pagination {
        flex-wrap: wrap;
        margin: 30px 0;
    }

    .page-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}