:root {
  --emerald: #195041;       
  --emerald-dark: #0F2F28;  
  --emerald-soft: #2A6B5B;  

  --light: #ffffff;
  --gray: #e5e7eb;
  --text: #0b0f0e;

  --border: #e7ecea;
}

body {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Times New Roman", Times, serif;
  letter-spacing: 0.3px;
}

h1 {
  font-size: 2.4rem;
  font-weight: 700;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: .75rem;
  border-bottom: 2px solid var(--emerald);
  padding-bottom: .25rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: .25rem;
}


.container {
  max-width: 820px;
  margin: auto;
  padding: 1.25rem;
}


.header {
  background: var(--emerald);
  color: white;
  padding: 3rem 0 1.75rem;
}

.header p,
.header span {
  font-size: 1.05rem;
  opacity: 0.9;
}


.header h1 {
  margin: 0;
}

.navbar {
  background: transparent;
  padding: .75rem 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.18);
}

.navbar a {
  color: rgba(255,255,255,.92);
  margin: 0 .45rem;
  text-decoration: none;
  font-weight: 600;
  padding: .35rem .65rem;
  border-radius: 999px;
}

.navbar a:hover {
  background: rgba(255,255,255,.14);
}

.card {
  background: white;
  padding: 2rem 2.2rem;
  margin-top: 2.2rem;
  border-radius: 14px;
  border: 1px solid var(--border);
}


/* BUTTONS */
button, .button {
  background: var(--emerald);
  color: white;
  padding: .7rem 1.2rem;
  border: 1px solid rgba(255,255,255,.18);
  cursor: pointer;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

button:hover, .button:hover {
  background: var(--emerald-dark);
}

/* PROFILE IMAGE */
.profile-pic {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.92);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* FORMS */
.contact-form input,
.contact-form textarea,
.login-card input {
  width: 100%;
  padding: .7rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.login-card input:focus {
  border-color: rgba(25, 80, 65, .55);
  box-shadow: 0 0 0 4px rgba(25, 80, 65, .12);
}

/* LOGIN CARD */
.login-card {
  max-width: 400px;
  margin: auto;
  background: white;
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.center-area {
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.msg {
  margin-bottom: 1rem;
}

/* (Valfritt) lite snyggare typografi */
h2 {
  margin-top: 0;
}

p {
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}

ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: .4rem;
}

/* ====== TVÅKOLUMN-LAYOUT ====== */
.cv-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

/* Gör att card spacing känns mer “CV” */
.cv-col .card{
  margin-top: 1.25rem;
}

/* Mobil: 1 kolumn */
@media (max-width: 900px){
  .cv-grid{
    grid-template-columns: 1fr;
  }
}

/* ====== HEADER JUSTERING ====== */
.header-content{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-right{
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ====== REKTANGULÄR PROFILBILD  ====== */
.profile-pic-rect{
  width: 140px;
  height: 170px;
  object-fit: cover;
  border-radius: 6px;                 /* lätt rundade hörn, inte rund bild */
  border: 3px solid rgba(255,255,255,.92);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}


.profile-pic{
  border-radius: 0;
}


.card p, .card li {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  display: block !important;
}

.job {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}

.job:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.item-meta {
  margin: .25rem 0 .75rem;
  opacity: .85;
  font-style: italic;
}
.skills-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.25rem;
}

.skills-list li {
  margin-bottom: .35rem;
}

/* =========================
   ADMIN / DASHBOARD STYLING
   ========================= */

/* Lättare layout för admin */
.admin-wrap {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.admin-topbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.admin-title h2 {
  margin: 0;
  font-size: 1.6rem;
}

.admin-title p {
  margin: .25rem 0 0;
  opacity: .9;
}

.admin-actions {
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-input {
  min-width: 240px;
  padding: .7rem .85rem;
  border-radius: 8px;
  border: 1px solid var(--gray);
  font-family: inherit;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--gray);
  background: #fff;
  font-size: .95rem;
}

.admin-pill strong {
  font-weight: 700;
}

/* Meddelandelista */
.msg-list {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
}

.msg-card {
  background: #fff;
  border: 1px solid var(--gray);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
}

.msg-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .6rem;
}

.msg-who {
  display: grid;
  gap: .15rem;
}

.msg-who .name {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.msg-who .email {
  margin: 0;
  opacity: .75;
  font-size: .95rem;
}

.msg-meta {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.badge {
  background: var(--emerald);
  color: #fff;
  border-radius: 999px;
  padding: .25rem .55rem;
  font-size: .85rem;
  white-space: nowrap;
}

.msg-body {
  white-space: pre-wrap;
  margin: 0;
  line-height: 1.55;
}

/* Footer actions */
.admin-footer {
  margin-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Mobil */
@media (max-width: 520px) {
  .admin-input { min-width: 100%; }
}

/* =========================
   ADMIN / DASHBOARD STYLING
   ========================= */

/* Lättare layout för admin */
.admin-wrap {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.admin-topbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.admin-title h2 {
  margin: 0;
  font-size: 1.6rem;
}

.admin-title p {
  margin: .25rem 0 0;
  opacity: .9;
}

.admin-actions {
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-input {
  min-width: 240px;
  padding: .7rem .85rem;
  border-radius: 8px;
  border: 1px solid var(--gray);
  font-family: inherit;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--gray);
  background: #fff;
  font-size: .95rem;
}

.admin-pill strong {
  font-weight: 700;
}

/* Meddelandelista */
.msg-list {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
}

.msg-card {
  background: #fff;
  border: 1px solid var(--gray);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
}

.msg-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .6rem;
}

.msg-who {
  display: grid;
  gap: .15rem;
}

.msg-who .name {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.msg-who .email {
  margin: 0;
  opacity: .75;
  font-size: .95rem;
}

.msg-meta {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.badge {
  background: var(--emerald);
  color: #fff;
  border-radius: 999px;
  padding: .25rem .55rem;
  font-size: .85rem;
  white-space: nowrap;
}

.msg-body {
  white-space: pre-wrap;
  margin: 0;
  line-height: 1.55;
}

/* Footer actions */
.admin-footer {
  margin-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Mobil */
@media (max-width: 520px) {
  .admin-input { min-width: 100%; }
}
