/* Global Styles */
html, body {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
  }
  
  /* Header Styles */
  .main-header {
    background-color: #000000;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .header-container {
    max-width: 1400px;
    width: 94%;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo-container {
    display: flex;
    align-items: center;
  }
  
  .logo-link {
    text-decoration: none;
    display: flex;
    align-items: baseline;
  }
  
  .portal-name {
    color: white;
    font-size: 17px;
    font-weight: 700;
    margin-right: 5px;
  }
  
  .portal-type {
    color: #3498db;
    font-size: 13px;
    font-weight: 400;
  }.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-right {
    display: flex;
    align-items: center;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-right: 20px;
}

.main-menu li {
    margin-left: 20px;
}

.main-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.main-menu a:hover {
    color: #4CAF50;
}

.main-menu i {
    font-size: 16px;
}
  
.profile-nav {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 20px;
}
  
.profile-nav li {
    margin-left: 20px;
}
  
.profile-nav a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}
  
.profile-nav a:hover {
    color: #3498db;
}
  
  /* Main Content Styles */
  .main-content {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
  }
  
  .container {
    max-width: 1400px;
    width: 94%;
    margin: 0 auto;
  }
  
  /* Footer Styles */
  .main-footer {
    background-color: #000000;
    color: #a7b6c2;
    padding: 20px 0;
    margin-top: auto;
  }
  
.footer-container {
    max-width: 1400px;
    width: 94%;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  .footer-bottom {
    text-align: center;
    font-size: 14px;
  }
  
  .footer-bottom p {
    margin: 0;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .header-container {
      flex-direction: column;
      padding: 15px;
    }
    
    .logo-container {
      margin-bottom: 15px;
    }
    
    .nav-right {
      flex-direction: column;
      width: 100%;
    }
    
    .main-menu {
      margin-right: 0;
      margin-bottom: 15px;
      width: 100%;
      justify-content: center;
    }
    
    .profile-nav {
      border-left: none;
      padding-left: 0;
      border-top: 1px solid rgba(255, 255, 255, 0.2);
      padding-top: 15px;
      width: 100%;
      justify-content: center;
    }
    
    .main-menu li,
    .profile-nav li {
      margin: 0 10px;
    }
  }

/* Centralized button styles shared across views */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
    height: 36px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
}

/* Context-specific minimum widths retained for clarity */
.credentials-header .header-actions .button { min-width: 140px; }
.credential-actions .button { min-width: 140px; }
.test-actions .button { min-width: 110px; }
.form-actions .button { min-width: 100px; }
.pagination .button { min-width: 100px; }
.form-row.actions .button { min-width: 120px; }

/* Ensure buttons have consistent cursor and appearance */
a.button, button.button { cursor: pointer; }
button.button { border: none; }

/* Utility text styles */
.muted { color: #999; font-size: 14px; }

/* Credentials page: force uniform height/padding for all buttons */
.credentials-container .button {
  height: 36px; /* fixed visual height */
  padding: 6px 12px; /* ensure same internal spacing */
  display: inline-flex; /* keep alignment consistent */
  align-items: center;
  justify-content: center;
}
.credentials-container .button i { line-height: 1; }


