/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  line-height:1.5;
  letter-spacing:0.00938em;
}

/* Header */
header {
  width: 100%;
  /*background-color: #333; */
  /*color: white;*/
  position: absolute;
  top: 0;
  left: 0;
  padding: 1rem;
  z-index: 1000;
}

.header-container {
  display: flex;
  /*justify-content: space-between;*/
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  width:100px;
  margin:0px 0px 0px 10px;
}
.logoText h1 {
  width:250px;
  font-size: 2rem;
  line-height: 3.3;
  margin: 0px 0px 0px 0px;
}

.logoText a {
  text-decoration: none;
  color:black;
}

/* Hamburger Menu for Mobile */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background-color: black;
  margin: 4px 0;
}

/* Right Navigation Panel */
.right-panel {
  position: absolute;
  top: 160px; /* Account for the height of the header */
  right: 0;
  width: 250px;
  /*background-color: #f5f5f5;*/
  padding-top: 1rem;
  overflow: hidden;
  transition: width 0.3s ease-in-out;
}

.right-panel ul {
  list-style: none;
  padding: 5px;
}

.right-panel ul li {
  padding: 0px 0px 5px 0px;
}

.right-panel ul li a {
  color: rgb(102, 153, 204);
  text-decoration: none;
}

.right-panel ul li a:hover {
  color: #007bff;
  text-decoration: underline;
}

/* Main content */
main {
  margin-right: 270px; /* Leaves space for the right panel */
  padding: 3rem;
  max-width: 1000px;
  margin-top: 72px;
}

main h2 {
  font-size: 2rem;
  border-bottom: 0.5px solid rgb(211, 211, 211);
  padding:0px 0px 10px 0px;
}

main h3 {
  font-size: 1.5rem; /* Smaller than h2 but still prominent */
 /* color: #444; *//* Slightly lighter shade than h2 */
  /*margin-bottom: 0.5rem;*/
  /*margin-top:1rem;*/
  
  
}

main p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Paragraph Styling */
main p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555; /* Slightly lighter text color for readability */
  /*margin-bottom: 1.5rem;*/ /* Adds spacing between paragraphs */
}

/* Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem; /* Space below the table */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
}

table th, table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}

table th {
  background-color: #f0f0f0;
  color: #333;
  font-weight: bold;
}

table td {
  background-color: #fff;
  color: #555;
}

table tr:nth-child(even) td {
  background-color: #f8fcf3; /* Light gray background for even rows */
}

/* Footer */
footer {
  width: 100%;  
  color: black;
  padding: 1rem;
  text-align: center;  
  bottom: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  border-top:1px solid rgb(183, 183, 183);
  padding:10px;
}

.footer-container p {
  margin-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
}

.footer-links li {
  margin: 0 0.2rem;  
}

.footer-links li a { 
  text-decoration: none;
  color:rgb(102, 153, 204);
}

.footer-links li a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
  /* Hide the Right Panel on Mobile */  
  .right-panel {
	  position: absolute;
	  top: 130px; /* Account for the height of the header */
	  right: 0;
	  width: 0;
	  /*background-color: #f5f5f5;*/
	  padding-top: 1rem;
	  overflow: hidden;
	  transition: width 0.3s ease-in-out;
	}

  /* Full-width Main Content */
  main {
    margin-right: 0;
    padding: 1rem;
  }

  main h2 {
    font-size: 1.7rem;
    border-bottom: 0.5px solid rgb(211, 211, 211);
	margin-top:20px;
  }

  /* Show Hamburger Menu */
  .hamburger {
    display: flex;
  }

  /* Show Right Panel when Active */
  .right-panel.active {
    width: 100%;
	margin-top:-17px;
	background-color: #f5f5f5;
	position: relative;
  }

  /* Adjust Main Content when Right Panel is Active */
  main.active {
    margin-right: 270px;
  }
  .logoText h1 {
	  width:250px;
	  font-size: 2rem;
	  line-height: 3.3;
	  margin: 0px 0px 0px 5px;
	}
}

.real-time-counter {
  margin-top: 2rem;  
}

.counter-container {
	box-sizing: border-box;
	display: flex;
	flex-flow: wrap;
	width: calc(100% + 24px);    
}

#epoch-counter-section {
	box-sizing: border-box;
    display: flex;
    flex-flow: wrap;    
    
}

#epoch-counter {
  font-size:2rem;
  color: #333;
  padding-right:10px;
}

#toggle-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.5rem;
	background-color: #333;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;  
	height:30px;
	margin-top:5px;
}

#toggle-btn:hover {
  background-color: #333;
}

@media (max-width: 768px) {
	#toggle-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0.5rem 0.5rem;
		background-color: #333;
		color: white;
		border: none;
		border-radius: 4px;
		cursor: pointer;  
		width:100%;
	}
	.epoch-conversion button {
		display: flex;
		padding: 0.5rem 1rem;
		background-color: #333;
		color: white;
		border: none;
		border-radius: 4px;
		cursor: pointer;
		font-weight: bold;
		width: 100%;
	}
}

#copy-btn {
	display: flex;
    font-weight: bold;
    display: inline-block;
    border-left: 1px solid rgb(183, 183, 183);
    padding: 10px;
    font-size:1.5rem;
	color:#6087b1;
}

.copy-btn {	
	color:#6087b1;
}

.copy-message {
  margin-top: 1rem;
  color: green;
  font-size: 1rem;
  display: none;
}

/* Popup Message Styling */
.popup-message {
  display: none; /* Initially hidden */
  position: absolute; /* Set absolute to position near the copy icon */
  background-color: black;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0; /* Start hidden */
  transition: opacity 0.3s ease; /* Smooth fade-in/out */
}

/* Show popup with a visible state */
.popup-message.show {
  display: block;
  opacity: 1;
}

/* Epoch Conversion Section Styling */
.epoch-conversion {
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid #ddd;
  background-color: #f0f0f0;
  color:#333;
}

.epoch-conversion h3 {
  margin-bottom: 1rem;
}

.epoch-conversion form {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.epoch-conversion input {
	display: flex;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}

.epoch-conversion button {
	display: flex;
  padding: 0.5rem 1rem;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight:bold;
}

.epoch-conversion button:hover {
  background-color: #333;
}

#result {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #333;
}

.results-section {
  margin-top: 1.5rem;
  /*padding: 1rem;*/
 /* border: 1px solid #ddd;*/
  /*background-color: #f5f5f5;*/
  display: none; /* Hidden until conversion happens */
}

.results-section ul {
  list-style-type: none;
  padding: 0;
}

.results-section li {
  margin-bottom: 10px;  
}

.results-section span {
  font-weight: bold;
  color:rgb(102, 153, 204);
}

/* Manual Date Conversion Section */
.manual-date-conversion {
  margin-top: 40px;
}

.manual-date-conversion h3 {
  color: #444;
  text-align: center;
  margin-bottom: 20px;
}

.manual-date-conversion form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.manual-date-conversion label {
  width: 100%;
  max-width: 120px;
  text-align: left;
}

.manual-date-conversion input,
.manual-date-conversion select {
  max-width: 120px;
  margin-bottom: 15px;
}

.manual-date-conversion button {
  width: 100%;
  max-width: 200px;
}

/* Results Styling for Manual Conversion */
#manual-results {
  margin-top: 20px;    
  border-radius: 8px;  
}

#manual-results ul li span {
  font-weight: bold;
    color: #333;
}

/* Responsive Design */
@media (max-width: 600px) {
  input, select, button {
    max-width: 100%;
  }
  .epoch-conversion {
	  margin-top: 2rem;	 
	  padding:0px;
	  border: 0px solid #ddd;
	  background-color: white;
	  color:#333;
   }   
}

/* Styling the form to display in a single row */
.human-readable-conversion {
	margin-top: 2rem;
    padding: 2rem;
    border: 1px solid #ddd;
    background-color: #f0f0f0;
    color: #333;
}
.human-readable-conversion form {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  /*justify-content: space-between;*/
  align-items: flex-start;
  flex-direction: row;
  margin-bottom: 20px;
}

.human-readable-conversion .input-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  max-width: 60px; /* Adjust this width for inputs */
}

.human-readable-conversion .select-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  max-width: 80px; /* Adjust this width for inputs */
  margin-top:18px;
}

.human-readable-conversion label {
  font-weight: bold;
  margin-bottom: 5px;  
  /*text-align: center;*/
}

.human-readable-conversion input, select {
  padding: 8px;
  font-size: 16px;  
  border: 1px solid #ddd;
  border-radius: 4px;
}

.human-readable-conversion button {
  background-color: #333;
  color: white;
  font-size: 16px;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  align-self: flex-end; /* Align button to the right */  
}

.human-readable-conversion button:hover {
  background-color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .human-readable-conversion form {
    flex-wrap: wrap; /* Stack vertically on smaller screens */
  }
  
  .human-readable-conversion .input-group, button {
    width: 100%;
    max-width: none;
  }

  .human-readable-conversion button {
    margin-top: 15px;
  }
  
  .human-readable-conversion .input-group {
	  display: flex;
	  flex-direction: column;
	  flex-grow: 1;
	  max-width: 60px; /* Adjust this width for inputs */
	}

	.human-readable-conversion .select-group {
	  display: flex;
	  flex-direction: column;
	  flex-grow: 1;
	  max-width: 80px; /* Adjust this width for inputs */
	  margin-top:18px;
	}
	
	.human-readable-conversion {
		margin-top: 2rem;
		padding: 0rem;
		border: 0px solid #ddd;
		background-color: white;
		color: #333;
	}

}


/* Timezone Section Styles */
.timestamp-conversion {
 margin-top: 2rem;
    padding: 2rem;
    border: 1px solid #ddd;
    background-color: #f0f0f0;
    color: #333;
}

.timestamp-conversion h2 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

#timestamp-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

/* Input and Dropdown Styling */
.timestamp-conversion .input-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;  
}

.timestamp-conversion label {
  font-weight: bold;
  margin-bottom: 8px;
  color: #555;
}

.timestamp-conversion input {
  padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

.timestamp-conversion select {
  padding: 8px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Button Styling */
.timestamp-conversion button {
	padding: 0.5rem 1rem;
	background-color: #333;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
}

.timestamp-conversion button:hover {
  background-color: #333;
}

/* Results Section */
.results-section {
  margin-top: 30px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.results-section ul {
  list-style: none;
  padding: 0;
}

.results-section li {
  margin-bottom: 10px;
  font-size: 16px;
}

.results-section span {
  font-weight: bold;
  color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  #timestamp-form {
    flex-wrap: wrap;
  }
  
  .timestamp-conversion .input-group {
    max-width: 100%;
    width: 100%;
  }
  
  .timestamp-conversion button {
    width: 100%;
    margin-top: 15px;
  }
  .results-section {
	  margin-top: 30px;	  	
	  padding:0px;	  
	  border-radius: 8px;
	  border: 0px solid #ddd;
  }
  .timestamp-conversion {
		margin-top: 2rem;
		padding: 0rem;
		border: 0px solid #ddd;
		background-color: white;
		color: #333;
	}
}


.timestamp-conversion h3 {
    margin-bottom: 1rem;
}

.batch-header-section {
  background-color: #4CAF50;
  color: white;
  padding: 20px;
  text-align: center;
}

.batch-input-section, .batch-output-section {  
  margin: 10px 0;
  border-radius: 5px;
}

.batch-input-section {
	margin-top: 2rem;
	padding: 2rem;
	border: 1px solid #ddd;
	background-color: #f0f0f0;
	color: #333;
}

.batch-input-section label {
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
}

#batch-timestamps {
  width: 100%;
  height: 150px;
  padding: 10px;
  font-size: 1rem;
}

#batch-convert-btn {
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background-color: #333;
  color: white;
  border-radius: 5px;
  margin: 20px 0px 0px 0px;
}

#batch-convert-btn:hover {
  background-color: #6d6868;
}

.batch-output-section { 
  min-height: 100px;
}

.batch-output-section .batch-result-item {
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

.batch-output-section .batch-result-item:last-child {
  border-bottom: none;
}

/* Discord Timestamp Converter - Improved Styles */
.discord-timestamp-converter {
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid #e0e0e0;
  background-color: #fafafa;
  color: #333;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.discord-timestamp-converter h2 {
  text-align: center;
  color: #222;
  margin-bottom: 25px;
  font-size: 1.8rem;
  font-weight: 600;
}

.discord-timestamp-converter .timestamp-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.discord-timestamp-converter .input-group {
  /*flex: 1 1 250px;*/
  display: flex;
  flex-direction: column;
}

.discord-timestamp-converter label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #555;
  font-size: 0.95rem;
}

.discord-timestamp-converter input,
.discord-timestamp-converter select {
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.discord-timestamp-converter input:focus,
.discord-timestamp-converter select:focus {
  border-color: #404EED;
  box-shadow: 0 0 0 3px rgba(64, 78, 237, 0.15);
  outline: none;
}

.discord-timestamp-converter button {
  padding: 0.6rem 1.4rem;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.discord-timestamp-converter button:hover {
  background-color: #2f3acb;
}

.discord-timestamp-converter button:active {
  transform: scale(0.97);
}

/* Output Section */
.output-section {
  margin-top: 30px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: none;
}

.output-section ul {
  list-style: none;
  padding: 0;
}

.output-section li {
  margin-bottom: 10px;
  font-size: 15px;
}

.output-section code {
  font-weight: bold;
  color: #333;
  background-color: #f7f4f4;
  padding: 4px 6px;
  border-radius: 4px;
}

.discord-timestamp-converter h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.discord-timestamps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.discord-timestamps {
  flex-grow: 1;
  min-width: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.discord-timestamps-details {
  flex-grow: 1;
  min-width: 600px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .discord-timestamp-converter {
    padding: 1.2rem;
    border-radius: 0;
    box-shadow: none;
  }

  .discord-timestamp-converter .timestamp-inputs {
    flex-direction: column;
  }

  .discord-timestamps-details {
    min-width: 100%;
  }
}

#time-picker {
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
}

.time-dropdown {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 5px;
  padding: 5px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.time-option {
  padding: 6px 10px;
  cursor: pointer;
}

.time-option:hover {
  background-color: #f0f0f0;
}

.time-picker-container {
  position: relative;
  width: 200px;
  font-family: sans-serif;
}

.time-picker-container input {
  width: 100%;
  padding: 8px;
  cursor: pointer;
  box-sizing: border-box;
}

.time-picker-container .dropdown-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.time-picker-container.open .dropdown-icon {
  transform: translateY(-50%) rotate(180deg);
}

#time-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ccc;
  display: none;
  z-index: 999;
  scroll-behavior: smooth;
}

.time-option {
  padding: 6px 8px;
  cursor: pointer;
}

.time-option:hover {
  background: #eee;
}


/* discord timetamp to date time */

.discord-converter-card {
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  max-width: 900px;
  margin: 20px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.discord-converter-card h2 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}
.discord-converter-card p {
  font-size: 0.95rem;
  color: #555;
}
.converter-form {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}
.converter-form input {
  flex: 1;
  padding: 8px 10px;
  font-size: 1rem;
  border: 1px solid #bbb;
  border-radius: 4px;
}
.converter-form button {
  padding: 8px 16px;
  font-size: 1rem;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.converter-form button:hover {
  background: #333;
}
.converter-result {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font-family: monospace;
  font-size: 1rem;
  color: #333;
  min-height: 2em;
}


	/* Afor the converter */
   .ai-epoch-converter {
  --bg: #ffffff;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-2: #0ea5a4;
  --card: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
               "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: var(--bg);
  color: #0f172a;
  max-width: 980px;
  margin: 28px auto;  
  box-sizing: border-box;
  line-height: 1.55;
}

/* Header */
.ai-epoch-converter .header {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}
.ai-epoch-converter h1 {
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: -0.3px;
  font-weight: 700;
  color: #0f172a;
}
.ai-epoch-converter p.lead {
  margin: 0;
  color: #555;
  font-size: 0.97rem;
}

/* Grid layout */
.ai-epoch-converter .grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  margin-top: 18px;
}

/* Cards */
.ai-epoch-converter .card {
  background: #fafafa;
  border: 1px solid rgba(15,23,42,0.06);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

/* Inputs */
.ai-epoch-converter label.input-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1.5rem;
  color: #0f172a;
}

.ai-epoch-converter input[type="text"].nl-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #dce3ee;
  font-size: 1rem;
  box-sizing: border-box;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

.ai-epoch-converter input[type="text"].nl-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

/* Helper chips */
.ai-epoch-converter .helpers {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ai-epoch-converter .chip {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #d67a82;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.ai-epoch-converter .chip:hover {
  background-color: #f1f5f9;
  transform: translateY(-1px);
}

/* Results */
.ai-epoch-converter .results {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.ai-epoch-converter .result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(15,23,42,0.05);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
  font-size: 0.95rem;
}
.ai-epoch-converter .result-left { 
  color: #0f172a; 
  font-weight: 500;
}
.ai-epoch-converter .result-sub { 
  color: var(--muted); 
  font-size: 0.85rem; 
}

/* Meta panel */
.ai-epoch-converter .meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-epoch-converter .preview {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,0.05);
}
.ai-epoch-converter .preview .time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
  font-size: 0.95rem;
  margin: 6px 0;
}

/* Examples */
.ai-epoch-converter .examples {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.ai-epoch-converter .example {
  background: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(15,23,42,0.05);
  cursor: pointer;
  font-size: 0.92rem;
  color: #d67a82;
  transition: background-color 0.2s ease;
}
.ai-epoch-converter .example:hover {
  background-color: #f8fafc;
}

/* Footer note */
.ai-epoch-converter .footer-note {
  color: #d67a82;
  font-size: 1rem;
  margin-top: 12px;
}

/* Copy button */
.ai-epoch-converter .copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: color 0.2s ease;
}
.ai-epoch-converter .copy-btn:hover {
  color: var(--accent);
}
.ai-epoch-converter .copy-btn svg {
  pointer-events: none;
  width: 16px;
  height: 16px;
}

/* Responsive */
@media (max-width: 880px) {
  .ai-epoch-converter .grid { 
    grid-template-columns: 1fr; 
  }
  .ai-epoch-converter .meta { 
    order: 2; 
  }
}


/* ai power link new */
.ai-powered-epcoh {
    margin-left: 30px; 
    margin-top: 30px;  
}

.ai-powered-epcoh a {
    font-size: 1rem;
    font-weight: 600;    
    color: #222;
    position: relative;
}

.ai-powered-epcoh a:hover {
    text-decoration: underline;
}

/* Wrapper to hold badge and text */
.badge-wrapper {
    position: relative;
    display: inline-block;
}

/* Position badge so W sits over A */
.new-badge {
    position: absolute;
    top: -1.5em;     /* moves badge above text */
    right: calc(100% - 1.1em); /* aligns W over A */
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        #ff4e50,
        #fc913a,
        #f9d423,
        #ede574,
        #00c9ff,
        #92fe9d
    );
    background-size: 300%;
    color: white;
    animation: gradientShift 4s ease infinite, glowPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 6px rgba(255, 255, 255, 0.4); }
    50% { box-shadow: 0 0 12px rgba(255, 255, 255, 0.8); }
}
body:has(.ai-epoch-converter) .ai-powered-epcoh {
    display: none;
}


/* SAS timestamp converter */
.panel {
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      padding: 20px;  
      margin-bottom: 25px;
    }
    .panel h2 {
      margin-top: 0;
      font-size: 1.3rem;
      color: #2d3e50;
      border-bottom: 2px solid #eee;
      padding-bottom: 6px;
    }
    .timestamp-container {
      display: inline-block;
      position: relative;
    }
    .timestamp {
    /*  font-size: 1.4rem;
      font-weight: bold;
      color: #0077cc;*/
    }
    .copy-btn {
      position: absolute;
      right: -40px;
      top: -25px;
      background: none;
      border: none;
      color: #0077cc;
      cursor: pointer;
      font-size: 1rem;
      opacity: 0;
      transition: opacity 0.2s;
    }
    .timestamp-container:hover .copy-btn {
      opacity: 1;
    }
    .iso {
      font-family: monospace;
      background: #f9f9f9;
      padding: 4px 6px;
      border-radius: 4px;
      display: inline-block;
      position: relative;
      margin-top: 4px;
    }
    .iso-container {
      display: inline-block;
      position: relative;
    }
    .iso-container:hover .copy-btn {
      opacity: 1;
    }
    label {
      font-weight: bold;
      display: block;
      margin-top: 12px;
    }
    input {
      width: 100%;
      padding: 10px;
      font-size: 1rem;
      border: 1px solid #ccc;
      border-radius: 6px;
      margin-top: 4px;
    }
    button {
      margin-top: 16px;
      background: #333;
      color: white;
      font-size: 1rem;
      border: none;
      border-radius: 6px;
      padding: 10px 20px;
      cursor: pointer;
    }
    
    .result {
      margin-top: 16px;
      background: #f9f9f9;
      padding: 10px 14px;
      font-family: monospace;
      border-radius: 6px;
      min-height: 40px;
    }
/* current clock */	
	#local {
      padding: 5px;      
    }
    .world-clocks {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
	  margin-top:18px;      
    }

    .city-clock {
      background-color: var(--card-bg);      
      width: 130px;
	  margin-top:2px;
	  background-color:#c35;
	  color:#fff;
      text-align: center;
      box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    }
	.city-name {
		font-weight: bold;
		font-size: 20px;
    }
    .city-clock div {
      margin-bottom: 8px;
    }

    .time {
      font-size: 10.6em;
	  font-weight: bold;
      color: #131313;
    }

    .date {
      font-size: 1.8em;
      margin: 10px 0;
      font-weight: 500;
      color: var(--text-color);
    }

    .tzinfo {
      font-size: 0.85em;
      color: var(--muted-color);
    }

    #location {
      font-size: 1.2em;
	  font-weight:bold;
      margin-bottom: 10px;
    }

    @media (max-width: 500px) {
      .city-clock {
        width: 100%;
      }
    }
    
    @media (max-width: 1024px) {
  .time {
    font-size: 4rem;
    padding: 30px 15px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .time {
    font-size: 3rem;
    padding: 20px 10px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .time {
    font-size: 2rem;
    padding: 15px 5px;
  }
}

    /* holidays */
.container { 
	max-width: 900px; margin: 40px auto; background: #fff; padding: 25px 30px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); 
}
.selectors { 
	display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; 
}
select { 
	padding: 10px; border-radius: 4px; border: 1px solid #ccc; font-size: 16px;
}
/* === Table === */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.95rem;
  text-align: left;
  overflow: hidden;
  border-radius: 6px;
}

thead {
  background-color: #2b5797;
  color: #fff;
}

thead th {
  padding: 12px 10px;
 
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tbody tr:nth-child(even) {
  background-color: #f3f7fb;
}

tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

tbody tr:hover {
  background-color: #f3f7fb;
  transition: background-color 0.25s ease-in-out;
  font-weight:600;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid #ddd;
  vertical-align: middle;
}

/* === Highlight Holiday Name Column === */
td:nth-child(3) {
  color: #1a73e8;
}
td:nth-child(1) {
  color: #eb3413;
}
.no-results { 
	text-align: center; padding: 20px; color: #666; 
}
.heading { 
	text-align: center; margin-bottom: 10px; font-size: 20px; font-weight: bold; 
}
.notice {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    border-radius: 4px;
    line-height: 1.5;
}

.notice a {
    color: #007BFF;
    text-decoration: underline;
}

.notice a:hover {
    text-decoration: none;
}
/* === Shimmer Loader === */
.shimmer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.shimmer-line {
  height: 16px;
  width: 100%;
  background: linear-gradient(
    90deg,
    #f0f3f8 25%,
    #e0e6ef 50%,
    #f0f3f8 75%
  );
  background-size: 200% 100%;
  border-radius: 6px;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* === dst time === */
caption {
  caption-side: bottom;
  text-align: left;
  font-size: 0.9em;
  color: #666;
  margin-top: 8px;
}
.intro {
  margin-top: 10px;
  margin-bottom: 10px;
}
.faq {      
  padding: 5px;      
}
.faq h2 {     
  padding-bottom: 6px;
  margin-bottom: 15px;
}
.faq dt {
  font-weight: bold;
  color: #222;
  margin-top: 15px;
}
.faq dd {
  margin-left: 0;
  color: #555;
}

/* time diff convetrer */

.time-diff-convert {  
  padding: 5px;  
}


.time-diff-convert label {
  font-weight: 600;
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
}

.time-diff-convert input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
}

.time-diff-convert input:focus {
  border-color: #0078ff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,120,255,0.15);
}

.time-diff-convert .dropdown { position: relative; }

.time-diff-convert .dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.time-diff-convert .dropdown-list div {
  padding: 8px 10px;
  cursor: pointer;
}

.time-diff-convert .dropdown-list div:hover {
  background: #eef6ff;
}

.time-diff-convert .buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.time-diff-convert button {
  background: #0078ff;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.time-diff-convert button:hover {
  background: #005fd6;
}

.time-diff-convert .result {
  margin-top: 25px;
  background: #eef6ff;
  padding: 15px;
  border-radius: 8px;
  font-size: 1em;
}

.time-diff-convert .timebox {
  background: white;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 8px; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.time-diff-convert .timebox h3 {
  margin: 0;
  color: #0078ff;
}

.time-diff-convert .equals {
  text-align: center;
  font-weight: 700;
  margin: 10px 0;
}

.time-diff-convert .share {
  margin-top: 15px;
  background: #f2f2f2;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9em;
  word-wrap: break-word;
}

/* dst word page */

/* Map container */
.map-box {
  width: 100%;
  overflow-x: auto;
  text-align: center;
  margin-bottom: 15px;
}

/* Legend */
.legend {
  margin-top: 10px;
  font-size: 15px;
  display: flex;
  gap: 20px;
}

.legend-box {
  width: 14px;
  height: 14px;
  display: inline-block;
  border: 1px solid #999;
  margin-right: 6px;
}

.dst { background: #4CAF50; }
.nodst { background: #fff; }
#yearSelect {
    padding: 8px 12px;
    font-size: 15px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: 0.2s ease;
    min-width: 140px;
}

#yearSelect:hover {
    border-color: #999;
}

#yearSelect:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
}

label[for="yearSelect"] {
    font-size: 16px;
    margin-right: 10px;
    color: #444;
}
.year-select-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}
#dstSection {
	font-size: 14px;
    color: #070707;
}
#noDst {
	font-size: 14px;
    color: #070707;
}

/* Container for DST links */
.year-links {
    margin: 18px 0;
}

/* Base link style */
.year-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: #0066cc;
    text-decoration: none;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

/* Hover effect */
.year-links a:hover {
    background: #eaeaea;
    border-color: #ccc;
}

/* Icon before each link */
.year-links a::before {
    content: "🕒";   /* Clock icon (DST theme) */
    font-size: 16px;
}

/* Active year */
.year-links a.active {
    background: #0066cc;
    color: #fff;
    border-color: #005bb5;
}

/* Active icon becomes white */
.year-links a.active::before {
    color: #fff;
}

/* Responsive for mobile */
@media (max-width: 600px) {
    .year-links a {
        display: block;
        width: 95%;
        margin: 8px auto;
    }
}

/* Wrapper styling */
#mapWrapper {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 10px;
  box-sizing: border-box;
}

/* Title */
#mapWrapper h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
  text-align: left;
}

/* Responsive SVG container */
#svgContainer {
  width: 100%;
  height: 60vh;            /* makes the map visible on all devices */
  min-height: 320px;       /* never becomes too small */
  max-height: 700px;       /* prevents stretch on huge screens */
  background: #f5f5f5;     /* placeholder before SVG loads */
  border-radius: 10px;
  overflow: hidden;        /* prevents any SVG overflow */
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

/* Ensure SVG fills container */
#svgContainer svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Mobile improvement */
@media (max-width: 600px) {
  #svgContainer {
    height: 55vh;       /* fits better vertically */
    min-height: 260px;
  }

  #mapWrapper h3 {
    font-size: 1rem;
  }
}










