:root {
  --primary: #34a853;
  --secondary: #000000;
  --danger: #d32f2f;
  --text: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: #f5f5f5;
  color: var(--secondary);
}

.container {
  max-width: 100%;
  padding: 20px;
}

.logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo img {
  width: 100px;
  height: auto;
}

.mt-20 {
  margin-top: 20px;
}

.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

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

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

button {
  background-color: var(--primary);
  color: var(--text);
  border: none;
  border-radius: 4px;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  font-weight: 500;
  transition: background-color 0.3s;
}

button.secondary {
  background-color: var(--secondary);
  margin-top: 10px;
}

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

.error {
  color: #d32f2f;
  margin-top: 10px;
  text-align: center;
}

.loading {
  text-align: center;
  padding: 20px;
}

.subscription-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.subscription-item:last-child {
  border-bottom: none;
}

.subscription-item:hover {
  background-color: #f9f9f9;
}

.subscription-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
}

.subscription-detail {
  margin-bottom: 5px;
}

.subscription-detail strong {
  font-weight: 500;
}

.device-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.device-table th,
.device-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.device-table th {
  font-weight: 500;
  background-color: #f5f5f5;
}

.action-button {
  padding: 6px 12px;
  font-size: 14px;
  margin-right: 5px;
  width: auto;
}

.manage-button {
  margin-top: 20px;
}

@media (max-width: 600px) {
  .device-table {
    display: block;
    overflow-x: auto;
  }

  .subscription-detail {
    display: block;
    margin-bottom: 10px;
  }
}


@media (min-width: 768px) {
  .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
  }

  .card {
    padding: 30px;
  }

  .card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  button {
    padding: 14px 20px;
  }
}


html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  flex: 1;
}

.footer {
  background-color: var(--secondary);
  color: var(--text);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  bottom: 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 24px;
  width: auto;
}

.footer-logo span {
  font-weight: 500;
}

button[disabled] {
  /* opacity: 0.7; */
  cursor: not-allowed;
}

.make-admin {
  background-color: lightgray;
  color: white;
}

.admin-active {
  background-color: var(--primary);
  /* opacity: 0.5; */
}

.approve-device {
  background-color: orange;
}

/* .fa-android {
  color: #3ddc84;
}

.fa-apple {
  color: #000;
}

.fa-windows {
  color: #0078d7;
}

.fa-linux {
  color: #fcc624;
} */


.link-instructions {
  margin-top: 20px;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 14px;
}

.link-instructions p {
  margin-bottom: 8px;
}



/* Sharing Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.sharing-popup {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
}

.share-options,
.device-selection {
  margin: 20px 0;
}

.share-options label,
.device-selection label {
  display: block;
  margin: 10px 0;
  padding: 8px;
  border-radius: 4px;
}

.share-options label:hover,
.device-selection label:hover {
  background: #f5f5f5;
}

.sharing-popup label input {
  width: auto;
}

.popup-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.save-button {
  background: var(--primary);
  color: white;
}

.cancel-button {
  background: #f0f0f0;
  color: #000;
}

.u-btn-action {
  background: var(--primary);
  color: white;
}

/* Add these new styles */
.share-option {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 4px;
  background: #f9f9f9;
}

.share-option label {
  display: flex;
  align-items: center;
  font-weight: 500;
}

.share-option input[type="checkbox"] {
  margin-right: 10px;
}

.device-selection {
  margin-top: 10px;
  padding: 10px;
  background: white;
  border-radius: 4px;
  border-left: 3px solid var(--primary);
}

.device-selection label {
  display: block;
  padding: 5px;
  font-weight: normal;
  margin: 0;
}

.device-selection h4 {
  margin: 5px 0 10px 0;
  color: var(--primary);
}

.device-selection .all-button {
  float: right;
  padding: 5px;
  font-size: small;
  display: block;
  width: fit-content;
}



/* Rename Popup Styles */
.rename-popup {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
}

.rename-popup h3 {
  margin-bottom: 10px;
}

.rename-popup .form-group {
  margin-bottom: 15px;
}

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

.rename-popup input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.error-message {
  color: #d32f2f;
  font-size: 12px;
  margin-top: 5px;
}