/* abruzzocibus-referral/assets/css/panel.css */

.acr-dashboard {
    max-width: 860px;
    font-family: inherit;
}

.acr-card {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 24px;
}

.acr-card h2, .acr-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.15em;
    color: #1a1a1a;
}

/* Codice display */
.acr-code-display {
    font-size: 2.4em;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #2c6e49;
    margin-bottom: 20px;
    font-family: monospace;
}

/* Stats row */
.acr-stats-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.acr-stat {
    flex: 1;
    min-width: 120px;
    text-align: center;
    background: #f6f9f7;
    border-radius: 8px;
    padding: 14px 10px;
}

.acr-stat--highlight {
    background: #2c6e49;
}

.acr-stat--highlight .acr-stat-value,
.acr-stat--highlight .acr-stat-label {
    color: #fff;
}

.acr-stat-value {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: #2c6e49;
    line-height: 1.1;
}

.acr-stat-label {
    display: block;
    font-size: 0.78em;
    color: #666;
    margin-top: 4px;
    line-height: 1.3;
}

/* Barra progresso */
.acr-progress-wrap {
    height: 10px;
    background: #e8f0eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}

.acr-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2c6e49, #52b788);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.acr-progress-label {
    font-size: 0.82em;
    color: #888;
    margin: 0;
}

/* Copy row */
.acr-copy-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.acr-link-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9em;
    color: #444;
    background: #f9f9f9;
}

/* Buttons */
.acr-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #2c6e49;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.2s;
}

.acr-btn:hover { background: #1f5235; }
.acr-btn:disabled { background: #aaa; cursor: default; }

.acr-btn--small {
    padding: 5px 12px;
    font-size: 0.82em;
}

/* Share buttons */
.acr-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.acr-share {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.88em;
    font-weight: 600;
    color: #fff;
    transition: opacity 0.2s;
}

.acr-share:hover { opacity: 0.85; color: #fff; }
.acr-share--wa   { background: #25d366; }
.acr-share--fb   { background: #1877f2; }
.acr-share--mail { background: #888; }

/* Pagine promosse */
.acr-hint {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 14px;
}

.acr-promoted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.acr-promoted-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
}

.acr-promoted-item:hover { border-color: #2c6e49; box-shadow: 0 2px 8px rgba(44,110,73,0.12); }
.acr-promoted-item--active { border-color: #2c6e49; }

.acr-promoted-item img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.acr-promoted-title {
    font-size: 0.84em;
    padding: 8px 10px 4px;
    font-weight: 600;
    color: #222;
}

.acr-promoted-item .acr-btn {
    margin: 6px auto 10px;
    display: block;
    width: calc(100% - 20px);
}

/* Tabelle */
.acr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.acr-table th {
    text-align: left;
    border-bottom: 2px solid #e2e2e2;
    padding: 8px 10px;
    color: #555;
    font-weight: 600;
}

.acr-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.acr-table tr:last-child td { border-bottom: none; }

/* Register form */
.acr-register-form {
    max-width: 440px;
}

.acr-field-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
}

.acr-field-row input {
    padding: 10px 14px;
    border: 2px solid #ccc;
    border-radius: 6px;
    font-size: 1.1em;
    font-family: monospace;
    letter-spacing: 0.1em;
    width: 180px;
}

.acr-field-row input:focus { border-color: #2c6e49; outline: none; }

#acr-code-status { font-size: 0.9em; }
.acr-ok  { color: #2c6e49; font-weight: 600; }
.acr-err { color: #c0392b; }

/* Tabs */
.acr-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #e2e2e2;
}

.acr-tab {
    padding: 10px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    color: #888;
    transition: color 0.2s, border-color 0.2s;
}

.acr-tab--active {
    color: #2c6e49;
    border-bottom-color: #2c6e49;
}

/* Form fields */
.acr-form-group {
    margin-bottom: 16px;
}

.acr-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88em;
    color: #444;
    margin-bottom: 6px;
}

.acr-form-group input[type="text"],
.acr-form-group input[type="email"],
.acr-form-group input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95em;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.acr-form-group input:focus {
    border-color: #2c6e49;
    outline: none;
}

.acr-form-msg {
    margin-top: 10px;
    font-size: 0.9em;
    min-height: 1.2em;
}

/* Notice */
.acr-notice {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.acr-notice--success { background: #d4edda; color: #155724; }
.acr-notice--error   { background: #f8d7da; color: #721c24; }
