/**
 * Growify Admin Styling
 */
.growify-settings-wrap {
    max-width: 800px;
    margin: 50px auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.growify-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 30px;
}

.growify-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.growify-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.growify-header p {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.growify-form-table {
    width: 100%;
    margin-bottom: 30px;
}

.growify-form-table th {
    padding: 20px 10px 20px 0;
    vertical-align: top;
    text-align: left;
    width: 120px;
    font-weight: 600;
    color: #1a1a1a;
}

.growify-form-table td {
    padding: 15px 0;
    text-align: left;
}

.growify-input-text {
    width: 80%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.growify-input-text:focus {
    border-color: #6b46ff;
    box-shadow: 0 0 0 1px #6b46ff;
    outline: none;
}

.growify-submit-wrap {
    margin-top: 30px;
}

.growify-submit-wrap .button-primary {
    background: #6b46ff !important;
    border-color: #6b46ff !important;
    padding: 0 30px !important;
    height: 46px !important;
    line-height: 44px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    transition: opacity 0.2s !important;
}

.growify-submit-wrap .button-primary:hover {
    opacity: 0.9 !important;
}

/* Custom Success Notice */
.growify-notice {
    background: #fff;
    border-left: 4px solid #6b46ff;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
    margin: 5px 0 15px;
    padding: 1px 12px;
}

.growify-notice p {
    margin: .5em 0;
    padding: 2px;
}

.growify-settings-wrap .notice.notice-success {
    background: rgba(0, 255, 0, 0.1);
    border: none;
    padding: 1px;
    border-radius: 20px;
}

/* Switch Styles */
.growify-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    vertical-align: middle;
}

.growify-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.growify-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.growify-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.growify-switch input:checked+.growify-slider {
    background-color: #6b46ff;
}

.growify-switch input:focus+.growify-slider {
    box-shadow: 0 0 1px #6b46ff;
}

.growify-switch input:checked+.growify-slider:before {
    transform: translateX(20px);
}

.growify-switch-label {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
}

.growify-extra-info {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* Select Styles */
.growify-select {
    width: auto;
    min-width: 80px;
    display: inline-block;
    vertical-align: middle;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.2s;
    cursor: pointer;
}

.growify-select:focus {
    border-color: #6b46ff;
    box-shadow: 0 0 0 1px #6b46ff;
    outline: none;
}

/* Tabs Navigation */
.growify-tabs-nav {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 40px;
    gap: 30px;
}

.growify-tab-link {
    padding: 15px 10px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.growify-tab-link:hover {
    color: #6b46ff;
}

.growify-tab-link:focus {
    outline: none;
    box-shadow: none;
}

.growify-tab-link.active {
    color: #6b46ff;
    border-bottom-color: #6b46ff;
}

/* CAPI Settings Styles */
.growify-capi-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f9f9f9;
}

.growify-status-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fdfdfd;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.growify-status-label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
}

.growify-status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.growify-status-badge.enabled {
    background: #e6f7ed;
    color: #00a651;
}

.growify-status-badge.warning {
    background: #fff8e6;
    color: #e6a23c;
}

.growify-status-badge.critical,
.growify-status-badge.disabled {
    background: #fff0f0;
    color: #d63638;
}

.growify-config-area {
    transition: opacity 0.3s ease;
}

/* Tab Content Visibility */
.growify-tab-content {
    display: none;
    animation: growifyFadeIn 0.3s ease;
}

.growify-tab-content.active {
    display: block;
}

@keyframes growifyFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.growify-config-area.disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(1);
}

.growify-config-area .growify-form-table th {
    width: 200px;
}