@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #f8fafc;
  --panel-bg: #ffffff;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
}

/* Navbar */
.client-navbar {
  background: var(--panel-bg);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo-area img {
  height: 36px;
}
.portal-badge {
  background: #eff6ff;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.user-area {
  display: flex;
  align-items: center;
  gap: 16px;
}
.user-info {
  text-align: right;
  display: flex;
  flex-direction: column;
}
.user-info span {
  font-weight: 600;
  font-size: 15px;
}
.user-info small {
  color: var(--text-muted);
  font-size: 12px;
}
.user-area img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
}
.logout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
}
.logout-btn:hover {
  background: #f1f5f9;
  color: #ef4444;
}

/* Container */
.client-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}

/* Welcome Header */
.welcome-header {
  margin-bottom: 32px;
  animation: fadeIn 0.5s ease;
}
.welcome-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.welcome-header p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
}

/* Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

/* Profile Card */
.profile-card {
  background: var(--panel-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.profile-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #0f172a;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.profile-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.profile-item i {
  color: var(--primary);
  font-size: 18px;
  margin-top: 4px;
  width: 20px;
  text-align: center;
}
.profile-item label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.profile-item p {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  word-break: break-word;
}
.contact-support {
  margin-top: 32px;
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px dashed #cbd5e1;
}
.contact-support i {
  color: var(--text-muted);
  font-size: 24px;
}
.contact-support span {
  font-size: 13px;
  color: var(--text-muted);
}
.contact-support a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

/* Files Section */
.files-card {
  background: var(--panel-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.files-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.files-header h2 {
  font-size: 20px;
  font-weight: 600;
}
.search-box {
  position: relative;
  width: 250px;
}
.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.search-box input {
  width: 100%;
  padding: 10px 10px 10px 36px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  transition: all 0.2s;
}
.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* File List */
.files-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s;
}
.file-item:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.file-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.file-icon {
  width: 48px;
  height: 48px;
  background: #eff6ff;
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.file-meta h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}
.file-meta p {
  font-size: 13px;
  color: var(--text-muted);
}
.file-download {
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.file-download:hover {
  background: var(--primary-hover);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
