/* Teleship Admin Styles */
.teleship-container {
    position: relative;
    width: calc(100% + 20px);
    min-height: 100%;
    height: calc(100vh - 15px);
    margin: 0 0 0 -20px;
    padding: 0;
    overflow: hidden;
}
.teleship-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}
.teleship-container ~ .notice,
.teleship-container ~ .updated,
.teleship-container ~ .error {
    display: none;
}

/* ===== Setup Page (Disconnected State) ===== */
.teleship-setup-page {
    max-width: 640px;
    margin: 40px auto;
}

.teleship-setup-header {
    text-align: center;
    margin-bottom: 32px;
}

.teleship-setup-logo {
    height: 36px;
    width: auto;
    margin-bottom: 16px;
}

.teleship-setup-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0 0 8px;
}

.teleship-setup-subtitle {
    color: #757575;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.teleship-setup-steps {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.teleship-step {
    display: flex;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.teleship-step:last-child {
    border-bottom: none;
}

.teleship-step__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    margin-top: 2px;
}

.teleship-step--complete .teleship-step__icon {
    background: #edfaef;
}

.teleship-step--complete .teleship-step__icon .dashicons {
    color: #46b450;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.teleship-step--active .teleship-step__icon {
    background: #7f54b3;
}

.teleship-step__number {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.teleship-step__content h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0 0 6px;
}

.teleship-step__content p {
    color: #757575;
    font-size: 13px;
    margin: 0 0 16px;
    line-height: 1.5;
}

.teleship-step--complete .teleship-step__content h3 {
    color: #757575;
}

.teleship-step--complete .teleship-step__content p {
    margin-bottom: 0;
}

.teleship-setup-connect-btn {
    background: #7f54b3 !important;
    border-color: #7f54b3 !important;
    color: #fff !important;
    font-size: 14px !important;
    padding: 8px 24px !important;
    height: auto !important;
    line-height: 1.5 !important;
    border-radius: 4px !important;
}

.teleship-setup-connect-btn:hover,
.teleship-setup-connect-btn:focus {
    background: #6b4599 !important;
    border-color: #6b4599 !important;
    color: #fff !important;
}

.teleship-setup-footer {
    text-align: center;
    margin-top: 24px;
    padding: 0 16px;
}

.teleship-setup-footer p {
    color: #999;
    font-size: 12px;
    line-height: 1.6;
    margin: 0 0 8px;
}

.teleship-setup-footer a {
    color: #7f54b3;
    text-decoration: none;
}

.teleship-setup-footer a:hover {
    text-decoration: underline;
}

/* ===== Connected Settings Page ===== */
.teleship-settings-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.teleship-settings-card--status {
    border-left: 4px solid #46b450;
}

.teleship-settings-card h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
}

.teleship-settings-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0 0 8px;
}

.teleship-settings-card p {
    color: #757575;
    font-size: 13px;
    margin: 0 0 16px;
    line-height: 1.5;
}

.teleship-settings-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.teleship-settings-table th {
    text-align: left;
    padding: 8px 16px 8px 0;
    color: #757575;
    font-weight: 400;
    font-size: 13px;
    width: 120px;
    vertical-align: middle;
}

.teleship-settings-table td {
    padding: 8px 0;
    font-size: 13px;
    color: #1e1e1e;
    vertical-align: middle;
}

.teleship-settings-table code {
    background: #f0f0f1;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.teleship-settings-actions {
    display: flex;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

/* ===== Sync Section ===== */
.teleship-sync-section {
    margin-top: 32px;
}

.teleship-sync-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0 0 16px;
}

.teleship-sync-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 782px) {
    .teleship-sync-grid {
        grid-template-columns: 1fr;
    }
}

#teleship-sync-status {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f0f0f1;
    border-radius: 6px;
}

#teleship-sync-status p {
    margin: 0;
    font-size: 13px;
}

.teleship-sync-success {
    color: #46b450;
}

.teleship-sync-success .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

.teleship-sync-error {
    color: #dc3232;
}

.teleship-sync-error .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}
