/**
 * Stylování login formuláře pro Lordship File Manager
 */

.lfm-login-form {
  max-width: 400px;
  width: 100%;
  margin: 80px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  font-family: Arial, sans-serif;
}

.lfm-login-header {
  text-align: center;
  margin-bottom: 30px;
}

.lfm-login-header h1 {
  margin: 0 0 15px 0;
  color: #73123d;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 1px;
}

.lfm-login-header p {
  margin: 0;
  color: #666;
  font-size: 15px;
}

/* Formulářové prvky */
.lfm-login-form .login-username,
.lfm-login-form .login-password,
.lfm-login-form .login-remember,
.lfm-login-form .login-submit {
  margin-bottom: 20px;
}

.lfm-login-form label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.lfm-login-form .login-remember label {
  display: inline-flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
}

.lfm-login-form .input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
  color: #333;
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.lfm-login-form .input:focus {
  border-color: #73123d;
  outline: none;
  box-shadow: 0 0 0 2px rgba(115, 18, 61, 0.2);
}

.lfm-login-form #rememberme {
  margin-right: 8px;
  cursor: pointer;
}

/* Tlačítko přihlášení */
.lfm-login-form .button-primary {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(to bottom, #73123d, #600f30);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lfm-login-form .button-primary:hover {
  background: linear-gradient(to bottom, #841548, #73123d);
}

.lfm-login-form .button-primary:active {
  transform: translateY(1px);
}

/* Odkaz zapomenuté heslo */
.lfm-login-footer {
  margin-top: 25px;
  text-align: center;
  font-size: 14px;
}

.lfm-login-footer a {
  color: #73123d;
  text-decoration: none;
  transition: color 0.2s;
}

.lfm-login-footer a:hover {
  color: #9d1a53;
  text-decoration: underline;
}

/* Responzivita */
@media (max-width: 480px) {
  .lfm-login-form {
    padding: 30px 20px;
    margin: 40px auto;
  }

  .lfm-login-header h1 {
    font-size: 24px;
  }

  .lfm-login-form .input,
  .lfm-login-form .button-primary {
    padding: 10px;
  }
}

/* Volitelné: Logo nad formulářem */
.lfm-login-logo {
  display: block;
  margin: 0 auto 20px;
  max-width: 100px;
  height: auto;
}

/**
 * Updated Frontend styles for Lordship File Manager
 */

.lfm-file-browser {
  margin: 0 auto;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.lfm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(to bottom, #73123d, #600f30);
  color: #fff;
}

.lfm-logo {
  display: flex;
  align-items: center;
}

.lfm-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.lfm-logo-img {
  height: 80px;
}

.lfm-logo h1 {
  margin: 0;
  padding: 0;
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 1px;
}

.lfm-user-info {
  display: flex;
  align-items: center;
  font-size: 0.9em;
}

.lfm-separator {
  margin: 0 10px;
}

.lfm-logout-link {
  color: #fff;
  text-decoration: none;
}

.lfm-logout-link:hover {
  text-decoration: underline;
}

/* Content */
.lfm-content {
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 20px;
  margin-bottom: 20px;
  flex: 1;
  width: 100%;
}

/* File list with folders */
.lfm-file-list {
  border-top: 1px solid #e5e7eb;
}

.lfm-folder-item {
  border-bottom: 1px solid #e5e7eb;
}

.lfm-folder-header {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  position: relative;
}

.lfm-folder-toggle,
.lfm-folder-toggle-placeholder {
  width: 20px;
  margin-right: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lfm-folder-toggle .dashicons-plus {
  display: block;
}

.lfm-folder-toggle .dashicons-minus {
  display: none;
}

.lfm-folder-toggle.expanded .dashicons-plus {
  display: none;
}

.lfm-folder-toggle.expanded .dashicons-minus {
  display: block;
}

.lfm-folder-link {
  display: flex;
  align-items: center;
  flex-grow: 1;
  color: #333;
  text-decoration: none;
}

.lfm-folder-icon {
  margin-right: 10px;
  color: #fbbf24; /* Yellow color for folder icon */
}

.lfm-folder-name {
  font-weight: normal;
}

.lfm-folder-action {
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.2s;
}

.lfm-folder-header:hover .lfm-folder-action {
  opacity: 1;
}

.lfm-folder-action .dashicons-plus-alt2 {
  display: inline-block;
}

.lfm-folder-action .dashicons-minus {
  display: none;
}

.lfm-folder-header:hover .lfm-folder-action .dashicons-plus-alt2 {
  display: none;
}

.lfm-folder-header:hover .lfm-folder-action .dashicons-minus {
  display: inline-block;
}

/* Indentation for nested folders */
.lfm-folder-item.level-1 .lfm-folder-header {
  padding-left: 40px;
}

.lfm-folder-item.level-2 .lfm-folder-header {
  padding-left: 60px;
}

.lfm-folder-item.level-3 .lfm-folder-header {
  padding-left: 80px;
}

/* Active folder */
.lfm-folder-item.active > .lfm-folder-header {
  background-color: #f9fafb;
}

.lfm-folder-item.active > .lfm-folder-header .lfm-folder-name {
  font-weight: bold;
}

/* Files container */
.lfm-files-container {
  padding: 10px 20px 20px 45px;
  background-color: #f9fafb;
}

.lfm-file-item {
  padding: 8px 0;
}

.lfm-file-item a {
  display: flex;
  align-items: center;
  color: #333;
  text-decoration: none;
}

.lfm-file-icon {
  margin-right: 10px;
}

.lfm-file-icon .dashicons-pdf {
  color: #e53e3e; /* Red color for PDF icon */
}

.lfm-file-icon .dashicons-media-document,
.lfm-file-icon .dashicons-media-text {
  color: #3182ce; /* Blue color for document icons */
}

.lfm-file-icon .dashicons-media-spreadsheet {
  color: #2f855a; /* Green color for spreadsheet icon */
}

.lfm-file-icon .dashicons-format-image {
  color: #805ad5; /* Purple color for image icon */
}

.lfm-file-name {
  font-size: 0.95em;
}

/* Empty folder message */
.lfm-empty-folder {
  padding: 15px 15px 15px 45px;
  color: #666;
  font-style: italic;
  background-color: #f9fafb;
}

/* Footer */
.lfm-footer {
  padding: 15px 20px;
  background-color: #f5f5f5;
  border-top: 1px solid #e5e7eb;
  color: #666;
  font-size: 0.9em;
  text-align: right;
}

.lfm-footer a {
  color: #666;
  text-decoration: underline;
}

.lfm-footer a:hover {
  text-decoration: underline;
}

/* Modal */
.lfm-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.lfm-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
  max-width: 400px;
  border-radius: 5px;
  position: relative;
}

.lfm-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  margin-top: -15px;
}

.lfm-modal-close:hover {
  color: #000;
}

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

.lfm-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.lfm-form-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.lfm-form-actions {
  margin-top: 20px;
  text-align: right;
}

.lfm-form-actions button {
  padding: 8px 15px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .lfm-header {
    flex-direction: column;
    text-align: center;
  }

  .lfm-user-info {
    margin-top: 10px;
  }

  .lfm-modal-content {
    width: 90%;
  }
}
/**
 * CSS pro vnořené soubory v Lordship File Manager
 */

/* Tuto část vložte do vašeho existujícího CSS */

/* Folder content - obsahuje soubory a podsložky */
.lfm-folder-content {
  padding-left: 20px;
}

/* Levely složek - upraveno pro vnořené soubory */
.lfm-folder-item.level-1 .lfm-folder-header {
  padding-left: 40px;
}
.lfm-folder-item.level-1 .lfm-folder-content {
  padding-left: 40px;
}

.lfm-folder-item.level-2 .lfm-folder-header {
  padding-left: 40px;
}
.lfm-folder-item.level-2 .lfm-folder-content {
  padding-left: 33px;
}

.lfm-folder-item.level-3 .lfm-folder-header {
  padding-left: 60px;
}
.lfm-folder-item.level-3 .lfm-folder-content {
  padding-left: 53px;
}

.lfm-folder-item.level-4 .lfm-folder-header {
  padding-left: 100px;
}
.lfm-folder-item.level-4 .lfm-folder-content {
  padding-left: 100px;
}

.lfm-folder-item.level-5 .lfm-folder-header {
  padding-left: 120px;
}
.lfm-folder-item.level-5 .lfm-folder-content {
  padding-left: 120px;
}

/* Files container */
.lfm-file-item {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.lfm-file-item a {
  display: flex;
  align-items: center;
  color: #333;
  text-decoration: none;
  padding: 5px 0 5px 10px;
}

.lfm-file-item a:hover {
  background-color: #f5f5f5;
}

.lfm-file-icon {
  margin-right: 10px;
}

.lfm-file-icon .dashicons-pdf {
  color: #e53e3e; /* Red color for PDF icon */
}

.lfm-file-icon .dashicons-media-document,
.lfm-file-icon .dashicons-media-text {
  color: #3182ce; /* Blue color for document icons */
}

.lfm-file-icon .dashicons-media-spreadsheet {
  color: #2f855a; /* Green color for spreadsheet icon */
}

.lfm-file-icon .dashicons-format-image {
  color: #805ad5; /* Purple color for image icon */
}

.lfm-file-name {
  font-size: 0.95em;
}

/* Empty folder message */
.lfm-empty-folder {
  padding: 10px;
  color: #666;
  font-style: italic;
  text-align: center;
  background-color: #f9fafb;
  margin: 10px 0;
  border-radius: 4px;
}

/**
 * Stylování stránky zapomenutého hesla pro Lordship File Manager
 */

/* Základní kontejner */
.lfm-lost-password-form {
  max-width: 400px;
  width: 100%;
  margin: 80px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  font-family: Arial, sans-serif;
}

/* Hlavička */
.lfm-lost-password-header {
  text-align: center;
  margin-bottom: 30px;
}

.lfm-lost-password-header h1 {
  margin: 0 0 15px 0;
  color: #73123d;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 1px;
}

.lfm-lost-password-header p {
  margin: 0 0 20px 0;
  color: #666;
  font-size: 15px;
  line-height: 1.5;
}

/* Logo */
.lfm-lost-password-logo {
  display: block;
  margin: 0 auto 20px;
  max-width: 100px;
  height: auto;
}

/* Formulářové prvky */
.lfm-lost-password-form form {
  margin-bottom: 25px;
}

.lfm-lost-password-form .form-group {
  margin-bottom: 20px;
}

.lfm-lost-password-form label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.lfm-lost-password-form .input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
  color: #333;
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.lfm-lost-password-form .input:focus {
  border-color: #73123d;
  outline: none;
  box-shadow: 0 0 0 2px rgba(115, 18, 61, 0.2);
}

/* Tlačítko odeslání */
.lfm-lost-password-form .button-primary {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(to bottom, #73123d, #600f30);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lfm-lost-password-form .button-primary:hover {
  background: linear-gradient(to bottom, #841548, #73123d);
}

.lfm-lost-password-form .button-primary:active {
  transform: translateY(1px);
}

/* Informační zprávy */
.lfm-lost-password-message {
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
}

.lfm-lost-password-message.info {
  background-color: #ebf5ff;
  border-left: 4px solid #3498db;
  color: #0d3c61;
}

.lfm-lost-password-message.success {
  background-color: #e7f9f0;
  border-left: 4px solid #2ecc71;
  color: #1d6942;
}

.lfm-lost-password-message.error {
  background-color: #ffe8e6;
  border-left: 4px solid #e74c3c;
  color: #7f2a22;
}

/* Footer */
.lfm-lost-password-footer {
  margin-top: 25px;
  text-align: center;
  font-size: 14px;
}

.lfm-lost-password-footer a {
  color: #73123d;
  text-decoration: none;
  transition: color 0.2s;
}

.lfm-lost-password-footer a:hover {
  color: #9d1a53;
  text-decoration: underline;
}

/* Responzivita */
@media (max-width: 480px) {
  .lfm-lost-password-form {
    padding: 30px 20px;
    margin: 40px auto;
  }

  .lfm-lost-password-header h1 {
    font-size: 24px;
  }

  .lfm-lost-password-form .input,
  .lfm-lost-password-form .button-primary {
    padding: 10px;
  }
}

/* Celý řádek složky je klikatelný */
.lfm-folder-header {
  cursor: pointer;
  transition: background-color 0.2s;
}

.lfm-folder-header:hover {
  background-color: #f5f5f5;
}

/* Vylepšení vizuální zpětné vazby pro ikony +/- */
.lfm-folder-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.lfm-folder-toggle .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

/* Animace rotace pro ikony */
.lfm-folder-toggle.expanded .dashicons-plus {
  transform: rotate(45deg);
}

/* === Pozadí stránky === */
body.lfm-login {
  background-color: #f5f5f5;
  font-family: Arial, sans-serif;
}

/* === Logo, volitelně === */
.wp-login-logo {
  background: linear-gradient(to bottom, #841548, #73123d);
}

/* === Login box === */
.lfm-login-form {
  width: 400px;
  max-width: 90%;
  padding: 40px;
  margin: 80px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.lfm-login-header {
  text-align: center;
  margin-bottom: 30px;
}

.lfm-login-header h1 {
  margin: 0 0 15px;
  color: #73123d;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 1px;
}

.lfm-login-header p {
  margin: 0;
  color: #666;
  font-size: 15px;
}

/* === Formulářové prvky === */
.lfm-login-form label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.lfm-login-form .input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
  color: #333;
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: none;
}

.lfm-login-form .input:focus {
  border-color: #73123d;
  outline: none;
  box-shadow: 0 0 0 2px rgba(115, 18, 61, 0.2);
}

/* === Zapamatovat si === */
.lfm-login-form .login-remember {
  margin-bottom: 15px;
}

.lfm-login-form .login-remember label {
  display: inline-flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
}

.lfm-login-form #rememberme {
  margin-right: 8px;
  cursor: pointer;
}

/* === Tlačítko přihlášení === */
.lfm-login-form .button-primary {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(to bottom, #73123d, #600f30);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: none;
  text-shadow: none;
  height: auto;
  line-height: normal;
}

.lfm-login-form .button-primary:hover {
  background: linear-gradient(to bottom, #841548, #73123d);
}

.lfm-login-form .button-primary:active {
  transform: translateY(1px);
}

/* === Footer odkazy === */
.lfm-login-footer {
  margin-top: 25px;
  text-align: center;
  font-size: 14px;
}

.lfm-login-footer a {
  color: #73123d;
  text-decoration: none;
  transition: color 0.2s;
}

.lfm-login-footer a:hover {
  color: #9d1a53;
  text-decoration: underline;
}

/* === Chybové & info zprávy (volitelné použití) === */
.lfm-login-message {
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  border-left-width: 4px;
}

.lfm-login-message.error {
  background-color: #ffe8e6;
  border-left-color: #e74c3c;
  color: #7f2a22;
}

.lfm-login-message.info {
  background-color: #ebf5ff;
  border-left-color: #3498db;
  color: #0d3c61;
}

.lfm-login-message.success {
  background-color: #e7f9f0;
  border-left-color: #2ecc71;
  color: #1d6942;
}

/* === Responzivita === */
@media (max-width: 480px) {
  .lfm-login-form {
    padding: 30px 20px;
    margin: 40px auto;
  }

  .lfm-login-form .input,
  .lfm-login-form .button-primary {
    padding: 10px;
  }

  .lfm-login-header h1 {
    font-size: 24px;
  }
}

/* Alerts pro změnu hesla */
.lfm-alert {
  padding: 10px 15px;
  margin: 15px 0;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.lfm-alert-success {
  background-color: #e7f9f0;
  border: 1px solid #2ecc71;
  color: #1d6942;
}

.lfm-alert-error {
  background-color: #ffe8e6;
  border: 1px solid #e74c3c;
  color: #7f2a22;
}

/* === Responzivita === */
@media (max-width: 480px) {
  .lfm-login-form {
    padding: 30px 20px;
    margin: 40px auto;
  }

  .lfm-login-form .input,
  .lfm-login-form .button-primary {
    padding: 10px;
  }

  .lfm-login-header h1 {
    font-size: 24px;
  }
}

/* Modal dialog pro změnu hesla */
.lfm-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.lfm-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
  position: relative;
}

.lfm-modal-close {
  position: absolute;
  top: 26px;
  right: 15px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.lfm-modal-close:hover {
  color: #333;
}

.lfm-modal h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #73123d;
  font-size: 22px;
  text-align: center;
}

.lfm-form-group {
  margin-bottom: 20px;
}

.lfm-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.lfm-form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
  color: #333;
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.lfm-form-group input:focus {
  border-color: #73123d;
  outline: none;
  box-shadow: 0 0 0 2px rgba(115, 18, 61, 0.2);
}

.lfm-form-actions {
  margin-top: 20px;
  text-align: center;
}

.lfm-form-actions .button-primary {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(to bottom, #73123d, #600f30);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  min-width: 120px;
}

.lfm-form-actions .button-primary:hover {
  background: linear-gradient(to bottom, #841548, #73123d);
}

.lfm-form-actions .button-primary:active {
  transform: translateY(1px);
}

a:where(:not(.wp-element-button)) {
  text-decoration: none;
}