/**
 * Styles pour les notifications de mise à jour de Tricot
 */

/* Import des styles principaux */
@import url('main.css');

/* Modal de mise à jour */
.tricot-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.tricot-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 500px;
    max-width: 90%;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tricot-modal-content h3 {
    margin: 0;
    color: var(--primary-color);
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 18px;
    font-weight: 600;
}

.tricot-modal-body {
    padding: 20px;
    font-size: 14px;
    color: var(--text-color);
}

.tricot-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.tricot-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.tricot-modal-close:hover,
.tricot-modal-close:focus {
    color: var(--primary-hover);
    text-decoration: none;
}

/* Styles pour les messages de mise à jour */
.update-available, .no-update {
    padding: 15px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.update-available .dashicons,
.no-update .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
}

.update-available {
    background-color: #fef8e8;
}

.update-available .dashicons {
    color: #f57c00;
}

.no-update {
    background-color: #e8f5e9;
}

.no-update .dashicons {
    color: #388e3c;
}

/* Bouton de vérification des mises à jour - REMPLACÉ pour harmonisation */
#tricot-check-updates.tricot-button {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

#tricot-check-updates.tricot-button.primary {
    background-color: var(--primary-color);
    color: white;
}

#tricot-check-updates.tricot-button.primary:hover {
    background-color: var(--primary-hover);
}

/* Styles pour la page de licence originaux */
.tricot-license-page {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    margin-top: 20px;
}

.tricot-license-page h2 {
    color: var(--primary-color);
    margin-top: 0;
    border-bottom: 2px solid var(--light-primary);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.tricot-license-page .form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
    vertical-align: top;
    text-align: left;
    font-weight: 600;
}

.tricot-license-page .regular-text {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.tricot-license-page .description {
    margin-top: 8px;
    color: var(--text-light);
    font-style: italic;
}

/* Submit section ajusté pour les nouveaux boutons */
.tricot-license-page .submit {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.tricot-license-page .submit .tricot-button {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.tricot-license-page .submit .tricot-button.primary {
    background-color: var(--primary-color);
    color: white;
}

.tricot-license-page .submit .tricot-button.primary:hover {
    background-color: var(--primary-hover);
}

.tricot-license-page .submit .tricot-button:not(.primary) {
    background-color: #f0f0f1;
    color: #2c3338;
    border: 1px solid #c3c4c7;
}

.tricot-license-page .submit .tricot-button:not(.primary):hover {
    background-color: #f6f7f7;
}

/* Style pour la page de licence mise à jour */
.tricot-license-page .update-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.tricot-license-page .update-section h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 16px;
}

.current-version-info {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.current-version {
    font-weight: 600;
}

/* Statut de licence */
.license-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.license-status.valid {
    background-color: #e8f5e9;
    color: #388e3c;
}

.license-status.inactive {
    background-color: #fff3e0;
    color: #f57c00;
}

.license-status.invalid {
    background-color: #ffebee;
    color: #d32f2f;
}

.license-status.expired {
    background-color: #ffebee;
    color: #f57c00;
}

/* Infos de licence */
.license-info {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: 4px;
}

.license-info h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 15px;
}

.license-info-item {
    margin-bottom: 10px;
    font-size: 14px;
}

.license-info-label {
    font-weight: 600;
    margin-right: 10px;
}

/* Notification dans la page des plugins */
.plugins-php .tricot-update-notification {
    padding: 10px;
    margin: 10px 0;
    background-color: #fef8e8;
    border-left: 4px solid #f57c00;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.column-updateinfo {
    padding: 8px;
}

.plugins-php .tricot-column-update {
    color: #f57c00;
}

.plugins-php .tricot-column-uptodate {
    color: #388e3c;
}