@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('/assets/styles/variables.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body, #app{
	width: 100%;
	height: 100%;
}
body {
    font-family: 'Montserrat', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background-color: var(--chapters360-background);
    color: var(--chapters360-text-primary);
}
p, h1, h2, h3, h4, h5, h6 {
	margin: 0;
}
.loading-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
}

.loading-container::after {
    content: '';
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #2a2a2a 0%, #3a3a3a 50%, #2a2a2a 100%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Tab content loader styles */
.tab-content-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 20px;
    text-align: center;
}

.tab-content-loader .spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--chapters360-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.tab-content-loader .loader-text {
    color: #666;
    font-size: 14px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% {
        background-position: 200% 0;
        opacity: 0.7;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        background-position: -200% 0;
        opacity: 0.7;
    }
}
#app>main{
	height: calc(100% - var(--header-height) - var(--footer-height));
	overflow: auto;
}

.my-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    box-shadow: inset 0 0 0 1px var(--chapters360-border);
    transition: box-shadow 0.2s ease;
	width: 100%;
}
.my-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--chapters360-primary);
}

.my-button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 0.8rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 16px;
}
.my-button i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.button-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(71, 118, 230, 0.3);
}

.button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(71, 118, 230, 0.4);
}

.loader-wrapper {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
.loader-wrapper .loader-text {
	font-size: 1.5rem;
	color: var(--chapters360-primary, #007bff);
	margin-top: 10px;
	text-align: center;
	font-weight: bold;
	font-family: monospace;
}
.loader.blob {
  width: 100px;
  aspect-ratio: 1;
  padding: 10px;
  box-sizing: border-box;
  display: grid;
  background: #fff;
  mix-blend-mode: darken;
}
.loader.blob:before{
  content: "";
  margin: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--chapters360-primary, #007bff);
  background: currentColor;
  box-shadow: -30px 0,30px 0,0 30px, 0 -30px;
  animation: l6 1s infinite alternate;
}
@keyframes l6{
  90%,100% {box-shadow: -10px 0,10px 0,0 10px, 0 -10px;transform: rotate(180deg)}
}
