/* Main Container */
.fp-deprecation-manager {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 20px 0;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

/* Header */
.fp-deprecation-header {
    background: #f0f6fc;
    border-bottom: 1px solid #d3d9e0;
    padding: 20px;
    position: relative;
}
.fp-deprecation-header h2 {
    margin: 0 0 5px 0;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fp-deprecation-header p {
    margin: 0;
    color: #646970;
}

/* Dismiss Button */
.fp-dismiss-notice {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #dcdcde;
    border: none;
    border-radius: 3px;
    color: #1d2327;
    cursor: pointer;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    transition: all 0.2s ease;
}
.fp-dismiss-notice:hover {
    background: #c3c4c7;
}

/* List Items */
.fp-deprecation-list {
    padding: 0;
    margin: 0;
}
.fp-deprecation-item {
    border-bottom: 1px solid #d3d9e0;
}
.fp-deprecation-item:last-child {
    border-bottom: none;
}

/* Summary */
.fp-deprecation-summary {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.2s;
}
.fp-deprecation-summary:hover {
    background: #f6f7f7;
}
.fp-deprecation-icon {
    width: 40px;
    height: 40px;
    background: #f0f6fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #2271b1;
}
.fp-deprecation-info {
    flex: 1;
}
.fp-deprecation-info h3 {
    margin: 0 0 5px 0;
    font-size: 15px;
}
.fp-deprecation-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #646970;
}
.fp-toggle-state span {
    display: inline;
    background-color: #FFC107;
    padding-inline: 10px;
    padding-block: 8px;
    border-radius: 3px;
    width: fit-content;
    color: white;
    font-weight: 400;
    font-size: medium;
}
.fp-show-when-open {
    display: none;
}
.fp-deprecation-toggle[aria-expanded="true"] ~ .fp-deprecation-info .fp-show-when-closed {
    display: none;
}
.fp-deprecation-toggle[aria-expanded="true"] ~ .fp-deprecation-info .fp-show-when-open {
    display: inline;
}
.fp-deprecation-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #646970;
    margin-left: auto;
    transition: transform 0.2s;
}


/* Details */
.fp-deprecation-details {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.fp-deprecation-details.active {
    padding: 0 20px 20px;
    max-height: 1000px;
}

/* Shortcode Comparison */
.fp-shortcode-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}
.fp-old-shortcode, .fp-new-shortcode {
    padding: 15px;
    border-radius: 4px;
}
.fp-old-shortcode {
    background: #fcf0f1;
    border-left: 4px solid #d63638;
}
.fp-new-shortcode {
    background: #f0f6f0;
    border-left: 4px solid #00a32a;
}
.fp-old-shortcode h4, .fp-new-shortcode h4 {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.fp-old-shortcode h4 {
    color: #d63638;
}
.fp-new-shortcode h4 {
    color: #00a32a;
}
.fp-old-shortcode code, .fp-new-shortcode code {
    display: block;
    margin: 10px 0;
    padding: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 3px;
    font-family: monospace;
}

/* Page List */
.fp-page-list {
    margin: 20px 0;
}
.fp-page-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #d3d9e0;
    border-radius: 4px;
    overflow: hidden;
}
.fp-page-list li {
    padding: 10px 15px;
    border-bottom: 1px solid #d3d9e0;
}
.fp-page-list li:last-child {
    border-bottom: none;
}
.fp-page-list a {
    text-decoration: none;
    color: #2271b1;
}
.fp-page-list a:hover {
    text-decoration: underline;
}

/* Footer */
.fp-deprecation-footer {
    padding: 15px 20px;
    background: #f6f7f7;
    border-top: 1px solid #d3d9e0;
    font-size: 13px;
    color: #646970;
    display: flex;
    align-items: center;
    gap: 5px;
}
.fp-debug-panel {
    background: #f8f9f9;
    border-left: 4px solid #72aee6;
    padding: 15px;
}

.fp-debug-panel h3 {
    margin-top: 0;
    color: #1d2327;
}

.fp-countdown {
    font-weight: bold;
    color: #d63638;
}

.fp-success-notice .fp-countdown {
    color: #00a32a;
}
.fp-deprecation-details {
    display: none;
    padding: 10px 0;
}
.fp-deprecation-details.active {
    display: block;
}
.fp-toggle-state span {
    margin-left: 0.5em;
}

/* Responsive */
@media (max-width: 782px) {
    .fp-shortcode-comparison {
        grid-template-columns: 1fr;
    }
    .fp-deprecation-header {
        padding-right: 120px;
    }
    .fp-dismiss-notice {
        top: 15px;
        right: 15px;
    }
}