/* ===========================
 * n-login Component Styles
 * =========================== */

n-login .login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

n-login .login-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

n-login .login-header {
    text-align: center;
    margin-bottom: 2rem;
}

n-login .login-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

n-login .login-subtitle {
    
    margin: 0.5rem 0 0 0;
}

n-login .admin-icon::before {
    content: "🔒";
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

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

n-login .login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

n-login .login-form input {
    width: 100%;
    padding: 0.75rem;
    
    border-radius: 0.25rem;
    font-size: 1rem;
}

n-login .login-form input:focus {
    outline: none;
    
    
}

n-login .login-form input:disabled {
    background-color: #e9ecef;
    opacity: 0.6;
}

n-login .error-message {
    padding: 0.75rem;
    margin-bottom: 1rem;    
    border-radius: 0.25rem;    
    text-align: center;
}

n-login .btn-submit {
    width: 100%;
    padding: 0.75rem;
    
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

n-login .btn-submit:hover:not(:disabled) {
    
}

n-login .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/* ===========================
 * n-builder Component Styles
 * =========================== */

n-builder [slot="header-right"] {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

n-builder .btn-save {
    padding: 0.5rem 1.5rem;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 0.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

n-builder .btn-save:hover:not(:disabled) {
    background: #0b5ed7;
}

n-builder .btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

n-builder .unsaved-indicator {
    color: #fd7e14;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

n-builder .unsaved-indicator::before {
    content: "⚠️";
}

n-builder .loading-container {
    text-align: center;
    padding: 3rem;
}

n-builder .error-container {
    padding: 1rem;
    margin: 1rem;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 0.25rem;
    color: #721c24;
}

n-builder .builder-container {
    padding: 2rem;
}

n-builder .form-title {
    margin: 0 0 2rem 0;
    color: #495057;
    font-size: 1.25rem;
}

n-builder .builder-breadcrumbs {
    padding: 1rem 2rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

n-builder .builder-breadcrumbs a {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
}

n-builder .builder-breadcrumbs a:hover {
    text-decoration: underline;
    color: #0056b3;
}

n-builder .breadcrumb-separator {
    color: #6c757d;
    margin: 0 0.25rem;
}

n-builder .breadcrumb-current {
    color: #495057;
    font-weight: 500;
}

/* ===========================
 * Responsive Adjustments
 * =========================== */

@media (max-width: 768px) {
    n-login .login-card {
        margin: 1rem;
    }
    
    n-builder .builder-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    n-builder .builder-header-left {
        flex-direction: column;
    }
}
.form-list-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.form-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.form-list-header h2 {
  margin: 0;
  font-size: 1.75rem;
  color: #333;
}

.create-form-container {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-error {
  color: #721c24;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn {
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.btn-primary:hover:not(:disabled) {
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  border-color: #6c757d;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #545b62;
  border-color: #545b62;
}

.btn-outline-primary {
  background-color: white;
  color: #007bff;
  border-color: #007bff;
}

.btn-outline-primary:hover:not(:disabled) {
  background-color: #007bff;
  color: white;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.form-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-table thead {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

.form-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #333;
}

.form-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #dee2e6;
}

.form-table tbody tr:hover {
  background-color: #f8f9fa;
}

.form-table tbody tr:last-child td {
  border-bottom: 2px solid #dee2e6;
}

.form-link {
  color: #007bff;
  text-decoration: none;
  cursor: pointer;
}

.form-link:hover {
  text-decoration: underline;
  color: #0056b3;
}

.loading-container {
  text-align: center;
  padding: 3rem;
}

.spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: #666;
  margin: 0;
}

.form-list-empty {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-size: 1.1rem;
}

.alert {
  padding: 1rem;
  margin-bottom: 2rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-danger strong {
  color: #721c24;
}

@media (max-width: 768px) {
  .form-list-container {
    padding: 1rem;
  }

  .form-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .form-table {
    font-size: 0.875rem;
  }

  .form-table th,
  .form-table td {
    padding: 0.5rem;
  }
}
.subscriber-list-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.subscriber-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.subscriber-header h2 {
  margin: 0;
  font-size: 1.75rem;
  color: #333;
}

.add-subscriber-form {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn {
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.btn-primary:hover:not(:disabled) {
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  border-color: #6c757d;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #545b62;
  border-color: #545b62;
}

.btn-warning {
  background-color: #ffc107;
  color: #212529;
  border-color: #ffc107;
}

.btn-warning:hover:not(:disabled) {
  background-color: #e0a800;
  border-color: #d39e00;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  border-color: #dc3545;
}

.btn-danger:hover:not(:disabled) {
  background-color: #c82333;
  border-color: #bb2d3b;
}

.btn-outline-primary {
  background-color: white;
  color: #007bff;
  border-color: #007bff;
}

.btn-outline-primary:hover:not(:disabled) {
  background-color: #007bff;
  color: white;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.subscriber-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.subscriber-table thead {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

.subscriber-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #333;
}

.subscriber-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #dee2e6;
}

.subscriber-table tbody tr:hover {
  background-color: #f8f9fa;
}

.subscriber-table tbody tr:last-child td {
  border-bottom: 2px solid #dee2e6;
}

.subscriber-table td:last-child {
  display: flex;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-success {
  background-color: #d4edda;
  color: #155724;
}

.badge-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.pagination {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  
  padding: 1rem 1rem 1rem 0em;
  margin-top: 2rem;
}

.pagination-info {
  color: #666;
  font-weight: 500;
  min-width: 120px;
  text-align: center;
}

.loading-container {
  text-align: center;
  padding: 3rem;
}

.spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: #666;
  margin: 0;
}

.subscriber-empty {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-size: 1.1rem;
}

.alert {
  padding: 1rem;
  margin-bottom: 2rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-danger strong {
  color: #721c24;
}

@media (max-width: 768px) {
  .subscriber-list-container {
    padding: 1rem;
  }

  .subscriber-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .subscriber-table {
    font-size: 0.875rem;
  }

  .subscriber-table th,
  .subscriber-table td {
    padding: 0.5rem;
  }

  .subscriber-table td:last-child {
    flex-direction: column;
  }

  .pagination {
    flex-wrap: wrap;
  }
}
n-logout .logout-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
}

n-logout .user-name {
    font-size: 0.875rem;
}

n-logout .btn-logout {
    padding: 0.5rem 1rem;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

n-logout .btn-logout:hover {
    background-color: #c82333;
}

n-logout .btn-logout:active {
    background-color: #bd2130;
}
/* ===========================
 * n-approval-list Component Styles
 * =========================== */

n-approval-list .approval-tabs {
    background-color: #fff !important;
}
n-approval-list .approval-tab {
    /* border: 0px !important; */
    border-top-left-radius: 6px !important;
    border-top-right-radius: 6px !important;
    background-color:  #6f44c0!important;
    color: #fff !important;
    border: 1px solid #6f44c0 !important;
}


n-approval-list .approval-tab__btn{

    color: #fff !important;
}
n-approval-list .approval-tab__btn--active {
    background-color: #9964f7 !important;
    border: 1px solid #9964f7 !important;
    color: #fff !important;
}

n-approval-list .approval-tab__btn--active:hover {
    
}
