/* Container styling */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    background-image: url('../assets/register_login_back.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text);
    display: flex;
    flex-direction: column; /* Stacked layout */
    transition: background 0.4s;
  }


  
.topbar {
    background: #2d2d2d;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar .welcome-text {
    margin-right: 20px;
}

.logout-button, .viewanswrbtn{
    background: #e74c3c;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
}

.dashlink{
    color: #ffd700;
  }

  
  .container {
    width: 100%;
    max-width: 800px;
    background: #2a2a40;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: fadeIn 1s ease-out;
}
  
  header h1 {
    font-size: 1.5rem;
    color: #00ffd5;
    margin-bottom: 10px;
    text-align: center;
  }
.shead{
  color: yellow;
  font-size: large;
}
.gsc-webResult .gsc-result {
  background: rgba(255, 255, 255, 0.05); /* semi-transparent for blur effect */
  backdrop-filter: blur(1000px);
  border-radius: 16px;
  padding: 16px;
  margin: 20px !important;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f1f1f1;
}

.gsc-webResult.gsc-result:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(0, 255, 200, 0.25);
}

.gs-title a.gs-title {
  font-size: 1.15rem;
  color: #d6ecef;
  text-decoration: none;
  font-weight: bold;
  line-height: 1.4;
}

.gs-title a.gs-title:hover {
  text-decoration: underline;
  color: #00e5ff;
}

.gsc-url-top,
.gsc-url-bottom {
  margin-top: 5px;
  font-size: 0.85rem;
  color: #aaa;
}

.gs-snippet {
  margin-top: 10px;
  font-size: 1rem;
  color: #e0e0e0;
}

.gs-bidi-start-align span {
  margin-right: 6px;
}

.gs-visibleUrl-short,
.gs-visibleUrl-long {
  word-break: break-word;
  font-family: monospace;
  color: #90caf9;
}

img.gs-image {
  max-width: 100%;
  border-radius: 12px;
  margin-top: 12px;
}

/* General styling for the search container */
.gsc-control-cse {
  background: none !important; 
  border: 1px solid #ccc;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin: 20px auto;
  font-family: "Segoe UI", sans-serif;
}

/* Input box styling */
.gsc-input-box {
  border: 2px solid #007BFF;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.gsc-input-box:hover {
  border-color: #0056b3;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
}

.gsc-input input.gsc-input {
  font-size: 18px;
  padding: 12px 14px;
  height: 50px !important;
  background-color: #fff !important;
  border: none !important;
  box-shadow: none !important;
  width: 100% !important;
  color: #333;
}

/* Remove background branding */
.gsc-input input.gsc-input {
  background-image: none !important;
}

/* Clear button (×) */
.gsst_a {
  font-size: 20px;
  color: #888;
  margin-right: 10px;
}
.gsst_a:hover {
  color: #333;
}

/* Search button styling */
.gsc-search-button-v2 {
  background-color: #007BFF !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 20px !important;
  margin-left: 10px;
  transition: background-color 0.3s ease;
  height: 50px !important;
}

.gsc-search-button-v2:hover {
  background-color: #0056b3 !important;
  cursor: pointer;
}

.gsc-search-button-v2 svg {
  fill: white;
}

/* Clear result button */
.gsc-clear-button {
  font-size: 18px;
  color: #007BFF;
  cursor: pointer;
  padding-left: 10px;
}
.gsc-clear-button:hover {
  color: #0056b3;
}

/* Result Info & Sort Dropdown */
.gsc-result-info-container,
.gsc-orderby-container {
  padding-top: 15px;
  font-size: 14px;
  color: #ffffff !important;
}

/* Result container spacing */
.gsc-resultsbox-invisible {
  margin-top: 20px;
}

/* Optional: refine tab (like "Custom Search") */
.gsc-tabHeader {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 8px 14px;
  margin-right: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.gsc-tabHeader:hover {
  background-color: #e2e6ea;
}
.gsc-tabhActive {
  background-color: #007BFF !important;
  color: white;
}

/* Optional: hide ads if any */
.gsc-adBlockInvisible {
  display: none !important;
}

.ask-ai-button {
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.ask-ai-button:hover {
  background-color: #0056b3;
}