/* Define CSS variables */
@property --primary-color {
    syntax: "<color>";
    inherits: false;
    initial-value: rgb(88, 192, 206);
}

@property --secondary-color {
    syntax: "<color>";
    inherits: false;
    initial-value: rgb(45, 76, 199);
}

@property --background-color {
    syntax: "<color>";
    inherits: false;
    initial-value: #f5f5f5;
}

@property --text-color {
    syntax: "<color>";
    inherits: false;
    initial-value: #333333;
}

@property --text-color-danger {
    syntax: "<color>";
    inherits: false;
    initial-value: #cc0000;
}

@property --text-color-success {
    syntax: "<color>";
    inherits: false;
    initial-value: #46b450;
}
@property --text-color-warning {
    syntax: "<color>";
    inherits: false;
    initial-value: #ffb900;
}

.candidate-details {
    border: 1px solid var(--primary-color);
    padding: 15px;
    margin: 15px 0;
    background-color: var(--background-color);
    border-radius: 5px;
    color: var(--text-color);
}

#candidate-search-block {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 600px;
}

form#search-candidate {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 1em;
    flex-wrap: nowrap;
    input[type="text"] {
        padding: 10px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 4px;
        width: 300px;
    }
    button {
        padding: 10px 15px;
        background-color: var(--primary-color);
        color: #fff;

        border: none;
        border-radius: 4px;
        cursor: pointer;
        &:hover {
            background-color: var(--secondary-color);
        }
    }
}

.candidate-edit.toolbar {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

#afm-feedback {
    margin: 10px 0;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#afm-feedback.notice-success {
    background-color: #e6ffe8;
    border-left: 4px solid var(--text-color-success);
    color: var(--text-color-success);
}

#afm-feedback.notice-warning {
    background-color: #fff8e5;
    border-left: 4px solid var(--text-color-warning);
    color: #8b6d27;
}

#afm-feedback.notice-error {
    background-color: #ffeaea;
    border-left: 4px solid var(--text-color-danger);
    color: var(--text-color-danger);
}

/* Style for AFM input field when validating */
input[name="candidate_id"]:invalid {
    border-color: var(--text-color-danger);
    box-shadow: 0 0 2px rgba(220, 50, 50, 0.3);
}

input[name="candidate_id"]:valid {
    border-color: var(--text-color-success);
    box-shadow: 0 0 2px rgba(70, 180, 80, 0.3);
}

/* Αρχική σελίδα διαχείρισης */
.eepas-dashboard {
    max-width: 1100px;
}

.eepas-dashboard .eepas-intro {
    margin: 4px 0 24px;
    font-size: 14px;
    color: #50575e;
}

.eepas-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.eepas-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-left: 4px solid var(--wp-admin-theme-color, #2271b1);
    border-radius: 4px;
}

.eepas-stat-value {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: #1d2327;
}

.eepas-stat-label {
    font-size: 13px;
    color: #646970;
}

.eepas-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.eepas-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.eepas-card h2 {
    margin: 12px 0 8px;
    font-size: 16px;
    color: #1d2327;
}

.eepas-card p {
    flex-grow: 1;
    margin: 0 0 16px;
    color: #50575e;
}

.eepas-card-icon.dashicons {
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    color: var(--wp-admin-theme-color, #2271b1);
    background: #f0f6fc;
}

.eepas-shortcode {
    padding: 6px 10px;
    font-size: 13px;
    user-select: all;
}

.eepas-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #dcdcde;
    text-align: right;
}

.eepas-footer img {
    height: auto;
    opacity: 0.7;
    vertical-align: middle;
}

.eepas-footer a:hover img,
.eepas-footer a:focus img {
    opacity: 1;
}
