/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/.pnpm/next@14.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[2]!./node_modules/.pnpm/next@14.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[3]!./app/globals.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css");
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --primary-color: #097fa5;
  --primary-dark: #085a76;
  --primary-light: #c8dde3;
  --secondary-color: #3c3c3c;
  --error-color: #ef4444;
  --success-color: #097fa5;
  --text-color: #16161a;
  --border-color: #ededed;
  --background-color: #f5f5f5;
  --cube-color: #46464a;
  --text-color-secondary: #565656;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  background-color: #fafafa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
      "Helvetica Neue", Arial, sans-serif;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.login-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-color);
}

.logo {
  margin-right: 0.75rem;
}

.auth-form {
  background-color: var(--background-color);
  padding: 1.5rem;
  border-radius: 5px;
  border: 1px solid #e4e4e7;
  /* box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16); */
  width: 100%;
  max-width: 440px;
  animation: slideUp 0.3s ease-out;
}

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

h2 {
  color: var(--text-color);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

h2 i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 500;
}

label i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

input::placeholder {
  color: #adb5bd;
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

button {
  flex: 1 1;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.primary-btn {
  background-color: var(--primary-color);
  color: white;
}

.primary-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.primary-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.social-btn {
  background-color: white;
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  border: 1px solid #e4e4e7;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 500;
  color: #3c3c3c;
  transition: all 0.2s ease;
}

.social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.social-btn:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.social-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.social-btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.text-btn {
  background: none;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
}

.text-btn:hover {
  background-color: rgba(76, 175, 80, 0.1);
}

.error,
.success {
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.error {
  background-color: rgba(244, 67, 54, 0.1);
  color: var(--error-color);
}

.success {
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--success-color);
}

@media (max-width: 480px) {
  .auth-form {
    padding: 1.5rem;
  }

  .button-group {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 10px;
  color: #666;
}

.input-with-icon input {
  padding-left: 35px; /* Space for the icon */
  width: 100%;
}

.button-group.justify-between {
  display: flex;
  justify-content: space-between;
  width: 85%;
}

.button-group.centered {
  margin-left: auto;
  margin-right: auto;
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.loading i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.success,
.error {
  text-align: center;
}

.success i,
.error i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Add the cube loader styles at the end of your globals.css file */
.cube-loader {
  width: var(--cube-size);
  height: var(--cube-size);
  perspective: calc(var(--cube-size) * 12);
  margin: 0 auto;
}

.cube {
  width: var(--cube-size);
  height: var(--cube-size);
  position: relative;
  transform-style: preserve-3d;
  animation: spinCube 2s infinite ease-in-out;
  transform-origin: center center;
}

.face {
  position: absolute;
  width: var(--cube-size);
  height: var(--cube-size);
  background: rgba(255, 255, 255, 0.1);
  border: calc(var(--cube-size) * 0.05) solid var(--cube-color);
  opacity: 0.9;
}

.face.front {
  transform: rotateY(0deg) translateZ(calc(var(--cube-size) * 0.5));
}

.face.back {
  transform: rotateY(180deg) translateZ(calc(var(--cube-size) * 0.5));
}

.face.right {
  transform: rotateY(90deg) translateZ(calc(var(--cube-size) * 0.5));
}

.face.left {
  transform: rotateY(-90deg) translateZ(calc(var(--cube-size) * 0.5));
}

.face.top {
  transform: rotateX(90deg) translateZ(calc(var(--cube-size) * 0.5));
}

.face.bottom {
  transform: rotateX(-90deg) translateZ(calc(var(--cube-size) * 0.5));
}

.point {
  position: absolute;
  background: var(--cube-color);
  border-radius: 50%;
  opacity: 0.6;
}

@keyframes spinCube {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: rotateX(180deg) rotateY(180deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 300px;
}

.loading-text {
  margin-top: 2.5rem;
  color: var(--text-color-secondary);
  font-weight: 300;
  text-align: center;
}

.animate-slideUp {
  animation: slideUp 0.3s ease-out;
}

/* Optional: Add a subtle scale animation for the copy button */
@keyframes scalePop {
  0% {
      transform: scale(1);
    }
  
    50% {
      transform: scale(1.1);
    }
  
    100% {
      transform: scale(1);
    }
}

.scale-pop {
  animation: scalePop 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.2s ease-out;
}

/* API Keys Page Specific Styles */
.api-keys-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background-color: var(--background-color);
}

.api-keys-content {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #e4e4e7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 800px;
  animation: fadeIn 0.3s ease-out;
  text-align: center;
}

.page-title {
  color: var(--text-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-title i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

/* Add new specific button classes for API Keys page */
.api-key-primary-btn {
  display: inline-flex !important;
  background-color: var(--primary-color);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  border: none;
}

.api-key-primary-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(9, 127, 165, 0.2);
}

.api-key-text-btn {
  display: inline-flex !important;
  background: none;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  border: none;
}

.api-key-text-btn:hover {
  background-color: rgba(9, 127, 165, 0.1);
}

/* Add table-specific styles */
table {
  width: 100%;
  table-layout: fixed; /* This is crucial for equal column distribution */
  border-collapse: collapse;
}

th,
td {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Update the existing styles for the API Keys page */
.api-keys-content table {
  background: white;
  width: 100%;
  table-layout: fixed;
}

/* Optional: Add responsive table styles */
@media (max-width: 768px) {
  .api-keys-content table {
    display: block;
    overflow-x: auto;
  }
}
.divider {
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(0, 0, 0, 0.55);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
}

.divider span {
  padding: 0 6px;
}


