/**
 * B19 Social Feed - Admin Styles
 */

.b19sf-admin-wrap {
    max-width: 800px;
}

.b19sf-admin-wrap h1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.b19sf-admin-wrap h1 .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.b19sf-card {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.b19sf-card h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.b19sf-connection-status {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.b19sf-connection-status.connected {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.b19sf-connection-status.disconnected {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.b19sf-connection-status .status-icon {
    font-size: 24px;
}

.b19sf-connection-status .status-text {
    flex: 1;
}

.b19sf-connection-status .username {
    font-weight: 600;
    color: #c13584;
}

/* タブスタイル */
.b19sf-tabs {
    display: flex;
    gap: 0;
    margin: 25px 0 0 0;
    border-bottom: 2px solid #ddd;
}

.b19sf-tab {
    padding: 12px 24px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    border-radius: 8px 8px 0 0;
    margin-right: 4px;
    transition: all 0.2s;
    position: relative;
    bottom: -2px;
}

.b19sf-tab:hover {
    background: #eee;
    color: #333;
}

.b19sf-tab.active {
    background: white;
    color: #c13584;
    border: 2px solid #ddd;
    border-bottom: 2px solid white;
}

.b19sf-tab-content {
    display: none;
    padding: 25px 0;
}

.b19sf-tab-content.active {
    display: block;
}

/* 簡単設定タブのスタイル */
.b19sf-simple-guide {
    max-width: 600px;
}

.b19sf-simple-guide h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 20px;
    color: #333;
}

.b19sf-simple-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.b19sf-simple-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.b19sf-simple-step .step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #f09433, #dc2743);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.b19sf-simple-step .step-content {
    flex: 1;
}

.b19sf-simple-step .step-content h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.b19sf-simple-step .step-content ol {
    margin: 10px 0 10px 20px;
    padding: 0;
}

.b19sf-simple-step .step-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* トークン入力ボックス */
.b19sf-token-input-box {
    padding: 20px;
    background: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 8px;
    margin-top: 10px;
}

.b19sf-token-input-box label {
    display: block;
    margin-bottom: 10px;
}

.b19sf-token-input-box input {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 5px;
}

/* 詳細設定タブのガイドボックス */
.b19sf-guide-box {
    background: #f0f6fc;
    border: 1px solid #c8ddf0;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.b19sf-guide-box h4 {
    margin: 0 0 10px 0;
    color: #0366d6;
    font-size: 14px;
    border-bottom: 1px solid #c8ddf0;
    padding-bottom: 5px;
}

.b19sf-guide-box h4:not(:first-child) {
    margin-top: 20px;
}

.b19sf-guide-box ol,
.b19sf-guide-box ul {
    margin: 5px 0 0 20px;
}

.b19sf-guide-box li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.b19sf-guide-box code {
    background: #e1ecf4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

.b19sf-guide-box small {
    display: block;
    margin-top: 3px;
    color: #666;
}

/* FAQ */
.b19sf-faq {
    margin-bottom: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.b19sf-faq summary {
    cursor: pointer;
    font-weight: bold;
}

.b19sf-faq p {
    margin: 10px 0 0 0;
    line-height: 1.8;
}

.b19sf-form-group {
    margin-bottom: 20px;
}

.b19sf-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.b19sf-form-group input[type="text"],
.b19sf-form-group input[type="password"],
.b19sf-form-group input[type="number"],
.b19sf-form-group select {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.b19sf-form-group .description {
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

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

.b19sf-btn-primary {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.b19sf-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.3);
}

.b19sf-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.b19sf-btn-secondary:hover {
    background: #e0e0e0;
}

.b19sf-btn-danger {
    background: #dc3545;
    color: white;
}

.b19sf-btn-danger:hover {
    background: #c82333;
}

.b19sf-shortcode-box {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    margin: 15px 0;
}

.b19sf-shortcode-box code {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 8px 15px;
    border-radius: 4px;
    display: inline-block;
}

.b19sf-step {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 3px solid #e0e0e0;
}

.b19sf-step h3 {
    margin-top: 0;
}

.b19sf-step h4 {
    margin: 0 0 10px 0;
}

.b19sf-step p {
    margin: 5px 0;
    color: #666;
}

.b19sf-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.b19sf-account-card {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.b19sf-account-card:hover {
    border-color: #c13584;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.b19sf-account-card.selected {
    border-color: #28a745;
    background: #f0fff0;
}

.b19sf-account-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.b19sf-account-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.b19sf-account-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #dc2743);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.b19sf-account-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.b19sf-account-details strong {
    font-size: 16px;
    color: #262626;
}

.b19sf-account-page {
    font-size: 13px;
    color: #8e8e8e;
}

.b19sf-account-media {
    font-size: 12px;
    color: #c13584;
}

.b19sf-loading {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
}

#b19sf-account-selector {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

#b19sf-account-selector h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.b19sf-requirements {
    margin: 20px 0;
}

.b19sf-requirements h3 {
    margin-bottom: 15px;
}
