* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: #f8f9fa;
  color: #1a1a1a;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar Styling */
.navbar {
  background: #a69a8f;
  color: white;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-content {
  margin: 0;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.navbar-logo {
  width: auto;
  min-width: 50px;
}

.navbar-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.navbar-actions {
  display: flex;
  gap: 16px;
}

.user-menu {
  display: flex;
  gap: 12px;
  align-items: centerer;
  margin-left: auto;
}

.avatar-menu {
  position: relative;
}

.avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  margin-right: 0;
  overflow: hidden;
}

#avatarImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.avatar-not-logged-in {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: bold;
  cursor: not-allowed;
  letter-spacing: 0.5px;
}

.avatar-not-logged-in:hover {
  background: rgba(255, 255, 255, 0.15);
  cursor: not-allowed;
}

.avatar-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 320px;
  z-index: 1000;
}

.profile-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.profile-card-content {
  display: flex;
  gap: 16px;
  padding: 16px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.profile-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.profile-title {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.4;
}

.profile-email {
  font-size: 13px;
  color: #d88b68;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.profile-email:hover {
  color: #c9745f;
  text-decoration: underline;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  color: #1a1a1a;
  font-size: 14px;
  transition: background 0.2s ease;
}

.dropdown-item:hover {
  background: #f8f9fa;
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

/* Button Styling */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #d88b68;
  color: white;
}

.btn-primary:hover {
  background: #c87552;
}

.btn-secondary {
  background: #d88b68;
  color: white;
}

.btn-secondary:hover {
  background: #c87552;
}

/* Banner */
.banner {
  height: 280px;
  background: #f7f5f2;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
}

.banner-logo {
  position: relative;
  z-index: 10;
}

.banner-logo img {
  height: 180px;
  width: auto;
  object-fit: contain;
  filter: none;
}

/* Main Content */
.main-content {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 32px 32px;
}

/* Not Logged In Message */
.not-logged-in-message {
  text-align: center;
  padding: 64px 32px;
  background: white;
  border-radius: 8px;
  margin-bottom: 32px;
}

.not-logged-in-message h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.not-logged-in-message p {
  font-size: 16px;
  color: #666;
  max-width: 500px;
  margin: 0 auto 32px;
}

.not-logged-in-message .btn-large {
  padding: 12px 32px;
  font-size: 16px;
}

/* Search Section */
.search-section {
  margin-bottom: 48px;
  margin-top: 24px;
  text-align: left;
}

.search-input {
  display: inline-block;
  width: 400px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #d88b68;
  box-shadow: 0 0 0 3px rgba(216, 139, 104, 0.1);
}

.search-results {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.search-empty {
  text-align: center;
  padding: 32px;
  color: #666;
}

/* User Info Section */
.user-info-section {
  margin-bottom: 24px;
  padding-bottom: 0;
}

.user-info-section h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.user-info-section p {
  font-size: 15px;
  color: #666;
  margin-bottom: 8px;
}

/* Documents Section */
.documents-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.documents-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: #1a1a1a;
}

/* Folder Section */
.folder-section {
  margin-bottom: 24px;
}

.folder-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #2d3748;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}

/* Document Table */
.doc-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.doc-card:hover {
  border-color: #d88b68;
  background: #faf8f6;
  box-shadow: 0 2px 8px rgba(216, 139, 104, 0.1);
}

.doc-thumbnail {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #d88b68 0%, #a69a8f 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
}

.doc-link:hover {
  text-decoration: underline;
}

.doc-meta {
  font-size: 13px;
  color: #999;
}

.doc-icon {
  color: #999;
  font-size: 18px;
  flex-shrink: 0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 32px;
  color: #666;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
}

/* Footer */
.footer {
  background: #f8f9fa;
  padding: 32px;
  text-align: center;
  color: #666;
  font-size: 13px;
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-content {
    padding: 16px;
    flex-direction: column;
    gap: 12px;
  }

  .main-content {
    padding: 24px 16px;
  }

  .banner {
    height: 200px;
  }

  .doc-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .doc-thumbnail {
    width: 100%;
    height: 150px;
  }

  .user-info-section h1 {
    font-size: 24px;
  }

  .documents-section h2 {
    font-size: 22px;
  }
}