:root {
  /* Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-primary: #36011f;
  --color-secondary: #001d4d;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #f8f9fa;
  --color-gray: #e9ecef;
  --color-dark-gray: #6c757d;
  --color-success: #28a745;
  --color-danger: #dc3545;
  --color-warning: #ffc107;
  --color-info: #17a2b8;
  --color-link: #f9bf14;
  --color-link-hover: #4d0026;
  --color-accent-1: #ff6b00;
  --color-accent-2: #590635;
  --color-accent-3: #031d38;
  --color-accent-4: #9f9f9a;
  --color-accent-5: #f5f3f2;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 221.2 83.2% 53.3%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 221.2 83.2% 53.3%;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --card-radius: 16px;
  --transition: all 0.3s ease;

  /* Fonts */
  --font-primary: "Yaldevi", sans-serif;
  --font-secondary: "Baloo Thambi 2", cursive;
  --font-ui: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-fallback: Verdana, Helvetica;

  /* Spacing */
  --spacing-xs: 0.25rem;  /* 4px */
  --spacing-sm: 0.5rem;  /* 8px */
  --spacing-md: 1rem;  /* 16px */
  --spacing-lg: 1.5rem;  /* 24px */
  --spacing-xl: 2rem;  /* 32px */
  --spacing-xxl: 3rem;  /* 48px */

  /* Border Radius */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;  /* 8px */
  --radius-lg: 0.75rem;  /* 12px */
  --radius-xl: 1rem;  /* 16px */
  --radius-round: 50%;  /* circular */

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;

  /* Container widths */
  --container-sm: 90%;
  --container-md: 85%;
  --container-lg: 80%;
  --container-xl: 75%;

  /* Font sizes */
  --font-size-xs: 0.75rem;  /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;  /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;  /* 20px */
  --font-size-xxl: 1.5rem;  /* 24px */
  --font-size-xxxl: 2rem;  /* 32px */

  /* Z-index */
  --z-nav: 1000;
  --z-fab: 999;

  /* Component Sizes */
  --nav-height: 2.8125rem;  /* 45px */
  --foot-height: 1.5625rem;  /* 25px */
  --nav-height: 2.8125rem;  /* 45px */
  --foot-height: 1.5625rem;  /* 25px */
  --fab-size: 3.125rem;  /* 50px */
  --icon-size: 1.25rem;  /* 20px */
  --hamburger-width: 1.5rem;  /* 24px */
  --hamburger-height: 0.25rem;  /* 4px */

  /* Additional Variables */
  --base-font-size: 16px;

  --title-font-size: 1.25rem;
  --caption-font-size: 1.0625rem;
  --link-font-size: 0.8125rem;
  --font-weight-bold: 700;
  --line-height: 1.5;

  --background-color: #f5f5f5;
  --card-background: #ffffff;
  --card-padding: 12px 15px;
  --card-shadow: 0 2px 5px var(--shadow-color);
  --border-color: #e2e8f0;
  --hover-color: #bfbfbf;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);


  --featured-shadow: inset 2px 2px 5px #BABECC, inset -5px -5px 10px rgba(255, 255, 255, 0.45);

  /* Focus Outline */
  --focus-outline: 0 0 0 2px rgba(0, 123, 255, 0.5);

  --border-radius-sm: 0.3125rem;
  --border-radius-md: 0.625rem;

  --profile-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.98);
  --glass-border: rgba(54, 1, 31, 0.08);
  --accent-gradient: linear-gradient(135deg, var(--color-primary), var(--color-accent-2));

  /* Colors */
  --menu-bg: #36011f;
  --menu-bg-hover: #4d0026;
  --menu-item-bg: rgba(255, 255, 255, 0.1);
  --menu-item-bg-hover: rgba(255, 255, 255, 0.2);
  --menu-item-border: #72739f;
  --menu-item-border-focus: #f9bf14;
  --menu-item-border-hover: #5628EE;
  --menu-text-color: #ffffff;
  --menu-text-hover: #f9bf14;

  /* Sizes */
  --menu-width: 80px;
  --menu-width-expanded: 220px;
  --menu-item-width: 80%;
  --menu-item-margin: 12px 10px;
  --menu-icon-size: 24px;
  --menu-item-padding: 12px 15px;

  /* Effects */
  --menu-shadow: 5px 0 15px rgba(0, 0, 0, 0.15);
  --menu-item-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);

  /* Border Radius */
  --menu-border-radius: 8px;
  --menu-item-border-radius: 6px;

  /* Transitions */
  --menu-transition: all 0.3s ease;

  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --card-hover-border: #4f46e5;
  --card-header-bg: #f9fafb;
  --page-bg: #f3f4f6;
  --card-radius: 16px;
  --card-radius-sm: 8px;

}
.pf-section-header {
  margin: 0;
  padding-left: 1rem;
  color: var(--form-secondary);
  border-left: 4px solid var(--form-primary);
}
.pf-upload-box {
  border: 2px dashed var(--form-border);
  padding: 2rem;
  text-align: center;
  border-radius: var(--form-radius-md);
  cursor: pointer;
  background: var(--form-light-bg);
  transition: all 0.3s ease;
}
.pf-upload-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}
.pf-preview-container {
  margin-top: 1rem;
  border-radius: var(--form-radius-md);
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.pf-preview-container img {
  max-width: 100%;
  max-height: 250px;
  border-radius: 8px;
  box-shadow: var(--form-shadow);
}
.pf-btn-icon {
  font-size: 1.2rem;
}
/* Profile View Specific Styles */
.pf-profile-header {
  background: linear-gradient(135deg, var(--form-primary), var(--form-secondary));
  color: white;
  padding: 2.5rem 1rem;
}
.pf-profile-header-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.pf-profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  overflow: hidden;
  background: white;
  box-shadow: var(--form-shadow);
}
.pf-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pf-profile-details {
  text-align: left;
}
.pf-profile-title {
  margin: 0;
  font-size: 2.2rem;
  color: white;
}
.pf-profile-subtitle {
  margin: 0.2rem 0 0.8rem;
  opacity: 0.9;
  font-size: 1.1rem;
  color: white;
}
.pf-profile-badge {
  background: white;
  color: var(--form-primary);
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  display: inline-block;
}
.pf-profile-section-title {
  border-bottom: 2px solid var(--form-light-bg);
  padding-bottom: 0.5rem;
  color: var(--form-primary);
  margin-top: 0;
}
.pf-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pf-info-label {
  display: block;
  font-size: 0.85rem;
  color: var(--form-text-light);
  font-weight: 600;
}
.pf-info-value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--form-text);
}
.pf-permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.pf-permission-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.pf-permission-card.granted {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}
.pf-permission-card.denied {
  background: rgba(239, 68, 68, 0.03);
  border-color: rgba(239, 68, 68, 0.1);
}
.pf-permission-status-icon {
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
}
.pf-permission-status-icon.granted {
  background: var(--form-success);
}
.pf-permission-status-icon.denied {
  background: var(--form-error);
}
.pf-profile-actions {
  text-align: center;
  border-top: 1px solid var(--form-light-bg);
  padding-top: 2rem;
}

.profile-view-wrap {
  width: 50vw;
  max-width: 1200px;
  margin: 2rem auto;
  background: var(--color-white, #ffffff);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, 0.1));
  overflow: hidden;
  padding:1rem;
  transition: all 0.3s ease;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 25px;
  border-bottom: 1px solid var(--color-gray);
  margin-bottom: 10px;
  animation: fadeIn 0.8s ease-out;
background: linear-gradient(135deg, rgba(54, 1, 31, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 16px;
}
.header-info h2 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 4px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.header-info h4 {
  font-size: 1.1rem;
  color: var(--color-dark-gray);
  font-weight: 500;
  margin-top: 0;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
  gap: 20px;
  align-items: start;
}
.profile-card {
  background: linear-gradient(135deg, rgba(54, 1, 31, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.6s ease-out both;
  box-sizing: border-box;
}
.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(54, 1, 31, 0.05);
  border-color: var(--color-primary);
}
.card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-gray);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.info-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
  gap: 10px 20px;
}
.info-item:last-child {
  border-bottom: none;
}
.prolbl {
  font-size: 1rem;
  color: var(--color-dark-gray);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex: 0 0 240px;
  line-height: 1.4;
}
.prorec {
  font-size: 1.1rem;
  color: #1a1a1a;
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  flex: 1;
  min-width: 0;
  line-height: 1.4;
  gap: 8px;
}
.val-text {
  flex: 1;
}
.age-pill {
  background: var(--accent-gradient);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 10px;
  box-shadow: 0 4px 10px rgba(255, 107, 0, 0.2);
}