/* Main stylesheet for AllInOneTools */
:root {
  --primary: #0d6efd;
  --secondary: #6c757d;
  --success: #198754;
  --info: #0dcaf0;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #212529;
  --bg: #f8f9fa;
  --card: #ffffff;
}

body {
  background: var(--bg);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}


.site-header {
  background: #0b74c3 !important;
  color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero {
  background: linear-gradient(90deg, #0b74c3 0%, #0d6efd 100%);
  color: white;
  padding: 60px 0;
}

.tool-card {
  transition: transform .15s ease, box-shadow .15s ease;
  border: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(13,110,253,0.12);
}

.search-box .form-control {
  border-radius: 50px;
  padding: 18px 22px;
}

.tag {
  font-size: .78rem;
}

footer {
  background: #fff;
  border-top: 1px solid #e9ecef;
  padding: 30px 0;
  margin-top: 60px;
}

@media (max-width: 575px) {
  .hero {
    padding: 40px 0;
  }
}

/* Breadcrumb styling */

.breadcrumb {
	padding: 0.75rem 1rem;
	margin-bottom: 1.5rem;
	background-color: #e9ecef;
	border-radius: 0.375rem;
}


.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
}

/* Search results dropdown */
#searchResults {
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  z-index: 1000 !important;
  background: white;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-height: 300px;
  overflow-y: auto;
}


.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}

.search-result-item:last-child {
  border-bottom: none;
}


#searchInput {
    position: relative;
    z-index: 1001;
}


/* Prevent browser autocomplete styles */
#searchInput:-webkit-autofill,
#searchInput:-webkit-autofill:hover, 
#searchInput:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    box-shadow: 0 0 0px 1000px white inset !important;
    -webkit-text-fill-color: #000 !important;
}


/* Homepage search dropdown positioning */
/* Homepage search specific styles */
#homeSearchResults {
    position: absolute;
    z-index: 1000;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
}

/* Ensure the wrapper has proper positioning */
.position-relative {
    position: relative;
}

/* Fix for flex container positioning */
#homeSearchForm {
    position: relative;
}

/* Make sure the search input doesn't affect positioning */
#homeSearchInput {
    position: static;
}


#homeSearchInput {
    position: relative;
    z-index: 1001;
    background-color: white !important;
}

/* Prevent browser autocomplete for homepage search */
#homeSearchInput:-webkit-autofill,
#homeSearchInput:-webkit-autofill:hover, 
#homeSearchInput:-webkit-autofill:focus,
#homeSearchInput:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #000 !important;
}


/* Card Box Style */

.card {
	border: none;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
	margin-bottom: 1.5rem;
}

.card-header {
	background-color: #f1f8ff;
	border-bottom: 1px solid #e3f2fd;
	font-weight: 600;
}


.stat-card {
	transition: transform 0.2s;
	height: 100%;
}

.stat-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.stat-icon {
	font-size: 1.5rem;
	margin-right: 0.5rem;
	color: #0d6efd;
}

.stat-value {
	font-size: 1.8rem;
	font-weight: bold;
	color: #0d6efd;
}

.stat-label {
	font-size: 0.9rem;
	color: #6c757d;
}

#textInput, #outputText {
	min-height: 200px;
	resize: vertical;
}

.progress {
	height: 8px;
}

.reading-time {
	background-color: #f8f9fa;
	border-radius: 5px;
	padding: 15px;
}

.option-card {
	cursor: pointer;
	transition: all 0.2s;
}

.option-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.option-card.active {
	border-color: #0d6efd;
	background-color: rgba(13, 110, 253, 0.05);
}

/* What is Box Style */

.kebab-example {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
}

        
.sentence-example {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
}


.word-example {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
}
