/**
 * Admin-specific styles for Artflow Pro Portfolio Manager
 */

 body {
    overflow: scroll;
}

.artflow-admin-form .form-table th,
.artflow-admin-form .form-table td {
    padding: 4px 10px;
}

.artflow-admin-form input[type="text"],
.artflow-admin-form input[type="number"] {
    margin: 0;
    padding: 4px;
}

.artflow-admin-form input[type="checkbox"] {
    margin: 0 5px 0 0;
}

/* Modal Styles */
#admin-preview-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.8);
}

#admin-preview-modal .modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 20px 20px 80px;
    border: 1px solid #888;
    width: 80%;
    position: relative;
}

#admin-preview-modal .close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#admin-preview-modal .close-modal:hover {
    color: #000;
}

/* Override .card styling within the modal: remove padding and set margin-top */
#admin-preview-modal .card {
    padding: 0 !important;
    margin-top: 20px;
}

.dsButtonContainer {
    display: flex;
    flex-direction: row-reverse;
}

.dsButtonContainer .button {
    margin: 0 12px;
}

.dsHeader {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-end;
}

.dsH1 h1 {
    font-size: 3em;
}

.dsLogo img {
    height: 100%;
    width: auto;
}

.dsLogo {
    height: 72px;
    margin-right: 26px;
}

.dsFormDiv {
    display: flex;
    flex-direction: row;
    align-content: flex-start;
}

.dsDescription {
    padding-right: 4% !important;
}

.ds60 {
    width: 58%;
    max-width: unset;
    margin-right: 2%;
}

.ds40 {
    width: 36%;
    min-width: 320px;
    margin: 20px 2% 0;
}

button#moreInfo {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #aaa;
}

button#moreInfo:hover {
    cursor: pointer;
    background: #666;
    color: white;
}

.dsHidden {
    display: none;
    position: absolute;
    width: 33%;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    z-index: 1000;
}

ul.dsUL {
    list-style: disc;
    margin-left: 34px;
}

div#dsCloseButton {
    float: right;
    font-size: 24px;
    height: 26px;
    width: 24px;
    border: 1px solid #aaa;
    color: #aaa;
    padding: 6px 0 0 10px;
    border-radius: 50%;
}

div#dsCloseButton:hover {
    cursor: pointer;
    border-color: red;
    color: red;
}

.regular-text {
    width: 50%;
    min-width: 260px;
}

.dsWide {
    width: 100% !important;
}

input::placeholder {
    color: #aaa;
    text-transform: lowercase;
    font-style: italic;
    font-size: 0.85em;
}

p.submit {
    text-align: left;
    max-width: 100%;
    margin-top: 0px !important;
    padding: 0 !important;
}

button#preview_portfolio_btn {
    height: 30px;
}

/* Copy Button in Admin Listing - moved from styles.css if used in admin */
.copy-btn {
    margin-left: 5px;
    padding: 3px 6px;
    font-size: 12px;
    cursor: pointer;
}

/* WordPress Block Image styles for preview */
.wp-block-image {
    margin: 0;
    position: relative;
}

.wp-block-image figure {
    margin: 0;
}

.wp-block-image img.wp-post-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.card {
    margin-bottom: 20px;
}

.card h2 {
    margin-top: 10px;
}

/* Toast notification styling */
.artflow-toast {
    position: fixed;
    top: 60px;
    right: 60px;
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 9999;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.artflow-toast.show {
    opacity: 1;
}

/* Portfolio List Styles  */

tr.dsPortfolioList th {
    font-weight: 600;
}

.dsID {
    width: 3%;
    min-width: 15px;
}

.dsTitle {
    width: 10%;
    min-width: 80px;
}

.dsURL {
    width: 45%;
    min-width: 480px;
}

.dsShortcode {
    width: 22%;
    min-width: 200px;
}

.dsActions {
    text-align: right !important;
}

th.dsActions {
    padding-right: 5% !important;
}

