/* WebAdish AutoSheets Admin Styles */

.webadish-wrap {
    margin-right: 20px;
}

.webadish-wrap h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.webadish-logo {
    font-size: 32px;
}

.webadish-version {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.webadish-pro-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e0e0e0;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.webadish-pro-badge.pro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.webadish-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.webadish-main {
    flex: 1;
}

.webadish-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.webadish-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.webadish-card h2 {
    margin-top: 0;
    font-size: 18px;
    color: #1d2327;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.webadish-card h3 {
    font-size: 14px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #1d2327;
}

.webadish-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.webadish-card-header h2 {
    margin: 0;
    border: none;
    padding: 0;
}

/* Toggle Switch */
.webadish-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.webadish-toggle input {
    position: absolute;
    opacity: 0;
}

.webadish-toggle-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.3s;
    margin-right: 10px;
}

.webadish-toggle-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.webadish-toggle input:checked + .webadish-toggle-slider {
    background-color: #2271b1;
}

.webadish-toggle input:checked + .webadish-toggle-slider:before {
    transform: translateX(20px);
}

.webadish-toggle-label {
    font-weight: 500;
}

/* Integrations */
.webadish-integrations {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.webadish-integration-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.webadish-integration-item.active {
    background: #e7f5e9;
    border-color: #4caf50;
}

.webadish-integration-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    margin-right: 12px;
    font-weight: bold;
}

.webadish-integration-info {
    display: flex;
    flex-direction: column;
}

.webadish-integration-status {
    font-size: 12px;
    color: #4caf50;
}

.webadish-no-forms {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Usage */
.webadish-usage-bar {
    width: 100%;
    height: 24px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.webadish-usage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1 0%, #135e96 100%);
    transition: width 0.3s ease;
}

.webadish-usage-text {
    text-align: center;
    font-size: 14px;
    margin-bottom: 0;
}

.webadish-usage-remaining {
    color: #666;
}

.webadish-upgrade-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.webadish-upgrade-notice p {
    margin: 0 0 15px 0;
}

.webadish-upgrade-notice .button-primary {
    background: white;
    color: #764ba2;
    border: none;
}

/* Quick Links */
.webadish-quick-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.webadish-quick-links li {
    margin-bottom: 8px;
}

.webadish-quick-links a {
    text-decoration: none;
    color: #2271b1;
    font-size: 14px;
    display: block;
    padding: 8px 0;
}

.webadish-quick-links a:hover {
    color: #135e96;
}

/* Pro Features */
.webadish-upgrade-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.webadish-upgrade-card h3 {
    color: white;
    margin-top: 0;
}

.webadish-pro-features {
    list-style: none;
    margin: 15px 0;
    padding: 0;
}

.webadish-pro-features li {
    padding: 8px 0;
    font-size: 14px;
}

/* Activity Log */
.webadish-activity-log {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.webadish-log-entry {
    display: flex;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #ccc;
}

.webadish-log-success {
    background: #e7f5e9;
    border-left-color: #4caf50;
}

.webadish-log-error {
    background: #ffeaea;
    border-left-color: #dc3232;
}

.webadish-log-info {
    background: #e7f3fc;
    border-left-color: #2271b1;
}

.webadish-log-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.webadish-log-success .webadish-log-icon {
    background: #4caf50;
    color: white;
}

.webadish-log-error .webadish-log-icon {
    background: #dc3232;
    color: white;
}

.webadish-log-info .webadish-log-icon {
    background: #2271b1;
    color: white;
}

.webadish-log-content {
    flex: 1;
}

.webadish-log-message {
    font-weight: 500;
    margin-bottom: 5px;
}

.webadish-log-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 5px;
}

.webadish-log-meta-item {
    font-size: 12px;
    color: #666;
}

.webadish-log-time {
    font-size: 11px;
    color: #999;
}

.webadish-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.webadish-empty-state p {
    font-size: 14px;
}

/* Setup Guide */
.webadish-guide-step {
    position: relative;
}

.webadish-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #2271b1;
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    margin-right: 10px;
}

.webadish-guide-list {
    margin-left: 20px;
}

.webadish-guide-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.webadish-guide-list ul {
    margin-top: 8px;
}

.webadish-code-block {
    position: relative;
    background: #1e1e1e;
    border-radius: 6px;
    padding: 20px;
    margin: 15px 0;
}

.webadish-code-block pre {
    margin: 0;
    overflow-x: auto;
}

.webadish-code-block code {
    color: #d4d4d4;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.5;
}

.webadish-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.webadish-copy-btn:hover {
    background: #135e96;
}

.webadish-notice {
    padding: 15px;
    border-left: 4px solid #2271b1;
    background: #e7f3fc;
    border-radius: 4px;
    margin: 15px 0;
}

.webadish-notice-info {
    border-left-color: #2271b1;
    background: #e7f3fc;
}

.webadish-notice-success {
    border-left-color: #4caf50;
    background: #e7f5e9;
}

.webadish-notice p {
    margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .webadish-container {
        flex-direction: column;
    }
    
    .webadish-sidebar {
        width: 100%;
    }
}

/* Test Connection Result */
#test-result {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
}

#test-result.success {
    background: #e7f5e9;
    color: #4caf50;
}

#test-result.error {
    background: #ffeaea;
    color: #dc3232;
}

/* Required asterisk */
.required {
    color: #dc3232;
}
