/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  color: #e0e0e0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.active {
  display: block !important;
}

/* Login Styles */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}

.login-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  width: 400px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header i {
  font-size: 3rem;
  color: #64b5f6;
  margin-bottom: 10px;
}

.login-header h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #64b5f6, #81c784);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-header p {
  color: #b0b0b0;
  font-size: 0.9rem;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form label {
  display: block;
  margin-bottom: 8px;
  color: #e0e0e0;
  font-weight: 500;
}

.login-form label i {
  margin-right: 8px;
  color: #64b5f6;
}

.login-form input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #e0e0e0;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.login-form input:focus {
  outline: none;
  border-color: #64b5f6;
  box-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(45deg, #64b5f6, #81c784);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(100, 181, 246, 0.4);
}

.error-message {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid #f44336;
  border-radius: 8px;
  padding: 10px;
  margin-top: 15px;
  color: #ff5252;
  text-align: center;
  font-size: 0.9rem;
}

/* Dashboard Layout */
.dashboard-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-rows: 70px 1fr;
  grid-template-areas:
    "sidebar header"
    "sidebar main";
  height: 100vh;
}

.dashboard-header {
  grid-area: header;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

.header-left h1 {
  font-size: 1.3rem;
  color: #e0e0e0;
}

.header-left i {
  color: #64b5f6;
  margin-right: 10px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-info {
  color: #b0b0b0;
  font-size: 0.9rem;
}

.user-info i {
  color: #81c784;
  margin-right: 5px;
}

.logout-btn {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid #f44336;
  border-radius: 8px;
  color: #ff5252;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: rgba(244, 67, 54, 0.3);
  transform: translateY(-1px);
}

/* Sidebar */
.sidebar {
  grid-area: sidebar;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.nav-menu {
  list-style: none;
}

.nav-menu li {
  margin-bottom: 5px;
}

.nav-link {
  display: block;
  padding: 15px 25px;
  color: #b0b0b0;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  border-left-color: #64b5f6;
}

.nav-link.active {
  background: rgba(100, 181, 246, 0.1);
  color: #64b5f6;
  border-left-color: #64b5f6;
}

.nav-link i {
  margin-right: 10px;
  width: 16px;
}

/* Main Content */
.main-content {
  grid-area: main;
  padding: 30px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.02);
}

.content-section {
  display: none;
  animation: fadeIn 0.5s ease-in;
}

.content-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.content-section h2 {
  margin-bottom: 30px;
  color: #e0e0e0;
  font-size: 1.8rem;
}

/* Dashboard Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.stat-icon {
  font-size: 2.5rem;
  color: #64b5f6;
}

.stat-info h3 {
  font-size: 1rem;
  color: #b0b0b0;
  margin-bottom: 5px;
}

.stat-info p {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e0e0e0;
}

/* Bot Controls */
.bot-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.control-panel, .status-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
}

.control-panel h3, .status-panel h3 {
  margin-bottom: 20px;
  color: #e0e0e0;
}

.button-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.control-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 120px;
}

.start-btn {
  background: linear-gradient(45deg, #4caf50, #66bb6a);
  color: white;
}

.stop-btn {
  background: linear-gradient(45deg, #f44336, #e57373);
  color: white;
}

.restart-btn {
  background: linear-gradient(45deg, #ff9800, #ffb74d);
  color: white;
}

.control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.status-info p {
  margin-bottom: 10px;
  color: #b0b0b0;
}

.status-online {
  color: #4caf50;
  font-weight: bold;
}

/* OSINT Tools */
.osint-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.tool-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tool-card h3 {
  margin-bottom: 15px;
  color: #e0e0e0;
  font-size: 1.1rem;
}

.tool-card h3 i {
  color: #64b5f6;
  margin-right: 8px;
}

.tool-form {
  display: flex;
  gap: 10px;
}

.tool-form input {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #e0e0e0;
}

.tool-btn {
  padding: 10px 20px;
  background: linear-gradient(45deg, #64b5f6, #81c784);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tool-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(100, 181, 246, 0.4);
}

.results-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
}

.results-container h3 {
  margin-bottom: 15px;
  color: #e0e0e0;
}

.results-display {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 15px;
  color: #b0b0b0;
  font-family: 'Courier New', monospace;
  min-height: 100px;
  max-height: 300px;
  overflow-y: auto;
}

/* Commands */
.commands-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.command-executor, .command-output {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
}

.command-executor h3, .command-output h3 {
  margin-bottom: 20px;
  color: #e0e0e0;
}

.command-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.command-form select, .command-form input {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #e0e0e0;
}

.execute-btn {
  padding: 12px 20px;
  background: linear-gradient(45deg, #64b5f6, #81c784);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.execute-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(100, 181, 246, 0.4);
}

.output-display {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 15px;
  color: #81c784;
  font-family: 'Courier New', monospace;
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
}

/* Logs */
.logs-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
}

.log-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.refresh-btn, .clear-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.refresh-btn {
  background: linear-gradient(45deg, #2196f3, #64b5f6);
  color: white;
}

.clear-btn {
  background: linear-gradient(45deg, #f44336, #e57373);
  color: white;
}

.refresh-btn:hover, .clear-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.logs-display {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 15px;
  color: #81c784;
  font-family: 'Courier New', monospace;
  height: 400px;
  overflow-y: auto;
}

.logs-display p {
  margin-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 5px;
}

/* Settings */
.settings-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
}

.settings-group {
  margin-bottom: 30px;
}

.settings-group h3 {
  margin-bottom: 20px;
  color: #e0e0e0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 10px 0;
}

.setting-item label {
  color: #b0b0b0;
  font-weight: 500;
  min-width: 150px;
}

.setting-item input {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #e0e0e0;
  max-width: 300px;
  flex: 1;
  margin-left: 20px;
}

.setting-item input[type="checkbox"] {
  width: auto;
  margin-left: 20px;
}

.save-btn {
  padding: 12px 30px;
  background: linear-gradient(45deg, #4caf50, #66bb6a);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-container {
    grid-template-columns: 1fr;
    grid-template-rows: 70px auto 1fr;
    grid-template-areas:
      "header"
      "sidebar"
      "main";
  }

  .sidebar {
    order: 2;
  }

  .nav-menu {
    display: flex;
    overflow-x: auto;
    padding: 0 20px;
  }

  .nav-menu li {
    margin: 0 5px;
    white-space: nowrap;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .bot-controls {
    grid-template-columns: 1fr;
  }

  .osint-tools-grid {
    grid-template-columns: 1fr;
  }

  .commands-container {
    grid-template-columns: 1fr;
  }

  .login-box {
    width: 90%;
    padding: 30px 20px;
  }
}
