/* Βασική φόρμα */
.my-classifieds-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.my-classifieds-form input,
.my-classifieds-form textarea,
.my-classifieds-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px;
}

.my-classifieds-form textarea {
    min-height: 150px;
}

.my-classifieds-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.my-classifieds-form button {
    background: #0073aa;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.my-classifieds-form button:hover {
    background: #005d8c;
}

/* Λίστα Αγγελιών */
.my-classifieds-list {
    margin-top: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.my-classifieds-list h3 {
    margin-top: 0;
    color: #333;
}

.my-classifieds-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.my-classifieds-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.my-classifieds-item:last-child {
    border-bottom: none;
}

/* Καταστάσεις Αγγελιών */
.my-classifieds-item.pending {
    background-color: #fff8e5;
}

.my-classifieds-item.draft {
    background-color: #f5f5f5;
}

.classified-status.pending {
    color: #dba617;
}

.classified-status.draft {
    color: #72777c;
}

.classified-title {
    flex: 1;
    font-weight: 500;
}

.classified-title a {
    color: #0073aa;
    text-decoration: none;
}

.classified-title a:hover {
    text-decoration: underline;
}

.classified-meta {
    display: flex;
    gap: 10px;
    font-size: 14px;
}

.classified-status {
    margin: 0 15px;
    color: #666;
    font-style: italic;
}

.classified-date {
    color: #666;
}

/* Gallery Πревью */
.classified-gallery-preview {
    display: flex;
    gap: 5px;
    margin: 5px 0;
}

.classified-gallery-preview img {
    border-radius: 3px;
    border: 1px solid #ddd;
}

.gallery-count {
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Κουμπιά Διαγραφής/Επεξεργασίας */
.classified-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.classified-edit-link {
    background: #f5f5f5;
    color: #555;
    padding: 6px 12px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.classified-edit-link:hover {
    background: #e0e0e0;
    color: #222;
}

.classified-delete-link {
    color: #dc3545 !important;
    background: #f8d7da;
    padding: 6px 12px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
}

.classified-delete-link:hover {
    background: #f1b0b7;
}

/* Μηνύματα */
.my-classifieds-notice {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 3px;
    font-size: 14px;
}

.my-classifieds-notice.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.my-classifieds-notice.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Σύνδεσμος σύνδεσης */
.my-classifieds-login-link {
    text-align: center;
    margin-top: 20px;
}

.my-classifieds-login-link a {
    color: #0073aa;
    text-decoration: none;
}

.my-classifieds-login-link a:hover {
    text-decoration: underline;
}

/* Φόρμα Αναζήτησης/Φιλτραρίσματος */
.classifieds-filter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.classifieds-filter-form input,
.classifieds-filter-form select {
    flex: 1;
    min-width: 200px;
    padding: 8px;
}

.classifieds-filter-form button {
    padding: 8px 15px;
}

/* Εικόνες Preview */
.images-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.images-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.current-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.image-preview {
    position: relative;
}

.image-preview label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 5px;
    text-align: center;
    font-size: 12px;
}

.image-preview input[type="checkbox"] {
    margin-right: 5px;
}

/* Form Sections */
.form-section {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-section {
    flex: 1;
}

.description {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* Admin Approval Page */
.wrap h1 {
    margin-bottom: 20px;
}

.wp-list-table th, .wp-list-table td {
    vertical-align: middle;
}

.row-actions {
    font-size: 13px;
    margin-top: 5px;
}

.row-actions a {
    color: #50575e;
    text-decoration: none;
}

.row-actions a:hover {
    color: #135e96;
    text-decoration: underline;
}