/* Frontend Styles */
.decom-notice-wrapper-home {
    margin: 20px 0;
}

.decom-notice-item-home {
    background-color: #03646d;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 7px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.decom-notice-item-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.decom-notice-date-home {
    font-weight: bold;
    font-size: 1em;
    background-color: #ffca28;
    color: #000;
    padding: 5px 15px;
    border-radius: 5px;
    min-width: 100px;
    text-align: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: 20px;
}

.decom-notice-content-home {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.decom-notice-content-home a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.decom-notice-content-home a:hover {
    color: #D1FFD4;
}

.decom-file-type {
    background-color: rgba(255,255,255,0.2);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-left: 10px;
	display: none;
}

.decom-file-type[data-type="LINK"] {
    background-color: rgba(76, 175, 80, 0.2);
}

.decom-no-notices {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    color: #6c757d;
}

/* Archive Table Styles */
.decom-notice-archive-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.decom-notice-table-archive {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    min-width: 600px;
}

.decom-notice-table-archive th {
    background-color: #03646d;
    color: white;
    text-align: left;
    padding: 12px 15px;
    position: sticky;
    top: 0;
    font-weight: 600;
}

.decom-notice-table-archive td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

.decom-notice-table-archive tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

.decom-notice-table-archive tr:hover {
    background-color: #f1f1f1;
}

.decom-notice-table-archive .decom-file-link {
    color: #03646d;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: rgba(3, 100, 109, 0.1);
    transition: all 0.2s;
    display: inline-block;
}

.decom-notice-table-archive .decom-file-link:hover {
    background-color: rgba(3, 100, 109, 0.2);
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .decom-notice-table-archive td::before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        width: 100px;
        color: #03646d;
    }
    
    .decom-notice-table-archive td {
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    
    .decom-notice-table-archive td::before {
        position: absolute;
        left: 15px;
        top: 12px;
    }
    
    .decom-notice-table-archive tr {
        display: block;
        margin-bottom: 15px;
        border-bottom: 2px solid #03646d;
    }
    
    .decom-notice-table-archive thead {
        display: none;
    }
}

/* Admin Styles */
.post-type-decom_notice .decom-file-upload-wrapper {
    margin-bottom: 20px;
}

.post-type-decom_notice .decom-file-upload-wrapper h4 {
    margin-bottom: 5px;
}

.post-type-decom_notice .decom-url-field-wrapper {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.post-type-decom_notice .decom-url-field-wrapper h4 {
    margin-bottom: 5px;
}

.post-type-decom_notice .decom-url-field-wrapper .description {
    font-style: italic;
    color: #666;
    margin-top: 5px;
    font-size: 13px;
}

.post-type-decom_notice .decom-file-preview {
    margin-top: 10px;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    border-left: 3px solid #03646d;
}

.post-type-decom_notice .decom-file-preview a {
    text-decoration: none;
    color: #2271b1;
    font-weight: 500;
}

.post-type-decom_notice .decom-file-preview a:hover {
    text-decoration: underline;
}