/* Main Admin Wrapper */
.arikedtw-admin-wrapper {
	margin: 20px 20px 20px 0;
	background: #f0f2f5;
	padding: 25px;
	border-radius: 8px;
}

/* Tabs */
.arikedtw-admin-wrapper .nav-tab-wrapper {
	border-bottom: 2px solid #e0e4e7;
	padding: 0 10px;
}
.arikedtw-admin-wrapper .nav-tab {
	background: none;
	border: none;
	padding: 15px 10px;
	margin: 0 10px;
	font-size: 14px;
	font-weight: 500;
	color: #6d7882;
}
.arikedtw-admin-wrapper .nav-tab-active {
	border-bottom: 2px solid #6a24ea;
	color: #6a24ea;
	background: #fff;
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
}

/* Tab Content */
.arikedtw-tab-content {
    margin-top: 20px;
}

/* Header Section */
.arikedtw-admin-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #fff;
	padding: 15px 25px;
	border-radius: 8px;
	margin-bottom: 20px;
	border: 1px solid #e0e4e7;
}
.arikedtw-admin-header h3 {
	margin: 0;
	font-size: 18px;
}
.arikedtw-header-controls {
	display: flex;
	align-items: center;
	gap: 20px;
}

/* Search Box */
.arikedtw-search-box {
	position: relative;
}
.arikedtw-search-box input {
	padding: 8px 12px 8px 35px;
	border-radius: 6px;
	border: 1px solid #ddd;
	min-width: 250px;
}
.arikedtw-search-box .dashicons-search {
	position: absolute;
	top: 50%;
	left: 10px;
	transform: translateY(-50%);
	color: #aaa;
}

/* Toggle All */
.arikedtw-toggle-all-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
}

/* Main Content Layout for Docs Page */
.arikedtw-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 960px) {
    .arikedtw-content-wrapper {
        grid-template-columns: 2fr 1fr;
    }
}


/* Main Card */
.arikedtw-card {
	background: #fff;
	border: 1px solid #e0e4e7;
	border-radius: 8px;
	overflow: hidden;
    margin-bottom: 20px; /* Adds gap between cards */
}
.arikedtw-card-header {
	padding: 20px 25px;
	border-bottom: 1px solid #e0e4e7;
}
.arikedtw-card-header h2 {
	margin: 0;
	font-size: 16px;
}
.arikedtw-card ol,
.arikedtw-card .inside {
    padding: 20px 25px;
}
.arikedtw-card ol {
	padding-left: 45px;
}


/* Elements Grid */
.arikedtw-elements-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	padding: 25px;
}
.arikedtw-element-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	border: 1px solid #e0e4e7;
	border-radius: 6px;
	background: #fcfcfc;
}
.arikedtw-element-label {
	font-weight: 500;
	cursor: pointer;
}

/* New Toggle Switch Style */
.arikedtw-switch {
	position: relative;
	display: inline-block;
	width: 38px;
	height: 22px;
}
.arikedtw-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}
.arikedtw-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .4s;
}
.arikedtw-slider.round {
	border-radius: 22px;
}
.arikedtw-slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .4s;
}
.arikedtw-slider.round:before {
	border-radius: 50%;
}
input:checked + .arikedtw-slider {
	background-color: #6a24ea;
}
input:checked + .arikedtw-slider:before {
	transform: translateX(16px);
}

/* Save Button — `.wrap` is the WordPress admin page wrapper class. Adding
   it to the selector raises specificity to (0,2,0), which beats WP's own
   `.button-primary` (0,1,0) without needing !important. */
.wrap .arikedtw-save-btn {
	background: #6a24ea;
	border-color: #6a24ea;
	padding: 8px 25px;
	height: auto;
	font-size: 14px;
	border-radius: 6px;
	margin-top: 20px;
}
.wrap .arikedtw-save-btn:hover {
	background: #5b1dcc;
}

/* Sidebar Contact Card */
.arikedtw-contact-buttons {
    padding-top: 15px;
}

.arikedtw-contact-buttons .button {
    margin-right: 8px;
}