/**
 * TextMe SMS Admin Styles - Modern Tabbed Interface
 *
 * @package TextMe_SMS
 * @since 2.0.0
 */

.textme-sms-settings {
	max-width: 100%;
	margin: 20px 20px 0 0;
}

.textme-sms-header {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e1e5e9;
	background: linear-gradient(135deg, #53dec0 0%, #3bc4a8 100%);
	color: white;
	padding: 30px;
	border-radius: 8px;
	position: relative;
	z-index: 1;
}

.textme-sms-header-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	gap: 30px;
}

.textme-sms-header-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
    width: 100%;
}

.textme-sms-logo img {
	height: 50px;
	width: auto;
	filter: brightness(0) invert(1);
}



.textme-sms-header-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	background: rgba(255, 255, 255, 1);
	padding: 15px 20px;
	border-radius: 8px;
	backdrop-filter: blur(10px);
	margin-bottom: 20px;
}

.balance-items{
	display: flex;
	align-items: center;
	gap: 20px;
}

.textme-sms-header-text{
	text-align: center;
	margin-bottom: 39px;
}

.textme-sms-header-status .textme-sms-status-item {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	border-radius: 0;
}

.textme-sms-status-label {
	font-size: 12px;
	font-weight: 500;
	color: #333;
}

.textme-sms-header-actions {
	display: flex;
	gap: 10px;
}

.textme-sms-header-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	color: #53dec0;
	border: 2px solid #53dec0;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(83, 222, 192, 0.3);
	text-transform: uppercase;
	letter-spacing: 0.8px;
	position: relative;
	overflow: hidden;
}

.textme-sms-header-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 1;
	vertical-align: middle;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.textme-sms-header-btn.loading .dashicons {
	animation: spin 1s linear infinite;
}

.textme-sms-header-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.textme-sms-title {
	margin: 0 0 10px 0;
	font-weight: 700;
	color: #000;
	font-size: 30px !important;
    padding-bottom: 10px !important;
}

.textme-sms-title .dashicons {
	font-size: 36px;
	color: white;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.textme-sms-mode-indicator {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.textme-sms-mode-indicator.test {
	background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
	color: #856404;
}

.textme-sms-mode-indicator.production {
	background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
	color: white;
}

/* International Balance Displays */
.textme-sms-international-balance {
	background-color: #f8f9fa;
	border-left: 3px solid #007cba;
	padding-left: 8px;
	margin-top: 4px;
}

.textme-sms-international-balance .textme-sms-status-label {
	color: #007cba;
	font-weight: 600;
}

.textme-sms-header-status .textme-sms-international-balance {
	background-color: transparent;
	border-left: none;
	padding-left: 0;
	margin-top: 0;
}

.textme-sms-header-status .textme-sms-international-balance .textme-sms-status-label {
	color: #666;
}

/* Balance Monitor Styles */
.textme-sms-monitor-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.textme-sms-monitor-status.active {
	background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
	color: white;
}

.textme-sms-monitor-status.inactive {
	background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
	color: white;
}

.textme-sms-monitor-actions {
	margin-top: 15px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.textme-sms-description {
	margin: 0;
	font-size: 15px;
	color: #666;
	font-weight: 300;
}

/* Modern Tabs Container */
.textme-sms-tabs-container {
	display: flex;
	gap: 0;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	min-height: 600px;
}

/* Tab Navigation */
.textme-sms-tabs-nav {
	width: 250px;
	background: #f8f9fa;
	border-right: 1px solid #e1e5e9;
	padding: 20px 0;
	flex-shrink: 0;
}

.textme-sms-tab-button {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 15px 20px;
	border: none;
	background: transparent;
	color: #6c757d;
	font-size: 14px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition: all 0.3s ease;
	border-left: 3px solid transparent;
	position: relative;
}

.textme-sms-tab-button:hover {
	background: #e9ecef;
	color: #495057;
}

.textme-sms-tab-button.active {
	background: #fff;
	color: #53dec0;
	border-left-color: #53dec0;
	box-shadow: 0 2px 8px rgba(83,222,192,0.1);
}

.textme-sms-tab-button .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.textme-sms-tab-button .textme-sms-tab-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
}

.textme-sms-tab-button .textme-sms-tab-icon img {
	width: 18px;
	height: 18px;
	object-fit: contain;
}

/* Tab Content */
.textme-sms-tabs-content {
	flex: 1;
	padding: 30px;
	background: #fff;
}

/* Test SMS Container */
.textme-sms-test-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	align-items: start;
}

.textme-sms-test-form-section {
	min-width: 0;
}

.textme-sms-test-response-section {
	min-width: 0;
}

/* Response Area */
.textme-sms-response-area {
	min-height: 200px;
	max-height: 400px;
	overflow-y: auto;
	border: 1px solid #e1e5e9;
	border-radius: 6px;
	padding: 15px;
	background: #f8f9fa;
}

.textme-sms-response-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 150px;
	color: #6c757d;
	text-align: center;
}

.textme-sms-response-placeholder .dashicons {
	font-size: 32px;
	margin-bottom: 10px;
	opacity: 0.5;
}

.textme-sms-response-placeholder p {
	margin: 0;
	font-style: italic;
}

/* Response Content */
.textme-sms-response-content {
	animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.textme-sms-response-item {
	margin-bottom: 15px;
	padding: 12px;
	border-radius: 6px;
	border-left: 4px solid;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.textme-sms-response-item.textme-notice-success {
	border-left-color: #28a745;
	background: #f8fff9;
}

.textme-sms-response-item.textme-notice-error {
	border-left-color: #dc3545;
	background: #fff8f8;
}

.textme-sms-response-item.textme-notice-warning {
	border-left-color: #ffc107;
	background: #fffdf8;
}

.textme-sms-response-item.textme-notice-info {
	border-left-color: #53dec0;
	background: #f8fffe;
}

.textme-sms-response-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-weight: 600;
}

.textme-sms-response-header .dashicons {
	font-size: 16px;
}

.textme-sms-response-message {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
}

.textme-sms-response-details {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #e1e5e9;
	font-size: 13px;
	color: #6c757d;
}

.textme-sms-response-details strong {
	color: #495057;
}

.textme-sms-tab-panel {
	display: none;
	animation: fadeIn 0.3s ease-in-out;
}

.textme-sms-tab-panel.active {
	display: block;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Modern Cards */
.textme-sms-card {
	background: #fff;
	border: 1px solid #e1e5e9;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.04);
	margin-bottom: 25px;
	transition: all 0.3s ease;
}

.textme-sms-card:hover {
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.textme-sms-card-header {
	padding: 25px 30px 20px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-bottom: 1px solid #e1e5e9;
	border-radius: 10px 10px 0 0;
}

.textme-sms-card-header h2,
.textme-sms-card-header h3 {
	margin: 0 0 8px 0;
	font-size: 20px;
	font-weight: 600;
	color: #212529;
}

.textme-sms-card-header p {
	margin: 0;
	color: #6c757d;
	font-size: 14px;
	line-height: 1.5;
}

.textme-sms-card-body {
	padding: 30px;
}

/* Status Grid */
.textme-sms-status-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 25px;
}

.textme-sms-status-grid .textme-sms-card:last-child {
	grid-column: 1 / -1;
}

/* Form Styling */
.textme-sms-form .form-table {
	margin: 0;
}

.textme-sms-form .form-table th {
	width: 180px;
	padding: 15px 15px 15px 0;
	font-weight: 600;
	color: #212529;
	font-size: 14px;
}

.textme-sms-form .form-table td {
	padding: 15px 0;
}

.textme-sms-form input[type="text"],
.textme-sms-form input[type="password"] {
	width: 100%;
	max-width: 400px;
	padding: 12px 16px;
	border: 2px solid #e1e5e9;
	border-radius: 8px;
	font-size: 14px;
	transition: all 0.3s ease;
	background: #fff;
}

.textme-sms-form input[type="text"]:focus,
.textme-sms-form input[type="password"]:focus {
	border-color: #53dec0;
	box-shadow: 0 0 0 3px rgba(83,222,192,0.1);
	outline: none;
}

.textme-sms-form .description {
	margin: 8px 0 0 0;
	font-size: 13px;
	color: #6c757d;
	font-style: normal;
	line-height: 1.4;
}

.textme-sms-form-actions {
	display: flex;
	gap: 15px;
	align-items: center;
	margin-top: 30px;
	padding-top: 25px;
	border-top: 1px solid #e1e5e9;
}

.textme-sms-form-actions .button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 500;
	transition: all 0.3s ease;
	border: none;
	text-decoration: none;
}

.textme-sms-form-actions .button-primary {
	background: linear-gradient(135deg, #53dec0 0%, #3bc4a8 100%);
	color: white;
	box-shadow: 0 2px 8px rgba(83,222,192,0.3);
}

.textme-sms-form-actions .button-primary:hover {
	box-shadow: 0 4px 16px rgba(83,222,192,0.4);
}

.textme-sms-form-actions .button-secondary {
	background: #f8f9fa;
	color: #495057;
	border: 2px solid #e1e5e9;
}

.textme-sms-form-actions .button-secondary:hover {
	background: #e9ecef;
	border-color: #ced4da;
}

/* Status Items */
.textme-sms-status-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 8px;
	border-left: 4px solid #53dec0;
	color: #333;
}

.textme-sms-status-item:last-child {
	margin-bottom: 0;
}

.textme-sms-status-item strong {
	color: #212529;
	font-weight: 600;
	font-size: 14px;
}

.textme-sms-status {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
}

.textme-sms-status.connected {
	color: #28a745;
}

.textme-sms-status.not-connected {
	color: #dc3545;
}

/* API Mode Indicators */
.textme-sms-api-mode {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.textme-sms-api-mode.test {
	background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
	color: #856404;
}

.textme-sms-api-mode.production {
	background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
	color: white;
}

.textme-sms-api-url {
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
	font-size: 12px;
	color: #6c757d;
	background: #f8f9fa;
	padding: 4px 8px;
	border-radius: 4px;
	word-break: break-all;
}

/* Test SMS Form */
.textme-sms-test-form .form-table th {
	width: 150px;
	padding: 15px 15px 15px 0;
	font-weight: 600;
	color: #212529;
}

.textme-sms-test-form .form-table td {
	padding: 15px 0;
}

.textme-sms-test-form input[type="text"],
.textme-sms-test-form textarea {
	width: 100%;
	max-width: 500px;
	padding: 12px 16px;
	border: 2px solid #e1e5e9;
	border-radius: 8px;
	font-size: 14px;
	transition: all 0.3s ease;
	background: #fff;
}

.textme-sms-test-form input[type="text"]:focus,
.textme-sms-test-form textarea:focus {
	border-color: #53dec0;
	box-shadow: 0 0 0 3px rgba(83,222,192,0.1);
	outline: none;
}

.textme-sms-test-form textarea {
	resize: vertical;
	min-height: 100px;
	font-family: inherit;
}

/* Action Buttons */
.textme-sms-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 24px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s ease;
	border: none;
	text-decoration: none;
	width: 100%;
	margin-bottom: 12px;
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	color: #53dec0;
	border: 2px solid #53dec0;
	box-shadow: 0 2px 8px rgba(83, 222, 192, 0.2);
	position: relative;
	overflow: hidden;
}

.textme-sms-action-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(83, 222, 192, 0.1), transparent);
	transition: left 0.5s ease;
}

.textme-sms-action-btn:hover::before {
	left: 100%;
}

.textme-sms-action-btn:hover {
	background: linear-gradient(135deg, #53dec0 0%, #3bc4a8 100%);
	border-color: #53dec0;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(83, 222, 192, 0.3);
}

.textme-sms-action-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(83, 222, 192, 0.2);
}

.textme-sms-action-btn .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 1;
	vertical-align: middle;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
}

.textme-sms-action-btn:hover .dashicons {
	transform: scale(1.1);
}

.textme-sms-action-btn.loading .dashicons {
	animation: spin 1s linear infinite;
}

/* Test SMS Results */
.textme-sms-results-details {
	margin-top: 25px;
	padding: 20px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border: 1px solid #e1e5e9;
	border-radius: 8px;
}

.textme-sms-results-details h4 {
	margin: 0 0 15px 0;
	font-size: 16px;
	font-weight: 600;
	color: #212529;
}

.textme-sms-results-details ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.textme-sms-results-details li {
	padding: 10px 0;
	border-bottom: 1px solid #e1e5e9;
	font-size: 13px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.textme-sms-results-details li:last-child {
	border-bottom: none;
}

.textme-sms-results-details li.success {
	color: #28a745;
}

.textme-sms-results-details li.error {
	color: #dc3545;
}

.textme-sms-results-details li strong {
	font-weight: 600;
}

/* Loading States */
.textme-sms-loading {
	opacity: 0.7;
	pointer-events: none;
}

.textme-sms-loading .dashicons {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* Custom Notices */
.textme-sms-notice {
	padding: 15px 20px;
	margin: 20px 0;
	border-radius: 8px;
	border-left: 4px solid;
	font-weight: 500;
}

.textme-sms-notice.textme-notice-success {
	background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
	border-left-color: #28a745;
	color: #155724;
}

.textme-sms-notice.textme-notice-error {
	background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
	border-left-color: #dc3545;
	color: #721c24;
}

.textme-sms-notice.textme-notice-warning {
	background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
	border-left-color: #ffc107;
	color: #856404;
}

.textme-sms-notice.textme-notice-info {
	background: linear-gradient(135deg, #cce7ff 0%, #b3d9ff 100%);
	border-left-color: #53dec0;
	color: #004085;
}

/* Toggle Switch */
.textme-sms-toggle-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.textme-sms-toggle {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 24px;
}

.textme-sms-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.textme-sms-toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: 0.3s;
	border-radius: 24px;
}

.textme-sms-toggle-slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: 0.3s;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.textme-sms-toggle input:checked + .textme-sms-toggle-slider {
	background-color: #53dec0;
}

.textme-sms-toggle input:checked + .textme-sms-toggle-slider:before {
	transform: translateX(26px);
}

.textme-sms-toggle-label {
	font-weight: 500;
	color: #212529;
	font-size: 14px;
}

/* Side-by-side Field Layout */
.textme-sms-field-row {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 25px;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.textme-sms-field-row .textme-sms-toggle-wrapper {
	margin-bottom: 0;
	flex-shrink: 0;
}

.textme-sms-field-content {
	flex: 1;
	min-width: 0;
}

.textme-sms-field-title {
	display: block;
	font-weight: 600;
	color: #333;
	margin-bottom: 10px;
	font-size: 14px;
}

.textme-sms-field-content .large-text {
	width: 100%;
	resize: vertical;
}

.textme-sms-field-content .description {
	margin-top: 8px;
	margin-bottom: 0;
	font-size: 13px;
	color: #666;
}

/* Group Headers */
.textme-sms-group-header {
	margin: 40px 0 25px 0;
	padding: 0 0 20px 0;
	position: relative;
}

.textme-sms-group-header:first-child {
	margin-top: 20px;
}

.textme-sms-group-title {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
}

.textme-sms-group-description {
	margin: 8px 0 0 0;
	font-size: 14px;
	color: #6c757d;
	line-height: 1.5;
}

/* Horizontal line after each group */
.textme-sms-group-header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background-color: #53dec0;
}

/* Logs table – horizontal scroll on medium screens */
.textme-logs-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.textme-logs-table {
	min-width: 640px;
}

/* Responsive Design */
@media (max-width: 1200px) {
	.textme-sms-tabs-container {
		flex-direction: column;
	}
	
	.textme-sms-tabs-nav {
		width: 100%;
		display: flex;
		padding: 0;
		background: #f8f9fa;
		border-right: none;
		border-bottom: 1px solid #e1e5e9;
	}
	
	.textme-sms-tab-button {
		flex: 1;
		justify-content: center;
		border-left: none;
		border-bottom: 3px solid transparent;
	}
	
	.textme-sms-tab-button.active {
		border-left: none;
		border-bottom-color: #53dec0;
		box-shadow: none;
	}
	
	.textme-sms-tabs-content {
		padding: 20px;
	}
	
	.textme-sms-test-container {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

@media (max-width: 782px) {

	/* Logs table – stacked card layout */
	.textme-logs-table-wrap {
		overflow-x: visible;
	}

	.textme-logs-table,
	.textme-logs-table thead,
	.textme-logs-table tbody,
	.textme-logs-table tr,
	.textme-logs-table th,
	.textme-logs-table td {
		display: block;
		min-width: 0;
	}

	.textme-logs-table thead {
		display: none;
	}

	.textme-logs-table tbody tr {
		border: 1px solid #ddd;
		border-radius: 4px;
		margin-bottom: 12px;
		padding: 4px 0;
		background: #fff;
	}

	.textme-logs-table td {
		display: flex;
		align-items: baseline;
		gap: 8px;
		padding: 6px 12px;
		border-bottom: 1px solid #f0f0f0;
		white-space: normal !important;
		max-width: none !important;
		overflow: visible !important;
		text-overflow: clip !important;
	}

	.textme-logs-table td:last-child {
		border-bottom: none;
	}

	.textme-logs-table td::before {
		content: attr(data-label);
		font-weight: 600;
		font-size: 11px;
		color: #666;
		min-width: 80px;
		flex-shrink: 0;
	}

	.textme-sms-settings {
		margin: 10px 0 0;
		overflow: hidden;
	}

	.textme-sms-tabs-container {
		max-width: 100%;
		overflow: hidden;
	}

	.textme-sms-header {
		padding: 20px;
	}

	.textme-sms-header-content {
		flex-direction: column;
		gap: 20px;
		align-items: stretch;
	}

	.textme-sms-header-meta {
		flex-direction: column;
		text-align: center;
		gap: 15px;
	}

	.textme-sms-header-status {
		flex-direction: column;
		gap: 15px;
		text-align: center;
	}

	.textme-sms-header-actions {
		justify-content: center;
	}

	.textme-sms-title {
		font-size: 24px !important;
	}

	/* Tab nav – wrap into compact rows */
	.textme-sms-tabs-nav {
		flex-wrap: wrap;
		padding: 4px 8px;
		overflow: hidden;
	}

	.textme-sms-tab-button {
		flex: 0 0 auto;
		width: auto;
		padding: 8px 10px;
		font-size: 12px;
		gap: 6px;
		border-left: none;
		border-bottom: 3px solid transparent;
		justify-content: center;
		flex-basis: 50%;
	}

	.textme-sms-tab-button .dashicons,
	.textme-sms-tab-button .textme-sms-tab-icon {
		width: 14px;
		height: 14px;
		font-size: 14px;
	}

	.textme-sms-tab-button .textme-sms-tab-icon img {
		width: 14px;
		height: 14px;
	}

	.textme-sms-tab-button.active {
		border-left: none;
		border-bottom-color: #53dec0;
	}

	/* Content area */
	.textme-sms-tabs-content {
		padding: 12px;
	}

	.textme-sms-card-body {
		padding: 15px;
	}

	.textme-sms-card-header {
		padding: 15px;
	}

	.textme-sms-card-header h2,
	.textme-sms-card-header h3 {
		font-size: 16px;
	}

	/* Status grid */
	.textme-sms-status-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	/* Forms */
	.textme-sms-form .form-table th {
		width: auto;
		display: block;
		padding: 10px 0 2px;
	}

	.textme-sms-form .form-table td {
		display: block;
		padding: 2px 0 10px;
	}

	.textme-sms-form input[type="text"],
	.textme-sms-form input[type="password"] {
		max-width: 100%;
		font-size: 16px; /* prevent iOS zoom */
	}

	.textme-sms-test-form input[type="text"],
	.textme-sms-test-form textarea {
		max-width: 100%;
		font-size: 16px;
	}

	.textme-sms-form-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.textme-sms-form-actions .button {
		justify-content: center;
	}

	/* Field rows – stack vertically */
	.textme-sms-field-row {
		flex-direction: column;
		gap: 10px;
		padding: 12px;
	}

	/* Balance items */
	.balance-items {
		flex-direction: column;
		gap: 10px;
	}

	/* Header status bar */
	.textme-sms-header-status {
		padding: 12px;
	}

	/* Group headers */
	.textme-sms-group-header {
		margin: 25px 0 15px;
	}

	.textme-sms-group-title {
		font-size: 16px;
	}
	.textme-sms-toggle-wrapper {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Tag dropdown above each textarea */
.textme-sms-tag-dropdown-wrap {
	margin-bottom: 6px;
}

.textme-sms-tag-dropdown {
	min-width: 180px;
	padding: 4px 8px;
	font-size: 13px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: #fff;
	color: #1d2327;
	cursor: pointer;
}

.textme-sms-tag-dropdown:focus {
	border-color: #0073aa;
	box-shadow: 0 0 0 1px #0073aa;
	outline: none;
}

/* Shortcode Examples */
.textme-sms-shortcode-examples {
    margin-top: 20px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    background: #f9f9f9;
    padding: 20px;
}

/* Shortcode Info Section */
.textme-sms-shortcode-info-section {
    margin-top: 10px;
}

.textme-sms-shortcode-info-section .textme-sms-shortcode-examples {
    margin-top: 15px;
}

.textme-sms-shortcode-attributes {
    margin-top: 20px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.textme-sms-shortcode-attributes h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.textme-sms-shortcode-attributes ul {
    margin: 0;
    padding-left: 20px;
}

.textme-sms-shortcode-attributes li {
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
}

.textme-sms-shortcode-attributes li strong {
    color: #333;
    font-family: monospace;
    background: #e8e8e8;
    padding: 2px 4px;
    border-radius: 2px;
}

.textme-sms-shortcode-example {
    margin-bottom: 25px;
}

.textme-sms-shortcode-example:last-child {
    margin-bottom: 0;
}

.textme-sms-shortcode-example h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.textme-sms-shortcode-example h5 {
    margin: 15px 0 8px 0;
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

.textme-sms-shortcode-example code {
    display: inline-block;
    background: #2c3e50;
    color: #ecf0f1;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    margin: 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.textme-sms-shortcode-example code:hover {
    background: #34495e;
}

.textme-sms-shortcode-example .description {
    margin: 8px 0 0 0;
    font-style: italic;
    color: #666;
    font-size: 12px;
}

/* Copy to clipboard functionality */
.textme-sms-shortcode-copy-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.textme-sms-shortcode-copyable {
    flex: 1;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.textme-sms-shortcode-copyable:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.textme-sms-copy-btn {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.textme-sms-copy-btn:hover {
    background: #005a87;
}

.textme-sms-copy-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px #0073aa40;
}

.textme-sms-copy-btn .dashicons {
    font-size: 14px;
    line-height: 1.5;
}

.textme-sms-copy-btn.copied {
    background: #46b450;
}

.textme-sms-copy-btn.copied:hover {
    background: #46b450;
}

/* Required field indicator */
.required-indicator {
    color: #d63638;
    font-weight: bold;
}

/* Required fields with red border when empty */
input[required]:invalid {
    border-color: #d63638;
}

input[required]:valid {
    border-color: #46b450;
}