#wpwrap {
    background-color: #fffaf1;
}

.wrap {
    margin-top:0px;
    margin-left:-20px;
    margin-right:0px;
}

.wrap form > h2,
.wrap form > p,
.wrap form > ol,
.wrap form > ul {
    margin-left: 0;
}

.wrap form .form-table th {
    vertical-align: top;
    padding: 10px 10px 10px 0;
    width: 200px;
}

.notice-error {
    margin:20px;
}

/* Custom Notice Styles */
.wrap .notice {
    margin: 0;
    padding: 12px 15px;
    border-left-width: 4px;
}

.wrap .notice-error {
    background-color: #dc3232;
    color: #fff;
    border-left-color: #dc2323;
}

.wrap .notice-error p {
    color: #fff;
}

.wrap .notice-success {
    background-color: #46b450;
    color: #fff;
    border-left-color: #388a3f;
}

.wrap .notice-success p {
    color: #fff;
}

.wrap .notice-success {
    background-color: #46b450;
    color: #fff;
    border-left-color: #388a3f;
}

.wrap .notice-success p {
    color: #fff;
}

.wrap .notice-success .notice-dismiss {
    top: 10px;
}

.wrap .notice-success .notice-dismiss:before {
    color: #fff;
}

.wrap .notice-info {
    background-color: #00a0d2;
    color: #fff;
    border-left-color: #007cba;
}

.wrap .notice-info p {
    color: #fff;
}

.wrap .notice-warning {
    background-color: #ffb900;
    color: #3c434a;
    border-left-color: #e39700;
}

/* Custom styles for the jQuery UI modal */
.ui-dialog .ui-dialog-titlebar {
    background: #0073aa; /* WordPress blue */
    color: #fff;
    border: none;
}

.ui-dialog .ui-dialog-titlebar-close {
    color: #fff;
}

.ui-dialog .ui-dialog-content {
    padding: 20px;
}

.ui-dialog .ui-dialog-buttonpane {
    background: #f1f1f1;
    border-top: 1px solid #ccc;
}

.ui-dialog .ui-dialog-buttonpane .ui-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.ui-dialog .ui-dialog-buttonpane .ui-button:hover {
    background: #005177;
}

.ui-dialog .ui-dialog-content pre {
    white-space: break-spaces;
}

/* Tab styles */
.nav-tab-wrapper {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
    background: #fff;
    padding: 0 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-tab {
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 14px;
    margin-left: 0;
    margin-right: 4px;
    color: #50575e;
    transition: all 0.2s ease;
    box-shadow: none;
}

.nav-tab:hover {
    color: #24173c;
    background: rgba(36, 23, 60, 0.04);
}

.nav-tab-active {
    border-bottom: 2px solid #24173c;
    color: #24173c;
    background: transparent;
}

.nav-tab-active:hover {
    background: transparent;
}

/* Ensure proper spacing for the form */
.wrap form {
    margin-top: 20px;
    margin-left:20px;
    margin-right:20px;
}

.radle-help-icon {
    margin-left: 5px !important;
    cursor: pointer !important;
    padding-top: 5px !important;
    font-size: 11px !important;
    width: 33px;
    padding-left: 6px !important;
    color: #969180 !important;
    border-color: #969180 !important;
}

.radle-pro-notice a {
    color: #2271b1;
    text-decoration: none;
    cursor: help;
}

.radle-pro-notice a:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Help text styling for pro fields */
.radle-pro-notice + .radle-help-description {
    margin: 8px 0 0 0;
    padding: 10px;
    background: #f8f9fa;
    border-left: 4px solid #2271b1;
    color: #50575e;
    font-size: 13px;
    line-height: 1.5;
}

.radle-help-icon {
    color: #666;
    margin-left: 5px;
    cursor: help;
}

/* */

.radle-settings-sections {
    position: relative;
}

.radle-settings-section {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
}

.radle-settings-section.active {
    position: relative;
}

/* Tab Content Visibility */
.radle-settings-section {
    display: none;
}

.radle-settings-section.active {
    display: block;
}

/* Rate Limit Monitoring */
#radle-settings-monitoring .form-table th {
    display: none; /* Hide the label column for this specific section */
}

#radle-settings-monitoring .form-table td {
    display: block;
    width: 100%; /* Make the input field full width */
    padding-left: 0; /* Remove padding */
}
#radle-settings-monitoring .radle-full-width-container {
    margin-left: 0; /* Align container to the full width */
    padding: 0;
    width: 100%; /* Ensure it spans full width */
}


.radle-settings-container {
    max-width: 100%;
}

.form-table td {
    padding-left: 0;
    padding-right: 0;
}
#radle-rate-limit-chart {
    width: 100% !important;
    max-height: 70vh !important;
}

#radle-graph-actions {
    width:100%;
    text-align:right;
}

#radle-graph-actions .button {
    margin-left:10px;
    padding-top:9px;
}

#radle-graph-controls {
    display:flex;
    justify-content: space-between;
}

#radle-graph-controls .dashicons {
    padding-top:5px;
}

#radle-graph-controls .button-text {
    margin-left:7px;
}


.radle-graph {
    width: 100%;
    height: 200px;
    border: 1px solid #ccc;
    position: relative;
    margin-bottom: 10px;
}

.radle-graph-bar {
    position: absolute;
    bottom: 0;
    width: 2px;
    background-color: #0073aa;
}

.radle-graph-axis {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #ccc;
}

.radle-graph-axis-y {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1px;
    height: 100%;
    background-color: #ccc;
}

#radle-graph-controls {
    margin-top: 10px;
}

#radle-graph-controls .button {
    margin-right: 10px;
}

#radle-chart-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.spin {
    animation: spin 2s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* GitHub Profile Card */
.radle-profile-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 20px;  /* Add gap between left and right sections */
}

.radle-profile-left {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.radle-profile-right {
    flex: 2;
    min-width: 300px;
}

/* Success Message and Releases Section */
.radle-profile-container .radle-success-message {
    background-color: #2d3c27;
    border-color: #353c2f;
    color: #3c763d;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

.radle-special-section {
    border: 1px solid rgba(229, 229, 229, 0.8);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.radle-special-section h4 {
    margin-top: 0;
}

/* Avatar Styling */
.radle-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.radle-connection-status .radle-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.radle-profile-card {
    text-align: center;
}

.radle-profile-card h3 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.radle-profile-card p {
    margin: 5px 0;
    font-size: 14px;
}

.radle-connection-status {
    display: flex;
    align-items: center;
}

.radle-connection-status .radle-success-message {
    flex-grow: 1;
    color: #3c763d;
}

.radle-connection-status .radle-success-message a {
    color: #0073aa;
    text-decoration: none;
    margin-left: 10px;
}

/* Reset Authorization Button */
.radle-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    min-width: 160px;
}

.radle-reset-button img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* Reddit-specific styling */
.radle-reset-button.reddit {
    background-color: #ff6b00;
    color: white;
}

.radle-reset-button.reddit:hover {
    background-color: #FF5722;
}

/* GitHub-specific styling */
.radle-reset-button.github {
    background-color: #24292F;
    color: white;
}

.radle-reset-button.github:hover {
    background-color: #32383F;
}

/* Reset Container */
.radle-reset-container {
    border: 1px solid rgba(229, 229, 229, 0.8);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Connection Status and Profile Cards */
.radle-connection-status, 
.radle-profile-card {
    border: 1px solid rgba(229, 229, 229, 0.8);
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#radle-posts-content ul {
    margin-left:20px;
}

#radle-posts-content li {
    list-style: disc ;
}

#radle-subreddit-select {
    width:100%;
    padding-top:10px;
    padding-left:10px;
    padding-bottom:10px;
    padding-right:10px;
    max-width:100%;
}

/* Sponsor Notice Styling */
.radle-sponsor-notice {
    background: #fff8e5;
    border-left: 4px solid #dba617;
    border-radius: 0;
    padding: 12px 16px;
    margin: 0 0 20px;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 12px;
}

.radle-sponsor-notice .notice-icon {
    flex-shrink: 0;
    color: #dba617;
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.radle-sponsor-notice .notice-content {
    flex-grow: 1;
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 16px;
}

.radle-sponsor-notice p {
    margin: 0;
    flex-grow: 1;
    padding: 0;
}

.radle-sponsor-notice .sponsor-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #24173c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.radle-sponsor-notice .sponsor-link:hover {
    background: #8250df;
    color: #ffffff;
    transform: translateY(-1px);
}

.radle-sponsor-notice .sponsor-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.radle-sponsor-notice.notice-error {
    background: #fcf0f1;
    border-left-color: #d63638;
}

.radle-sponsor-notice.notice-error .notice-icon {
    color: #d63638;
}

.radle-header-container + .radle-sponsor-notice {
    margin: 20px 7px 10px;
}

/* API Error Notice */
.radle-api-notice {
    background: #fcf0f1;
    border-left-color: #d63638;
}

.radle-api-notice .notice-icon {
    color: #d63638;
}

/* Splash Screen */
#wpcontent {
    display:none;
}

#radle-splash {
    position: fixed;
    top: 0;
    left: 160px;
    right: 0;
    bottom: 0;
    background-color: #f1f1f1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#radle-splash img {
    max-width: 600px;
    height: auto;
}

#radle-splash p {
    margin-top: 0px;
    font-size: 18px;
    color: #333;
}

.radle-header-container {
    width:100%;
    height: 86px;
    background-repeat: repeat-x;
    background-size: contain;
    animation: scrollRight 200s linear infinite;
    overflow: hidden;
}


@keyframes scrollRight {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 0;
    }
}

.radle-logo {
    max-width:80px;
    margin-top: 46px;
    margin-left: 10px;
}

/* GitHub Authorization Button */
#radle-github-authorize-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    min-width: 180px;
    background-color: #24292F;
    color: white;
}

#radle-github-authorize-button:hover {
    background-color: #32383F;
}

#radle-github-authorize-button img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* Support Buttons */
.radle-support-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background: #f6f7f7;
    border-radius: 4px;
}

.radle-support-button {
    flex: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px !important;
    min-height: 60px;
    text-align: center;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.radle-support-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    transition: transform 0.15s cubic-bezier(0.2, 0, 0.13, 2);
}

.radle-support-button:hover .dashicons {
    transform: translateY(-2px);
}

.radle-issues-button {
    background: #fff !important;
    border: 1px solid #2271b1 !important;
    color: #2271b1 !important;
}

.radle-issues-button:hover {
    background: #f0f5f9 !important;
    border-color: #135e96 !important;
    color: #135e96 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.radle-customize-button {
    background: #fff !important;
    border: 1px solid #2ecc71 !important;
    color: #2ecc71 !important;
}

.radle-customize-button:hover {
    background: #f0f9f4 !important;
    border-color: #27ae60 !important;
    color: #27ae60 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Overview Tab */
.radle-overview-container {
    margin: 20px 0;
}

.radle-overview-section {
    background: #fff;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Feature Matrix */
.radle-feature-matrix {
    margin: 30px 0;
}

.radle-feature-list {
    margin: 0 0 25px;
    padding: 0;
}

.radle-feature-list li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
}

.radle-feature-list .dashicons-yes {
    color: #46b450;
}

.radle-feature-list .dashicons-lock {
    color: #dc3232;
}

/* Upgrade CTA */
.radle-upgrade-cta {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
    border-radius: 4px;
    margin-top: 30px;
}

.radle-help-icon {
    color: #666;
    margin-left: 5px;
    cursor: help;
}

/* Pro Version Styling */
.radle-pro-field {
    opacity: 0.85;
}

.radle-pro-notice {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    background: #f0f0f1;
    border-radius: 3px;
    color: #50575e;
    font-size: 12px;
}

.radle-pro-notice a {
    color: #2271b1;
    text-decoration: none;
    cursor: help;
}

.radle-pro-notice a:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Help text styling for pro fields */
.radle-pro-notice + .radle-help-description {
    margin: 8px 0 0 0;
    padding: 10px;
    background: #f8f9fa;
    border-left: 4px solid #2271b1;
    color: #50575e;
    font-size: 13px;
    line-height: 1.5;
}

.radle-upgrade-cta {
    margin-top: 30px;
    padding: 25px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    text-align: center;
}

.radle-upgrade-cta h3 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    color: #1d2327;
}

.radle-upgrade-cta p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #50575e;
}

.radle-sponsor-button {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: #6f42c1 !important;
    border-color: #6f42c1 !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.radle-sponsor-button:hover {
    background: #8250df !important;
    border-color: #8250df !important;
}

.radle-heart-icon {
    fill: currentColor;
    transition: transform 0.15s cubic-bezier(0.2, 0, 0.13, 2);
}

.radle-sponsor-button:hover .radle-heart-icon {
    transform: scale(1.2);
}

/* Review CTA */
.radle-review-cta {
    margin: 30px 0;
    padding: 25px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    text-align: center;
}

.radle-review-cta .dashicons-star-filled {
    color: #f7b733;
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin: 0 2px;
}

.radle-review-cta h3 {
    margin: 15px 0;
    font-size: 1.2em;
    color: #1d2327;
}

.radle-review-cta p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #50575e;
}

.radle-review-button {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: #ffffff !important;
    border-color: #f7b733 !important;
    color: #f7b733 !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.radle-review-button:hover {
    background: #f7b733 !important;
    color: #ffffff !important;
}

.radle-review-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    transition: transform 0.15s cubic-bezier(0.2, 0, 0.13, 2);
}

.radle-review-button:hover .dashicons {
    transform: translateY(-2px);
}

/* Common button styles and animations */
.radle-sponsor-button,
.radle-review-button,
.radle-support-button {
    position: relative;
    top: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s cubic-bezier(0.2, 0, 0.13, 2) !important;
}

.radle-sponsor-button:hover,
.radle-review-button:hover,
.radle-support-button:hover {
    top: -2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Sponsor button specific styles */
.radle-sponsor-button {
    background: #6f42c1 !important;
    border-color: #6f42c1 !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
}

.radle-sponsor-button:hover {
    background: #8250df !important;
    border-color: #8250df !important;
}

/* Review button specific styles */
.radle-review-button {
    background: #ffffff !important;
    border-color: #f7b733 !important;
    color: #f7b733 !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
}

.radle-review-button:hover {
    background: #f7b733 !important;
    color: #ffffff !important;
}

/* Support buttons specific styles */
.radle-issues-button {
    background: #fff !important;
    border: 1px solid #2271b1 !important;
    color: #2271b1 !important;
}

.radle-issues-button:hover {
    background: #f0f5f9 !important;
    border-color: #135e96 !important;
    color: #135e96 !important;
}

.radle-customize-button {
    background: #fff !important;
    border: 1px solid #2ecc71 !important;
    color: #2ecc71 !important;
}

.radle-customize-button:hover {
    background: #f0f9f4 !important;
    border-color: #27ae60 !important;
    color: #27ae60 !important;
}

/* Icon animations */
.radle-heart-icon,
.radle-review-button .dashicons,
.radle-support-button .dashicons {
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.13, 2);
}

.radle-sponsor-button:hover .radle-heart-icon {
    transform: scale(1.2);
}

.radle-review-button:hover .dashicons,
.radle-support-button:hover .dashicons {
    transform: translateY(-2px);
}
