/**
 * Aha Mobile Menu - Admin Styles
 */

/* Tabs Navigation */
.aha-mobile-menu-tabs {
	margin: 20px 0 20px 0;
	border-bottom: 1px solid #ccc;
}

.aha-mobile-menu-tabs .nav-tab {
	margin-right: 5px;
	margin-bottom: -1px;
}

.aha-mobile-menu-tabs .nav-tab.nav-tab-active {
	border-bottom-color: #fff;
	background: #fff;
}

/* Tab Content */
.aha-mobile-menu-tab-content {
	display: none;
	padding: 20px 0;
}

.aha-mobile-menu-tab-content.active {
	display: block;
}

.aha-mobile-menu-tab-content .form-table {
	margin-top: 0;
}

/* ==========================================================================
   Shortcode tab (documentation)
   ========================================================================== */
.aha-mobile-menu-shortcode-tab {
	max-width: 920px;
}

.aha-mobile-menu-shortcode-tab-title {
	margin: 0 0 0.35em;
	font-size: 1.3em;
}

.aha-mobile-menu-shortcode-tab-lead {
	margin: 0 0 1.25em;
	max-width: 52em;
	line-height: 1.55;
}

.aha-mobile-menu-shortcode-hero {
	background: #f0f6fb;
	border: 1px solid #c5d9ed;
	border-radius: 6px;
	padding: 20px 22px 18px;
	margin: 0 0 2em;
	box-shadow: 0 1px 2px rgba(0, 115, 170, 0.06);
}

.aha-mobile-menu-shortcode-hero-label,
.aha-mobile-menu-shortcode-params-label,
.aha-mobile-menu-shortcode-example-label {
	margin: 0 0 8px;
	font-weight: 600;
	color: #1d2327;
	font-size: 13px;
}

.aha-mobile-menu-shortcode-input {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 0 18px;
	padding: 12px 14px;
	font-size: 15px;
	font-family: Consolas, Monaco, monospace;
	line-height: 1.4;
	background: #fff;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
	cursor: text;
}

.aha-mobile-menu-shortcode-input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

.aha-mobile-menu-shortcode-param-tags {
	margin: 0 0 16px;
	line-height: 1.9;
}

.aha-mobile-menu-shortcode-param-tag {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 3px 8px;
	background: #e8e8e8;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font-size: 12px;
	font-family: Consolas, Monaco, monospace;
	color: #2c3338;
}

.aha-mobile-menu-shortcode-example-line {
	display: block;
	margin: 0 0 18px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #c5d9ed;
	border-radius: 4px;
	font-size: 13px;
	font-family: Consolas, Monaco, monospace;
	line-height: 1.45;
	word-break: break-word;
	white-space: pre-wrap;
}

.aha-mobile-menu-shortcode-callout {
	margin: 0;
	padding: 14px 16px 14px 18px;
	background: #fff;
	border: 1px solid #c5d9ed;
	border-left: 4px solid #2271b1;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.aha-mobile-menu-shortcode-callout-title {
	margin: 0 0 8px;
	font-weight: 600;
	font-size: 13px;
	color: #1d2327;
}

.aha-mobile-menu-shortcode-callout-list {
	margin: 0;
	padding-left: 1.25em;
	line-height: 1.55;
	font-size: 13px;
	color: #2c3338;
}

.aha-mobile-menu-shortcode-callout-list li {
	margin-bottom: 6px;
}

.aha-mobile-menu-shortcode-callout-list li:last-child {
	margin-bottom: 0;
}

.aha-mobile-menu-shortcode-section-title {
	margin: 1.75em 0 0.5em;
	font-size: 1.05em;
}

.aha-mobile-menu-shortcode-table {
	max-width: 100%;
	margin-top: 0.5em;
}

.aha-mobile-menu-shortcode-table .column-use-case {
	width: 35%;
}

.aha-mobile-menu-shortcode-table .column-attr {
	width: 22%;
}

.aha-mobile-menu-shortcode-table .column-values {
	width: 32%;
}

.aha-mobile-menu-shortcode-table-group {
	background: #f6f7f7;
	font-weight: 600;
	padding: 8px 10px !important;
}

.aha-mobile-menu-shortcode-after-table {
	margin: 0.75em 0 0;
}

.aha-mobile-menu-shortcode-builder-list {
	list-style: disc;
	margin: 0.5em 0 0 1.5em;
	line-height: 1.55;
}

.aha-mobile-menu-shortcode-tab code {
	background: #f0f0f1;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 13px;
}

.aha-mobile-menu-shortcode-tab code.aha-mobile-menu-shortcode-param-tag {
	background: #e8e8e8;
	padding: 3px 8px;
}

.aha-mobile-menu-shortcode-tab code.aha-mobile-menu-shortcode-example-line {
	display: block;
	padding: 10px 12px;
	background: #fff;
}

.aha-mobile-menu-media-upload {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.aha-mobile-menu-media-upload .button {
	margin-top: 0;
}

.aha-mobile-menu-media-upload img,
.aha-mobile-menu-logo-preview img {
	max-width: 150px;
	height: auto;
	border-radius: 4px;
}

.aha-mobile-menu-color-picker {
	height: 40px;
	padding: 3px;
	border-radius: 4px;
	border: 1px solid #ddd;
	cursor: pointer;
}

.aha-mobile-menu-social-row {
	margin-bottom: 15px;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #fafafa;
}

.aha-mobile-menu-social-row label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: #333;
}

.aha-mobile-menu-social-row input {
	width: 100%;
	padding: 8px;
	margin-bottom: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.aha-mobile-menu-social-row input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

#aha-mobile-menu-social-links {
	margin-bottom: 15px;
}

#aha-mobile-menu-add-social {
	margin-top: 10px;
}

.aha-mobile-menu-remove-social {
	background-color: #dc3545;
	border-color: #dc3545;
	color: white;
}

.aha-mobile-menu-remove-social:hover {
	background-color: #c82333;
	border-color: #bd2130;
}

textarea[name*="trigger_classes"] {
	width: 100%;
	font-family: 'Courier New', monospace;
	font-size: 12px;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box;
}

textarea[name*="trigger_classes"]:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

/* ==========================================================================
   Promo Banner (header)
   ========================================================================== */
.aha-mobile-menu-promo-banner {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 20px 25px;
	border-radius: 6px;
	margin: 20px 0 25px 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.aha-mobile-menu-promo-banner-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.aha-mobile-menu-promo-banner-text {
	flex: 1;
	min-width: 250px;
}

.aha-mobile-menu-promo-banner-title {
	margin: 0 0 8px 0;
	color: #fff;
	font-size: 18px;
}

.aha-mobile-menu-promo-banner-desc {
	margin: 0;
	color: rgba(255, 255, 255, 0.95);
	font-size: 14px;
	line-height: 1.5;
}

.aha-mobile-menu-promo-banner-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.aha-mobile-menu-promo-banner a {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: transform 0.2s, background 0.2s;
	white-space: nowrap;
}

.aha-mobile-menu-promo-banner a.aha-mobile-menu-btn-primary {
	background: #fff;
	color: #667eea;
}

.aha-mobile-menu-promo-banner a.aha-mobile-menu-btn-secondary {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.aha-mobile-menu-promo-banner a:hover {
	transform: translateY(-1px);
}

@media (max-width: 782px) {
	.aha-mobile-menu-promo-banner-inner {
		flex-direction: column;
		text-align: center;
	}
	.aha-mobile-menu-promo-banner-actions {
		width: 100%;
		display: flex;
		flex-wrap: nowrap;
		justify-content: flex-start;
		align-items: stretch;
		gap: 8px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		padding-bottom: 4px;
	}
	.aha-mobile-menu-promo-banner a {
		flex: 0 0 auto;
		min-width: 170px;
		text-align: center;
		scroll-snap-align: start;
	}
}

/* ==========================================================================
   Promo Footer (sidebar)
   ========================================================================== */
.aha-mobile-menu-promo-sidebar {
	margin-top: 30px;
	padding: 22px 20px 20px;
	border-top: 1px solid #ddd;
	background: #f6f7f7;
	border-radius: 0 0 4px 4px;
}

.aha-mobile-menu-promo-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 20px;
}

.aha-mobile-menu-promo-card {
	background: #f0f6fb;
	padding: 16px 16px 16px 18px;
	border-radius: 4px;
	border: 1px solid #dcdcde;
	border-left: 4px solid #2271b1;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.aha-mobile-menu-promo-card-title {
	margin: 0 0 8px 0;
	color: #2271b1;
	font-size: 14px;
	font-weight: 600;
}

.aha-mobile-menu-promo-card-desc {
	margin: 0;
	color: #50575e;
	font-size: 13px;
	line-height: 1.45;
}

@media (max-width: 960px) {
	.aha-mobile-menu-promo-cards {
		grid-template-columns: 1fr;
	}
}

.aha-mobile-menu-promo-cta {
	text-align: center;
	padding: 22px 20px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.aha-mobile-menu-promo-cta-text {
	margin: 0 0 15px 0;
	color: #333;
	font-size: 15px;
}

.aha-mobile-menu-promo-cta a {
	display: inline-block;
	background: #0073aa;
	color: #fff;
	padding: 12px 25px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.2s;
}

.aha-mobile-menu-promo-cta a:hover {
	color: #fff;
	background: #005a87;
}

/* Logo upload: hide when empty/has logo */
.aha-mobile-menu-upload-media.hidden,
.aha-mobile-menu-logo-preview-container.hidden {
	display: none !important;
}

.aha-mobile-menu-logo-preview {
	margin-bottom: 10px;
}

.aha-mobile-menu-remove-logo {
	background: #dc3232;
	color: #fff;
	border-color: #dc3232;
}

.aha-mobile-menu-remove-logo:hover {
	background: #c62828;
	border-color: #c62828;
	color: #fff;
}

/* Action buttons table */
.aha-mobile-menu-action-buttons-table {
	width: 100%;
	max-width: 600px;
}

.aha-mobile-menu-action-buttons-table td {
	padding: 5px 10px 5px 0;
}

.aha-mobile-menu-action-buttons-table td:first-child {
	width: 100px;
}

.aha-mobile-menu-action-buttons-table label {
	font-weight: 600;
}

.aha-mobile-menu-action-buttons-table input {
	width: 100%;
}

.aha-mobile-menu-action-buttons-table + .description {
	margin-top: 10px;
}

/* Social row (enhanced grid layout) */
.aha-mobile-menu-social-row-grid {
	display: grid;
	grid-template-columns: 1fr 2fr auto;
	gap: 10px;
	align-items: center;
}

.aha-mobile-menu-social-row-grid .aha-mobile-menu-social-row-label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
}

.aha-mobile-menu-social-row-grid select,
.aha-mobile-menu-social-row-grid input[type="url"] {
	width: 100%;
}

.aha-mobile-menu-social-row-grid .aha-mobile-menu-social-row-actions {
	align-self: end;
}

.aha-mobile-menu-social-row.aha-mobile-menu-social-row-styled {
	margin-bottom: 15px;
	padding: 15px;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* Color palette selector */
#aha-mobile-menu-color-palette-selector {
	width: 300px;
	padding: 5px;
}

/* Form table dividers and section titles */
.aha-mobile-menu-form-divider td {
	padding: 20px 0 10px 0;
}

.aha-mobile-menu-form-divider hr {
	border: none;
	border-top: 1px solid #ddd;
	margin: 0;
}

.aha-mobile-menu-form-section-title td {
	padding: 0 0 15px 0;
}

.aha-mobile-menu-form-section-title h3 {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

/* Trigger classes help text */
.aha-mobile-menu-trigger-help {
	color: #666;
	margin-top: 10px;
}

.aha-mobile-menu-trigger-help ul {
	color: #666;
	margin: 10px 0 0 20px;
	padding-left: 0;
}

.aha-mobile-menu-trigger-help li {
	margin-bottom: 5px;
}

/* Exclusions */
.aha-mobile-menu-textarea-wide {
	width: 100%;
	max-width: 500px;
}

.aha-mobile-menu-description-mt {
	margin-top: 10px;
}

.aha-mobile-menu-description-warning {
	margin-top: 10px;
	color: #d63638;
}

/* Excluded post types list */
.aha-mobile-menu-post-types-list {
	max-height: 300px;
	overflow-y: auto;
	border: 1px solid #ddd;
	padding: 10px;
	background: #fff;
}

.aha-mobile-menu-post-types-list label {
	display: block;
	margin-bottom: 8px;
}

.aha-mobile-menu-post-types-list code {
	margin-left: 8px;
	color: #666;
	font-size: 12px;
}

/* Uninstall tab */
.aha-mobile-menu-uninstall-tab {
	padding: 20px 0;
	max-width: 860px;
}

.aha-mobile-menu-uninstall-danger {
	border: 1px solid #c3c4c7;
	border-left-width: 4px;
	border-left-color: #d63638;
	background: #fcf0f1;
	padding: 12px 16px;
	margin: 0 0 20px;
}

.aha-mobile-menu-uninstall-danger p {
	margin: 0 0 10px;
}

.aha-mobile-menu-uninstall-danger p:last-child {
	margin-bottom: 0;
}

.aha-mobile-menu-uninstall-fieldset {
	margin: 0 0 20px;
	padding: 0;
	border: 0;
}

.aha-mobile-menu-uninstall-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	max-width: 720px;
}

.aha-mobile-menu-uninstall-list {
	list-style: disc;
	margin: 0 0 16px 1.25em;
}

.aha-mobile-menu-uninstall-list li {
	margin-bottom: 6px;
}
