.cryptlex-licenses-rnd {
  --lic-header-bg: #d6d6d6;
  --lic-text-grey: #555;
  --lic-btn-grey: #6c757d;
  --lic-btn-hover: #5a6268;
  --lic-sidebar-active: #337ab7;
  --input-text-color: #337ab7;
  position: fixed;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid #7a7a7a;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  min-width: 400px;
  min-height: 44px;
}

.cryptlex-licenses-rnd.cryptlex-hidden {
  display: none;
}

.cryptlex-resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  z-index: 50;
}

.licenses-window {
  background-color: #ffffff;
  width: 100%;
  height: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', sans-serif;
  overflow: visible !important;
  font-size: 14px;
  margin: 0;
  padding: 0;
}

.licenses-header {
  background: var(--lic-header-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  height: 44px;
  min-height: 44px;
  cursor: move;
  margin: 0;
  width: 100%;
  border-bottom: 1px solid #aaa;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: visible !important;
}

.licenses-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
  color: #484848;
  line-height: 30px;
}

.main-body {
  display: flex;
  flex-grow: 1;
  min-height: 0;
  overflow: visible !important;
}

.tab-actions-bar h3,
.tab-header h3 {
  margin: 0;
  font-size: 15px;
  color: var(--lic-text-grey);
  font-weight: bold;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  width: 360px;
  text-align: center;
  border: 1px solid #ccc;
}

.modal-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.modal-btn {
  background: var(--lic-btn-grey);
  color: #fff;
  border: none;
  padding: 10px 30px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  min-width: 100px;
  transition: background 0.2s;
}
.modal-btn:hover { background: var(--lic-btn-hover); }

.login-view {
  width: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}
.login-form {
  background: #fff;
  padding: 40px 50px;
  border-radius: 4px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--lic-text-grey);
}
.field input {
  width: 100%;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
  background: #f9f9f9;
}
.field input:focus { border-color: var(--input-text-color); border-width: 1.5px; background: #fff; outline: none;}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--lic-btn-grey);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  margin-top: 10px;
  transition: background 0.2s;
}
.submit-btn:hover { background: var(--lic-btn-hover); }
.error-msg { color: #dc3545; font-size: 13px; margin-top: 15px; text-align: center; }

.sidebar {
  width: 200px;
  min-width: 200px;
  background: #fff;
  color: #333;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid #eee;
  border-left: none;
  order: 1;
  overflow-y: auto;
}

.content-area {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  background: #fff;
  order: 2;
  display: flex;
  flex-direction: column;
  overflow-x: hidden !important;
}

.sidebar-item { padding: 14px 18px; cursor: pointer; display: flex; align-items: center; gap: 12px; font-size: 14px; border-left: 3px solid transparent; }
.sidebar-item:hover { background: #f8f9fa; }

.sidebar-item.active {
  background: var(--lic-sidebar-active);
  border-left: 3px solid var(--lic-sidebar-active);
  color: #ffffff;
  font-weight: 500;
}

.sidebar-footer { margin-top: auto; padding: 18px; border-top: 1px solid #eee; }
.logout-btn { background: none; border: none; color: #dc3545; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 14px;}

.tab-container { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.tab-header, .tab-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  min-height: 35px;
  flex-shrink: 0;
}

.small-clear-btn {
  padding: 0px 8px;
  font-size: 11px;
  cursor: pointer;
  background: #dc3545;
  border: 1px solid #dc3545;
  color: #fff;
  border-radius: 3px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}
.small-clear-btn:hover { background: #c82333; }

.search-container { display: flex; align-items: center; gap: 10px; }
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px 8px;
  background: #fff;
  width: 250px;
}
.search-input-wrapper:focus-within { border-color: var(--input-text-color); border-width: 1.5px; box-shadow: none; }
.search-input-wrapper input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 13px;
  margin-left: 6px;
  color: #333;
}
.search-icon { color: #888; font-size: 12px; }
.search-clear-btn {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}
.search-clear-btn:hover { color: #555; }

.refresh-btn {
  background: #fff;
  border: 1px solid #ccc;
  color: #555;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.refresh-btn:hover { background: #f0f0f0; border-color: #bbb; }
.refresh-btn:active { background: #e0e0e0; }

.table-wrapper {
  overflow: visible;
  border: 1px solid #eee;
}
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  background: #f8f9fa;
  padding: 12px;
  text-align: center;
  border-bottom: 2px solid #ddd;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  text-align: center;
  vertical-align: middle;
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
}

.col-version { width: 150px; word-wrap: break-word; white-space: normal; }
.col-actions { width: 50px; text-align: center; position: relative; }
.action-btn { background: none; border: none; cursor: pointer; color: #555; padding: 6px; border-radius: 3px; font-size: 14px; }
.action-btn:hover { background: #eee; }

.action-menu { position: absolute; right: 35px; top: 0; background: #333; color: #fff; z-index: 100; border-radius: 4px; width: 150px; text-align: left; box-shadow: 0 3px 10px rgba(0,0,0,0.2); }
.action-menu-item { padding: 10px 14px; cursor: pointer; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.action-menu-item:hover { background: #555; }

.releases-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.release-card { border: 1px solid #eee; padding: 14px; border-radius: 4px; background: #fafafa; }
.rel-title { font-weight: bold; margin-bottom: 6px; color: #007bff; font-size: 14px;}
.rel-date { font-size: 12px; color: #666; margin-bottom: 10px; }
.file-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-top: 6px; padding-top: 6px; border-top: 1px solid #eee; }
.download-btn { background: #28a745; color: white; padding: 5px 12px; text-decoration: none; border-radius: 3px; font-size: 12px; font-weight: bold;}

.profile-card { padding: 18px; border: 1px solid #eee; border-radius: 4px; max-width: 100%; }
.profile-row { margin-bottom: 14px; display: flex; border-bottom: 1px solid #f9f9f9; padding-bottom: 6px; font-size: 14px;}
.profile-row label {
  width: 130px;
  font-weight: 600;
  color: var(--lic-text-grey);
}
.empty-msg { text-align: center; padding: 25px; color: #999; }

.link-btn {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  padding: 5px 0;
  margin-top: 15px;
  display: block;
  width: 100%;
  text-align: center;
}
.link-btn:hover {
  color: #0056b3;
}

.form-title {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  margin-top: 0;
}

.otp-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.otp-input {
  width: 34px !important;
  min-width: 0 !important;
  height: 42px !important;
  padding: 0 !important;
  margin: 0;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 40px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f9f9f9;
  outline: none;
  color: #333;
  box-sizing: border-box;
  transition: all 0.2s;
}

.otp-input:focus {
  border-color: #007bff;
  background: #fff;
  border-width: 2px;
  transform: scale(1.05);
  z-index: 10;
}

.otp-divider {
  font-size: 20px;
  font-weight: bold;
  color: #aaa;
  margin: 0 4px;
}

.login-buttons-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 25px;
}

.btn-login-blue {
  flex: 1;
  background-color: #4a76a8;
  color: #fff;
  border: 1px solid #4a76a8;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: normal;
  transition: opacity 0.2s;
}
.btn-login-blue:hover {
  opacity: 0.9;
}
.btn-login-blue:disabled {
  background-color: #8da4c5;
  cursor: not-allowed;
}

.btn-login-white {
  flex: 1;
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-login-white:hover {
  background-color: #f5f5f5;
  border-color: #bbb;
}

.link-btn-left {
  background: none;
  border: none;
  color: #4a76a8;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  margin: 0;
}
.link-btn-left:hover {
  text-decoration: underline;
}

.login-form .submit-btn,
.login-form .link-btn {
  display: none;
}

.compact-form {
  padding: 25px 30px !important;
  max-width: 420px !important;
}

.compact-field {
  margin-bottom: 5px !important;
}
.compact-field label {
  margin-bottom: 3px !important;
  color: #333 !important;
  font-weight: 600 !important;
}
.compact-field input {
  height: 34px !important;
  padding: 4px 8px !important;
}

.login-buttons-row.compact-row.centered-buttons-row {
  margin-top: 5px !important;
  display: flex;
  justify-content: center !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  gap: 60px;
}

.wide-btn {
  flex: unset !important;
  width: 140px !important;
  height: 34px !important;
  padding: 0 !important;
  border-radius: 4px !important;
  cursor: pointer;
  font-size: 15px !important;
  font-weight: normal !important;
  margin-bottom: 0 !important;
}

.btn-login-blue.wide-btn {
  background-color: #337ab7 !important;
  border: 1px solid #2e6da4 !important;
  color: #fff !important;
}
.btn-login-blue.wide-btn:hover { opacity: 0.9; }

.btn-login-white.wide-btn {
  background-color: #fff !important;
  border: 1px solid #ccc !important;
  color: #333 !important;
}
.btn-login-white.wide-btn:hover { background-color: #f5f5f5 !important; }

.forgot-pass-container {
  margin-top: 5px !important;
  text-align: left !important;
}
.link-btn-left {
  font-size: 13px !important;
  color: #337ab7 !important;
  text-decoration: none;
}
.link-btn-left:hover { text-decoration: underline; }

.error-msg.compact-error {
  margin-top: 10px !important;
}

.otp-input {
  height: 34px !important;
  width: 34px !important;
  line-height: 32px !important;
  font-size: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 4px !important;
}

.otp-divider {
  line-height: 34px !important;
  margin: 0 5px !important;
}

.btn-login-blue:hover,
.submit-btn:hover {
  background-color: #365b85 !important;
  border-color: #365b85 !important;
  opacity: 1 !important;
}

.btn-login-blue:active,
.submit-btn:active {
  background-color: #2a4a6e !important;
  border-color: #2a4a6e !important;
  transform: translateY(1px);
}

.btn-login-white:hover {
  background-color: #e6e6e6 !important;
  border-color: #adadad !important;
}
.btn-login-white:active {
  background-color: #d4d4d4 !important;
}

.compact-field {
  margin-bottom: 5px !important;
}

.login-view,
.login-form {
  background-color: #f2f2f2 !important;
  box-shadow: none !important;
  border: none !important;
}

.field input {
  background-color: #ffffff !important;
  border: 1px solid #ccc !important;
}

.otp-input {
  background-color: #ffffff !important;
  border: 1px solid #ccc !important;
}

.field input:focus,
.otp-input:focus {
  background-color: #ffffff !important;
  border-color: #007bff !important;
}

.cryptlex-header-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #484848;
  font-size: 16px;
  padding: 4px 6px;
  line-height: 1;
}
.cryptlex-header-btn:hover {
  opacity: 0.8;
}

.cryptlex-licenses-rnd .data-table th,
.cryptlex-licenses-rnd .data-table td,
.cryptlex-licenses-rnd input,
.cryptlex-licenses-rnd button,
.cryptlex-licenses-rnd label {
  font-family: 'Segoe UI', sans-serif;
}

.cryptlex-licenses-rnd input[data-input] {
  margin: 0;
}
