:root {
    --sidebar-width: 140px;
    --header-height: 60px;

    --primary-color: #1a237e;
    --secondary-color: #3146ac;
    --background-color: #ecf0f3;
    --secondary-background-color: #edf2f7;

    --text-color: #1e293b;
    --text-muted: #64748b;
    --card-background: #ffffff;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dark-mode {
    --primary-color: #5a699c;
    --secondary-color: #9da7cf;
    --background-color: #2e2e2e;
    --secondary-background-color: #373940;

    --text-color: #fdfdfd;
    --text-muted: #64748b;
    --card-background: #3e3e3e;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    font-size: 1em;
    height: var(--header-height);
    background-color: var(--primary-color);
    color: white;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 20;
    justify-content: space-between;
}

.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background-color: var(--card-background);
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    z-index: 10;
    gap:10px;
}

.logo {
    width: 80px;
    margin: 1rem;
}

.btn {
    padding: 10px;
    width:110px;
    border-radius: 8px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:disabled {
    background-color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

form .btn {
    width: 100%;
    height: 50px;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.btn i {
    margin-right: 8px;
}

.copy-button {
  padding: 0 10px;
  border-radius: 8px;
  border: 2px solid var(--primary-color);
  background-color: var(--card-background);
  color: var(--secondary-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-button:hover {
  transform: translateY(-2px);
}

.copy-button:active {
  transform: translateY(0);
}

.copy-button.copied {
  background-color: var(--primary-color);
  color: var(--card-background);
}

.button-text {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.button-text.fade-out {
  opacity: 0;
}

.main-window {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 2rem;
    min-height: calc(100vh - var(--header-height));
}



.home-window > div {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

h2 {
  color:var(--primary-color);
  margin-bottom: 25px;
}

.person-selector {
  margin-top: 30px;
}

h3 {
    color:var(--secondary-color);
    font-size: 18px;
    margin-bottom: 15px;
    margin-left: 20px;
}

.person-cards {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.person-card {
  width: 300px;
  height: 300px;
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 20px 50px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: space-evenly;
  border: 5px solid var(--secondary-color);
  align-items: center;
}

.person-card:hover {
  transform: translateY(-5px);
  box-shadow:var(--shadow-lg);
}

.status-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  transition: color 0.2s ease;
}

.status-message--loading {
  color: var(--secondary-color);
}

.status-message--loading::before {
  content: '';
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-right-color: currentColor;
  animation: spin 0.8s linear infinite;
}

.status-message--error {
  color: #dc2626;
}

.status-message--success {
  color: #15803d;
}

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

.avatar {
  background-color: var(--primary-color);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.avatar svg {
  margin: 14px;
}

.avatar svg path {
  fill: var(--card-background);
}

.selected .avatar svg path {
  fill: var(--secondary-background-color);
}

.person-name {
  font-weight: 600;
  font-size: 16px;
  width:110px;
  height: 30px;
  padding-left:7px ;
  color: var(--text-color);
  background-color: var(--secondary-background-color);
  background-color: var(--background-color);
  border: 1px solid var(--secondary-background-color);
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.person-name:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(49, 70, 172, 0.15);
}

.input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15) !important;
}

.selection-status {
  margin-top: 20px;
  font-size: 16px;
  padding: 15px;
  background-color: var(--secondary-background-color);
  border-radius: 12px;
}

.selected-person {
  font-weight: 700;
  color: var(--primary-color);
}

.clip-board-icon {
    width:28px;
    margin-left:10px;
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 60px;
        --header-height: 40px;
    }

    .main-window {
        padding: 1rem ;
    }

    .header {
        padding: 0 1rem;
    }

    .header h1 {
        font-size: 1.3em;
    }

    .btn {
        font-size: 0.75rem;
    }

    .logo {
        width: 40px;
    }
}