/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */


 /* vertical settings */

 .wptgcl-settings-container {
	display: flex;
	gap: 20px;
}

.wptgcl-vertical-tabs {
	display: flex;
	flex-direction: column;
	width: 200px;
	background: #f9f9f9;
	border-right: 1px solid #ddd;
	padding: 10px 0;
}

.wptgcl-vertical-tabs .wptgcl-tab {
	padding: 10px 15px;
	text-decoration: none;
	color: #555;
	display: block;
	border-left: 3px solid transparent;
	transition: all 0.2s ease-in-out;
	height: 50px;
	font-size: medium;
	margin-top: 10px;
    margin-bottom: 10px;
}

.wptgcl-vertical-tabs .wptgcl-tab:hover {
	background: #f1f1f1;
	color: #000;
}

.wptgcl-vertical-tabs .nav-tab-active {
	background: #fff;
	color: #000;
	font-weight: 600;
	border-left: 3px solid #007cba; /* WP blue */
	height: 50px;
}

.wptgcl-tab-content {
	flex: 1;
	padding: 20px;
	background: #fff;
	border: 1px solid #ddd;
}

.wptgcl-menu-heading {
	flex: 1;
	padding: 20px;
	background: #fff;
    color: #000;
	border: 1px solid #ddd;
    font-size: larger;
    text-align: center;
    border-radius: 20px;
    font-weight: 500;
}


/* 
 */

.no-gift-cards {
    background: #e6e6f3;       /* light red/pink */
    color: #341bb5;           /* dark red text */
    border: 1px solid #4e65d5;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin: 12px 0;
    text-align: center;       /* centers the text */
}



/* for the shortcodes... */

.giftcard-shortcodes-table table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  font-size: 14px;
  background: #fff;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  overflow: hidden;
}

/* Header */
.giftcard-shortcodes-table thead th {
  background: #f6f7f7;
  color: #1d2327;
  font-weight: 600;
  padding: 12px 15px;
  border-bottom: 1px solid #ccd0d4;
  text-align: left;
  white-space: nowrap;
}

/* Rows */
.giftcard-shortcodes-table tbody tr {
  border-bottom: 1px solid #e2e4e7;
  transition: background 0.2s ease-in-out;
}

.giftcard-shortcodes-table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.giftcard-shortcodes-table tbody tr:hover {
  background: #f1faff; /* subtle hover effect */
}

/* Cells */
.giftcard-shortcodes-table td {
  padding: 12px 15px;
  color: #2c3338;
  vertical-align: middle;
}

/* Shortcode/placeholder styling */
.giftcard-shortcodes-table code {
  background: #f0f0f1;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
  font-family: Consolas, Monaco, monospace;
  color: #d63384;
}

/* Responsive: stack into blocks on small screens */
@media (max-width: 768px) {
  .giftcard-shortcodes-table table,
  .giftcard-shortcodes-table thead,
  .giftcard-shortcodes-table tbody,
  .giftcard-shortcodes-table th,
  .giftcard-shortcodes-table td,
  .giftcard-shortcodes-table tr {
    display: block;
    width: 100%;
  }

  .giftcard-shortcodes-table thead {
    display: none; /* hide table header on small screens */
  }

  .giftcard-shortcodes-table tr {
    margin-bottom: 15px;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
    padding: 10px;
    background: #fff;
  }

  .giftcard-shortcodes-table td {
    border: none;
    padding: 8px 10px;
    position: relative;
    padding-left: 50%;
    text-align: left;
  }

  .giftcard-shortcodes-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    top: 8px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
  }
}
