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

:root {
  --primary: #3f83f8;
  --danger: #e53e3e;
  --success: #28a745;
  --bg-dark: #121212;
  --bg-card: #1e1e1e;
  --bg-modal: #2b2b2b;
  --text: #eee;
  --text-muted: #ccc;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  margin: 0;
  padding: 1rem 3rem;
}

.container {
  max-width: 960px;
  margin: 50px auto;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.logo {
  max-height: 60px;
  display: block;
  margin: 0 auto 2rem;
}

h1, h2, h3 {
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Tiles and Cards */
.card, .tile {
  background: #2b2b2b;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  overflow-x: auto;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.tile .info {
  flex-grow: 1;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.flex .card {
  flex: 1;
  min-width: 280px;
}

/* Buttons */
button {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

button:hover {
  opacity: 0.9;
}

button.danger {
  background: var(--danger);
}

button.danger:hover {
  background: #cc2e2e;
}

/* Inputs */
input, select, textarea {
  margin: 0.25rem 0;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;
  background: #1a1a1a;
  color: var(--text);
}

form input,
form button {
  display: block;
  width: 98%;
  margin-bottom: 1rem;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 8px;
}

form button {
  background: var(--primary);
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background: var(--bg-modal);
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Payment Lists */
#paymentList {
  list-style: none;
  padding-left: 0;
  max-height: 500px;
  overflow-y: auto;
}

#paymentList li {
  border-bottom: 1px solid #333;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.paid {
  color: var(--success);
  font-weight: 700;
  text-shadow: 0 0 5px var(--success);
}

.pending {
  color: var(--danger);
  font-weight: 700;
  text-shadow: 0 0 5px var(--danger);
}

/* Canvas Chart */
canvas {
  max-width: 100%;
  max-height: 400px;
  display: block;
  margin: auto;
}

/* Profile dropdown */
.profile-container {
  position: fixed;
  top: 1rem;
  right: 3rem;
  user-select: none;
}

.profile-btn {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-dropdown {
  display: none;
  position: absolute;
  right: 0;
  background: #222;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
  margin-top: 0.5rem;
  min-width: 160px;
  z-index: 1100;
}

.profile-dropdown.show {
  display: block;
}

.profile-dropdown button {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid #444;
}

.profile-dropdown button:last-child {
  border-bottom: none;
}

.profile-dropdown button:hover {
  background: var(--primary);
  color: white;
}

/* Activity log */
.activity-log ul {
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 8px;
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
}

.activity-log li {
  border-bottom: 1px solid #333;
  padding: 0.5rem 0;
  color: var(--text-muted);
}

.activity-log li:last-child {
  border-bottom: none;
}

.clientCard {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #1e1e1e;
  color: #ddd;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: 0.3s;
}
.clientCard:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.clientMain {
  max-width: 75%;
}
.clientMain strong {
  font-size: 1.2rem;
  display: inline-block;
  margin-bottom: 0.3rem;
  cursor: pointer;
}
.clientMain button {
  margin-top: 0.5rem;
}
.clientNotes {
  background: #2a2a2a;
  padding: 0.8rem;
  border-left: 3px solid #4e8ef7;
  border-radius: 8px;
  max-width: 22%;
  font-size: 0.95rem;
  color: #bbb;
  white-space: pre-wrap;
}
.clientNotes::before {
  content: "Notes";
  display: block;
  font-weight: bold;
  margin-bottom: 0.4rem;
  color: #4e8ef7;
}

#clientsList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
  .container {
    padding: 1rem;
    margin: 20px auto;
  }
  .tile {
    flex-direction: column;
    align-items: flex-start;
  }
  .tile i {
    margin-bottom: 0.5rem;
  }
  .flex {
    flex-direction: column;
  }
  .modal-content {
    padding: 1.25rem;
    width: 90%;
  }
  .profile-container {
    top: 0.5rem;
    right: 1rem;
  }
}



