/*********************************************************************************
 * This file is part of Myddleware.
 * 
 * @package Myddleware
 * @copyright Copyright (C) 2013 - 2023  Myddleware ltd - contact@myddleware.com
 * @link http://www.myddleware.com
 * 
 * This file is part of Myddleware.
 * 
 * Myddleware is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Myddleware is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Myddleware.  If not, see <http://www.gnu.org/licenses/>.
*********************************************************************************/

/* Card-based Account Page Styles */

/* Center the layout in a card container */
#account-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #f5f5f5;
  padding: 2rem;
}

.account-card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 600px;
}

/* Unify font and spacing */
.account-card h1, 
.account-card h2, 
.account-card h3 {
  font-family: 'Inter', 'Roboto', sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

.account-card label {
  font-family: 'Inter', 'Roboto', sans-serif;
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

.account-card input, 
.account-card select {
  width: 60%;
  padding: 0.6rem;
  border: 2px solid #efefef;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: 'Inter', 'Roboto', sans-serif;
}

/* Tab buttons (General | Security) */
.tab-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-group .tab {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  background-color: #f0f0f0;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', 'Roboto', sans-serif;
}

.tab-group .tab.active {
  color: #fff;
}

/* Form grouping and headings */
.account-card h3 {
  margin-top: 2rem;
  font-size: 1.25rem;
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

/* Password strength meter */
.password-strength-meter {
  height: 6px;
  background-color: #e0e0e0;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 3px;
  overflow: hidden;
  width: 60% !important;
}

#password-strength-bar {
  height: 100%;
  width: 0;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-weak {
  background-color: #dc3545;
  width: 30% !important;
}

.strength-medium {
  background-color: #ffc107;
  width: 60% !important;
}

.strength-strong {
  background-color: #28a745;
  width: 100% !important;
}

/* Log Buttons Styling */
.btn-log {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 8px;
  margin-right: 0.5rem;
}

.btn-download {
  background-color: #444;
  color: white;
}

.btn-download:hover {
  background-color: #333;
}

.btn-delete {
  background-color: #ffc107;
  color: black;
}

.btn-delete:hover {
  background-color: #e0a800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #account-container {
    padding: 1rem;
  }
  
  .account-card {
    padding: 1.5rem;
  }
} 