/* Server Frontend Dashboard — [ilps_dashboard] shortcode styles */

.ilps-dashboard {
    max-width: 700px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ilps-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.ilps-dash-header h2 {
    margin: 0;
    font-size: 24px;
    color: #1a202c;
}

.ilps-dash-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #4a5568;
}

.ilps-dash-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.ilps-dash-section h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #2d3748;
}

.ilps-dash-desc {
    margin: 0 0 20px;
    color: #718096;
    font-size: 14px;
}

/* Form fields */
.ilps-dash-field {
    margin-bottom: 18px;
}

.ilps-dash-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2d3748;
    font-size: 14px;
}

.ilps-dash-field input[type="text"],
.ilps-dash-field input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.ilps-dash-field input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
    outline: none;
}

.ilps-dash-field small {
    display: block;
    margin-top: 4px;
    color: #a0aec0;
    font-size: 12px;
}

.ilps-dash-field small a {
    color: #4299e1;
}

/* Input wrapper with toggle */
.ilps-dash-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ilps-dash-input-wrap input {
    padding-right: 40px;
}

.ilps-dash-toggle-mask {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.ilps-dash-toggle-mask:hover {
    opacity: 1;
}

/* Buttons */
.ilps-dash-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.ilps-dash-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ilps-dash-btn-primary {
    background: #4299e1;
    color: #fff;
}

.ilps-dash-btn-primary:hover {
    background: #3182ce;
}

.ilps-dash-btn-secondary {
    background: #edf2f7;
    color: #4a5568;
}

.ilps-dash-btn-secondary:hover {
    background: #e2e8f0;
}

/* Status messages */
.ilps-dash-status {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
}

.ilps-dash-status .success {
    color: #38a169;
}

.ilps-dash-status .error {
    color: #e53e3e;
}

/* Info grid */
.ilps-dash-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ilps-dash-info-item {
    padding: 12px;
    background: #f7fafc;
    border-radius: 6px;
}

.ilps-dash-info-item label {
    display: block;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #a0aec0;
    margin-bottom: 4px;
}

.ilps-dash-info-item code {
    font-size: 13px;
    color: #2d3748;
    background: none;
    padding: 0;
}

.ilps-dash-info-item small {
    font-size: 12px;
    color: #718096;
}

.ilps-dash-info-item small a {
    color: #4299e1;
}

/* Notices */
.ilps-dash-notice {
    padding: 16px;
    border-radius: 6px;
    font-size: 14px;
}

.ilps-dash-error {
    background: #fed7d7;
    color: #9b2c2c;
    border: 1px solid #feb2b2;
}

.ilps-dash-error a {
    color: #c53030;
    font-weight: 600;
}