/* Base styles */
:root {
  --primary-color: #0075c9;
  --primary-dark-color: #0062a8;
  --coinext-blue: #00b2ff;
  --coinext-blue-dark: #0099e6;
  --coinext-sidebar-bg: #2d3741;
  --primary-text-color: #001c33;
  --secondary-text-color: #5c6269;
  --background-color: #f5f5f5;
  --card-background: #ffffff;
  --error-color: #d32f2f;
}

/* Utility classes */
.hidden {
  display: none !important;
}

body {
  font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--background-color);
  color: var(--primary-text-color);
  overflow: hidden;
}

/* Login styles */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  background-color: #eef1f5;
}

.login-box {
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 350px;
  max-width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: 240px;
  margin-bottom: 30px;
}

.entrar-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  margin-top: 24px;
  transition: background-color 0.2s;
}

.entrar-btn:hover {
  background-color: var(--primary-dark-color);
}

.entrar-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.error-message {
  color: var(--error-color);
  margin: 16px 0;
  font-size: 14px;
}

/* Dashboard layout styles */
.dashboard-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--background-color);
  overflow-y: auto;
}

.content {
  flex: 1;
  padding: 24px;
}

.content-card {
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-top: 20px;
}

/* Sidebar styles - matching Flutter app dark theme */
.sidebar {
  width: 205px;
  background-color: var(--coinext-sidebar-bg);
  height: 100vh;
  color: white;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  z-index: 10;
  transition: transform 0.3s ease;
}

.header-logo {
  height: 40px;
  margin: 20px auto;
  display: block;
}

.sidebar-nav {
  flex: 1;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-item {
  margin: 0;
  border-left: 4px solid transparent;
}

.sidebar-item.active {
  border-left-color: var(--coinext-blue);
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-item a {
  display: block;
  padding: 14px 20px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: background-color 0.2s;
}

.sidebar-item:hover a {
  background-color: rgba(255, 255, 255, 0.05);
}

.user-menu {
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

/* Mobile sidebar toggle button */
.sidebar-toggle {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  background-color: var(--coinext-sidebar-bg);
  border: none;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  display: none;
  flex-direction: column;
  justify-content: space-around;
  padding: 10px;
  cursor: pointer;
}

.sidebar-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: white;
}

/* Form elements */
.section-title {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 500;
}

.search-input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 15px;
}

.search-button, .submit-button, .cleanup-button {
  background-color: var(--coinext-blue);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-button:hover, .submit-button:hover, .cleanup-button:hover {
  background-color: var(--coinext-blue-dark);
}

.search-button:disabled, .submit-button:disabled, .cleanup-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* Loading indicator */
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--coinext-blue);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#loading-indicator, .loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

/* Responsive styles */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -205px;
  }
  
  .sidebar.show {
    transform: translateX(205px);
  }
  
  .sidebar-toggle {
    display: flex;
  }
  
  .sidebar-toggle.active {
    left: 215px;
  }
}
