/**
 * Admin main page styles - WordPress Dashboard Style
 *
 * @package BooChat_Connect
 */

/* Welcome Banner - Dark style like WordPress */
.boochat-connect-welcome-banner {
    background: #1d2327;
    color: #fff;
    padding: 20px 24px;
    margin: 0px -20px 10px 0px;
    border-radius: 0;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.boochat-connect-welcome-banner h1 {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
}

.boochat-connect-welcome-banner p {
    margin: 0;
    font-size: 14px;
    color: #fff;
}

.boochat-connect-welcome-link {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    transition: text-decoration-color 0.2s ease;
}

.boochat-connect-welcome-link:hover {
    text-decoration-color: rgba(255, 255, 255, 0.8);
}

.boochat-connect-dismiss-button {
    position: absolute;
    top: 24px;
    right: 32px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

.boochat-connect-dismiss-button:hover {
    text-decoration-color: rgba(255, 255, 255, 0.8);
}

.boochat-connect-header {
    margin-bottom: 30px;
    position: relative;
}

.boochat-connect-header .boochat-connect-status-icon {
    display: none !important;
}

.boochat-connect-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: #1d2327;
}

.boochat-connect-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Single column layout for pages without sidebar */
.boochat-connect-content:has(.boochat-connect-content-left:only-child) {
    grid-template-columns: 1fr;
}

/* Responsive: stack columns on smaller screens */
@media (max-width: 960px) {
    .boochat-connect-content {
        grid-template-columns: 1fr;
    }
}

.boochat-connect-content-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Remove hero card, use banner instead */
.boochat-connect-card-hero {
    display: none;
}

/* Status Cards - WordPress style */
.boochat-connect-status-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.boochat-connect-status-card {
    padding: 24px;
    position: relative;
    overflow: visible;
}

.boochat-connect-status-card-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.boochat-connect-status-card.has-button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.boochat-connect-status-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    border-radius: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #1d2327 !important;
    color: #fff !important;
    font-size: 24px;
    flex-shrink: 0;
    position: relative !important;
    line-height: 1;
    margin: 0 !important;
    float: none !important;
}

.boochat-connect-status-icon.success {
    background: #1d2327 !important;
}

.boochat-connect-status-icon.error {
    background: #1d2327 !important;
}

.boochat-connect-status-info h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #1d2327;
    font-weight: 600;
}

.boochat-connect-status-info p {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: #646970;
    line-height: 1.5;
}

/* Getting Started - WordPress style cards */
.boochat-connect-getting-started h2 {
    margin-top: 0;
    font-size: 20px;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 20px;
    color: #1d2327;
    font-weight: 600;
}

.boochat-connect-getting-started-list {
    display: grid;
    gap: 24px;
}

.boochat-connect-getting-started-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.boochat-connect-getting-started-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: #1d2327;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.boochat-connect-getting-started-content {
    flex: 1;
}

.boochat-connect-getting-started-content h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #1d2327;
    font-weight: 600;
}

.boochat-connect-getting-started-content h3 a {
    color: #1d2327;
    text-decoration: none;
    transition: color 0.2s ease;
}

.boochat-connect-getting-started-content h3 a:hover {
    color: #2271b1;
}

.boochat-connect-getting-started-content p {
    margin: 0;
    color: #646970;
    font-size: 14px;
    line-height: 1.6;
}

.boochat-connect-getting-started-content p a {
    color: #2271b1;
    text-decoration: underline;
}

.boochat-connect-getting-started-content p a:hover {
    color: #135e96;
}

/* API Guide */
.boochat-connect-api-guide h2 {
    margin-top: 0;
    font-size: 20px;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 20px;
    color: #1d2327;
    font-weight: 600;
}

.boochat-connect-api-guide p {
    color: #646970;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.boochat-connect-code-block {
    background: #1d2327;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.boochat-connect-code-block pre {
    margin: 0;
    color: #f0f0f1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.boochat-connect-info-box {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    padding: 15px;
    border-radius: 0;
}

.boochat-connect-info-box p {
    margin: 0;
    color: #1d2327;
    font-size: 14px;
    line-height: 1.6;
}

.boochat-connect-doc-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.3);
    transition: text-decoration-color 0.2s ease;
}

.boochat-connect-doc-link:hover {
    text-decoration-color: rgba(0, 0, 0, 0.6);
}

/* Sidebar */
.boochat-connect-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.boochat-connect-sidebar-card h2 {
    margin-top: 0;
    font-size: 18px;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 20px;
    color: #1d2327;
    font-weight: 600;
}

.boochat-connect-quick-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.boochat-connect-quick-links .button {
    text-align: center;
    padding: 12px;
    text-decoration: none;
    display: block;
}

.boochat-connect-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.boochat-connect-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.boochat-connect-features-list .icon {
    width: 24px;
    height: 24px;
    background: #1d2327;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    border-radius: 0;
}

.boochat-connect-features-list .text {
    color: #646970;
    font-size: 14px;
    line-height: 1.6;
}

.boochat-connect-support-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.boochat-connect-support-item-label {
    font-size: 12px;
    color: #646970;
    margin-bottom: 5px;
    font-weight: 500;
}

.boochat-connect-support-item-value {
    font-size: 15px;
    color: #1d2327;
    font-weight: 600;
}

.boochat-connect-support-item-link {
    color: #2271b1;
    text-decoration: underline;
    font-size: 14px;
}

.boochat-connect-license-card {
    background: #f0f6fc;
    border: 1px solid #c7d2fe;
}

.boochat-connect-license-card p {
    margin: 0;
    color: #1d2327;
    font-size: 13px;
    line-height: 1.6;
}

.boochat-connect-license-card a {
    color: #2271b1;
    text-decoration: underline;
}
