/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

body {
  background-color: #f9f9f9;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  box-sizing: border-box;
}

* {
  box-sizing: inherit;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.title, .subtitle {
  font-size: 22px;
  margin-bottom: 20px;
  color: #333;
}

.title {
  font-size: 26px;
}

.content-block {
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.with-background {
  background-color: #fff;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.05);
}

.user-attributes {}

.action-buttons {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  gap: 10px;
}

.logout-button, .draft-contact-button, .login-button {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.logout-button:hover, .draft-contact-button:hover, .login-button:hover {
  background-color: #0056b3;
}

.linked-accounts-container {
  display: grid;
  margin-top: 20px;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  padding: 0;
}

.account-card {
  display: flex;
  flex-direction: column;
  max-width: 300px;
  height: 400px;
  border-radius: 8px;
  padding: 25px 15px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.account-card:hover {
  background-color: #f6f6f6;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.card-header, .card-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.card-header {
  margin-bottom: 10px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
}

.avatar-section {
  flex-shrink: 0;
}

.account-avatar, .default-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.danger-border {
  border: 3px solid #dc3545;
}

.success-border {
  border: 3px solid #28a745;
}

.default-avatar {
  background-color: #ccc;
}

.name-section {
  flex-grow: 1;
  font-size: 1.05rem;
  font-weight: bold;
}

.email-section {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.card-sub-info-section {
  display: flex;
  flex-direction: row;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
}

.card-sub-info-value {
  font-weight: 600;
  padding: 0;
  margin: 0;
}

.delete-button {
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.delete-button:hover .delete-icon {
  transform: scale(1.1); /* subtle zoom on hover */
}

.full-date {
  display: block;
}

.short-date {
  display: none;
}

.card-footer {
  font-size: 0.9rem;
  color: #666;
  margin-top: auto;
}

@media (max-width: 900px) {
  .linked-accounts-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 630px;
  }

  .full-date {
    display: none;
  }

  .short-date {
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .linked-accounts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .account-card {
    width: 90%; /* make the card width responsive for smaller screens */
    margin: 0 auto; /* center the card */
  }
}

/* Form Styles */
.form-group {
  margin-bottom: 15px;
}

.label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.input-field {
  font-size: 16px;
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.input-field:focus {
  border-color: #007bff;
  outline: none;
}

.actions {
  display: flex;
  flex-direction: row;
  justify-content: start;
  gap: 10px;
}

.submit-button {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #0056b3;
}

.action-link {
  color: #007bff;
  text-decoration: none;
  margin-right: 15px; /* space between action link and button */
  transition: color 0.3s;
}

.action-link:hover {
  color: #0056b3;
}
