/* Multi App Dashboard Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 380px;
    height: 500px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f9f9;
  }
  
  .container {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #4285f4;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  header h1 {
    font-size: 18px;
    margin: 0;
  }
  
  #user-panel {
    display: flex;
    align-items: center;
  }
  
  #username-display {
    margin-right: 10px;
    font-size: 14px;
  }
  
  button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
  }
  
  .primary-btn {
    background-color: #4285f4;
    color: white;
    padding: 8px 16px;
  }
  
  .primary-btn:hover {
    background-color: #3367d6;
  }
  
  #login-btn {
    background-color: #fff;
    color: #4285f4;
  }
  
  #login-btn:hover {
    background-color: #e6e6e6;
  }
  
  #logout-btn {
    background-color: #f44336;
    color: white;
    display: none;
  }
  
  #logout-btn:hover {
    background-color: #d32f2f;
  }
  
  .visible {
    display: block !important;
  }
  
  .hidden {
    display: none !important;
  }
  
  nav {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
  }
  
  .main-menu {
    display: flex;
    list-style: none;
    overflow-x: auto;
  }
  
  .main-menu li {
    flex: 1 0 auto;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .main-menu li i {
    font-size: 16px;
    margin-bottom: 5px;
  }
  
  .main-menu li:hover {
    background-color: #f5f5f5;
  }
  
  .main-menu li.active {
    border-bottom-color: #4285f4;
    color: #4285f4;
  }
  
  main {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    position: relative;
  }
  
  section {
    display: none;
    height: 100%;
  }
  
  section.active {
    display: block;
  }
  
  h2 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #4285f4;
  }
  
  .grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .app-tile {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .app-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  .app-icon {
    font-size: 24px;
    color: #4285f4;
    margin-bottom: 8px;
  }
  
  .app-name {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
  }
  
  input[type="text"],
  input[type="url"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
  }
  
  input[type="checkbox"] {
    margin-right: 5px;
  }
  
  .icon-selector {
    display: flex;
    margin-top: 5px;
    gap: 10px;
  }
  
  .icon-option {
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 4px;
  }
  
  .icon-option:hover,
  .icon-option.selected {
    color: #4285f4;
    background-color: #e6f0ff;
  }
  
  .about-content {
    line-height: 1.6;
    font-size: 14px;
  }
  
  .about-content ul {
    margin-left: 20px;
    margin-bottom: 10px;
  }
  
  /* Modal styles */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10;
  }
  
  .modal-content {
    background-color: white;
    margin: 40px auto;
    padding: 20px;
    border-radius: 8px;
    width: 85%;
    max-width: 330px;
    position: relative;
  }
  
  .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
  }
  
  .register-link {
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
  }
  
  .register-link a {
    color: #4285f4;
    text-decoration: none;
  }
  
  /* Dark theme styles */
  body.dark-theme {
    background-color: #1e1e1e;
    color: #f0f0f0;
  }
  
  body.dark-theme header {
    background-color: #2c2c2c;
  }
  
  body.dark-theme nav {
    background-color: #2c2c2c;
    border-bottom-color: #444;
  }
  
  body.dark-theme .main-menu li:hover {
    background-color: #333;
  }
  
  body.dark-theme .app-tile {
    background-color: #2c2c2c;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }
  
  body.dark-theme .app-tile:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  }
  
  body.dark-theme input,
  body.dark-theme select {
    background-color: #333;
    border-color: #555;
    color: #f0f0f0;
  }
  
  body.dark-theme .modal-content {
    background-color: #2c2c2c;
  }
  
  /* Responsive adjustments */
  @media (max-width: 380px) {
    .grid-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }