/* ============================================================
   OvindiWorld — CLEAN GLOBAL APP.CSS
   Chat UI removed completely (separate chat.css file)
   ============================================================ */

:root {
  --bg: #eef1f5;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #6c5ce7;
  --accent-2: #00b894;
  --danger: #e74c3c;
  --shadow: 0 4px 10px rgba(0,0,0,0.05);
  --sidebar: #cfd5dc;
  --radius: 12px;
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
}

body{
  margin:0;
  min-height:100vh;

  background:
  linear-gradient(
    135deg,
    #eef4ff,
    #f8f2ff
  );

  color:#0f172a;

  display:flex;
  flex-direction:column;
}

/* ==================== Cards & Buttons ==================== */

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
  margin-bottom:16px;
}

.btn {
  border:none;
  border-radius:8px;
  padding:8px 14px;
  font-weight:600;
  cursor:pointer;
  transition:.15s;
}

.btn-primary {
  background:linear-gradient(90deg, var(--accent), #8e7bff);
  color:#fff;
}

.btn-outline {
  background:transparent;
  border:1px solid rgba(0,0,0,0.1);
}

.btn:hover {
  opacity:.9;
  transform:translateY(-1px);
}

/* ==================== DASHBOARD LAYOUT ==================== */

.dashboard-wrapper {
  display:flex;
  align-items:stretch;
  gap:0;
  width:100%;
  margin:0;
  padding:0;
  min-height:calc(100vh - 70px);
}

.sidebar{
  width:260px;
  min-height:calc(100vh - 70px);

  background:#cfd5dc;
  padding:20px;

  display:flex;
  flex-direction:column;
  gap:12px;

  border-radius:0;
  box-shadow:3px 0 10px rgba(0,0,0,.08);

  flex-shrink:0;
}

.sidebar .tab-btn{
    width:100%;
    display:block;
    text-align:left;
}

.dashboard-content{
  flex:1;
  padding:25px;
  background:#fff;
  min-height:calc(100vh - 70px);

  border-radius:0;
  box-shadow:none;
}

.sidebar .tab-btn{
  width:100%;
  display:block;
  text-align:left;
  padding:12px 15px;
}

.dashboard-content h4,
.dashboard-content p,
.dashboard-content form {
  margin-left:auto;
  margin-right:auto;
  max-width:900px;
}

.tab-content {
  animation:fadeIn .25s ease;
  display:none;
}

.tab-content.active {
  display:block;
}

@keyframes fadeIn {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ==================== GALLERY ==================== */

.public-gallery {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px,1fr));
  gap:18px;
  justify-content:center;
}

/* ===================================
   MY UPLOADS - GALLERY CARD
=================================== */

.gallery-item {
  position:relative;
  background:#fff;
  border-radius:12px;
  overflow:visible;
  box-shadow:0 4px 10px rgba(0,0,0,0.05);
  transition:all .25s ease;
  z-index:1;
}

/* Bring the current card above neighbouring cards */
.gallery-item:hover {
  z-index:100;
  transform:translateY(-4px);
}

/* When the menu is open, force this card to the top */
.gallery-item.menu-open {
  z-index:9999;
}

.gallery-thumb {
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}


/* ==========================================================
   MY UPLOADS — PHOTO MENU
   ========================================================== */

.gallery-item {
  position:relative;
}

.gallery-item.photo-menu-open {
  z-index:1000;
}

.photo-menu-wrap {
  position:relative;
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

.photo-menu-btn {
  width:32px;
  height:32px;

  display:flex;
  align-items:center;
  justify-content:center;

  border:none;
  background:transparent;

  border-radius:50%;

  font-size:20px;
  line-height:1;

  color:#475569;

  cursor:pointer;

  padding:0;
}

.photo-menu-btn:hover {
  background:#f1f5f9;
}

.photo-menu {
  position:absolute;

  top:38px;
  right:0;

  min-width:190px;

  background:#fff;

  border-radius:14px;

  box-shadow:
    0 10px 30px rgba(0,0,0,.15),
    0 2px 8px rgba(0,0,0,.06);

  border:1px solid #eef0f4;

  padding:6px 0;

  display:none;

  z-index:1001;
}

.photo-menu.show {
  display:block;
}

.photo-menu button {
  width:100%;

  min-height:42px;

  display:flex;
  align-items:center;

  gap:10px;

  padding:10px 14px;

  border:none;

  background:transparent;

  color:#1f2937;

  font-family:inherit;
  font-size:14px;
  font-weight:500;

  text-align:left;

  cursor:pointer;
}

.photo-menu button:hover {
  background:#f5f7fa;
}

.photo-menu .photo-delete-btn {
  color:#e53935;
}

.photo-menu .photo-delete-btn:hover {
  background:#fff1f1;
}


/* ==================== FOOTER ==================== */

footer.footer {
  text-align:center;
  padding:14px;
  color:var(--muted);
  border-top:1px solid rgba(0,0,0,0.05);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width:900px) {

  .dashboard-wrapper {
    flex-direction:column;
    align-items:stretch;
  }

  .sidebar {
    width:100%;
    position:relative;
    top:auto;
  }

  .dashboard-content {
    padding:18px;
  }
}


/* ==========================================================
   LOGIN / REGISTER
   ========================================================== */

.auth-wrapper{
    display:flex;
    justify-content:flex-start;
    padding:40px 0 40px 50px;
}

.auth-card{
    width:720px;
    background:#fff;
    border-radius:20px;
    padding:35px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
    border:1px solid #e4e8ff;
}

.login-card{
    width:420px;
}

.auth-title{
    text-align:center;
    color:#4e54c8;
    margin-bottom:5px;
}

.auth-subtitle{
    text-align:center;
    color:#6b7280;
    margin-bottom:25px;
    font-size:14px;
}

.form-section{
    margin-bottom:25px;
    padding-bottom:20px;
    border-bottom:1px solid #e5e7eb;
}

.form-section:last-child{
    border-bottom:none;
}

.form-section h3{
    color:#4e54c8;
    margin-bottom:15px;
    font-size:18px;
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group.full{
    grid-column:1/-1;
}

.form-group label{
    margin-bottom:6px;
    font-weight:600;
    color:#374151;
}

.form-control{
    width:100%;
    padding:12px;
    border:1px solid #d8dce5;
    border-radius:10px;
    box-sizing:border-box;
    transition:.2s;
}

.form-control:focus{
    outline:none;
    border-color:#4e54c8;
    box-shadow:0 0 0 3px rgba(78,84,200,.15);
}

.profile-upload{
    display:flex;
    align-items:center;
    gap:20px;
}

.profile-upload img{
    width:110px;
    height:110px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid #eef2ff;
}

.profile-upload input{
    flex:1;
}

.password-wrapper{
    position:relative;
}

.password-toggle{
    position:absolute;
    right:8px;
    top:50%;
    transform:translateY(-50%);

    background:#4e54c8;
    color:#fff;

    border:none;
    border-radius:8px;

    padding:6px 12px;
    cursor:pointer;

    font-size:13px;
    font-weight:600;
}

.password-toggle:hover{
    opacity:.9;
}

.password-strength{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:10px;
    padding:12px;
}

.password-strength ul{
    margin:10px 0;
    padding-left:18px;
}

.strength-bar{
    height:8px;
    background:#e5e7eb;
    border-radius:10px;
    overflow:hidden;
}

.strength-fill{
    width:0;
    height:100%;
    background:red;
    transition:.3s;
}

.alert{
    padding:12px;
    border-radius:10px;
    margin-bottom:20px;
}

.alert-success{
    background:#d1e7dd;
    border:1px solid #badbcc;
    color:#0f5132;
}

.auth-submit{
    margin:20px auto 0;
    width:220px;
    padding:12px 28px;
    display:block;
    flex:none;
}

@media(max-width:768px){

    .auth-wrapper{
        padding:20px;
    }

    .auth-card,
    .login-card{
        width:100%;
        margin:0;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .profile-upload{
        flex-direction:column;
        align-items:flex-start;
    }

}


/* ==========================================================
   STANDARD FORM PAGES
   Contact / Reset Password / Simple Forms
   ========================================================== */

.form-box-left{
    max-width:500px;
    margin:30px 0 30px 50px;
    background:#ffffff;
    padding:30px;
    border-radius:18px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    border:1px solid #e4e8ff;
}

.form-box-left h2{
    margin-top:0;
    text-align:center;
    color:#4e54c8;
}

.form-box-left form{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.form-box-left label{
    font-weight:600;
    color:#374151;
    margin-bottom:4px;
}

.form-box-left textarea.form-control{
    resize:vertical;
    min-height:140px;
}

.form-box-left .btn{
    width:auto;
    min-width:180px;
    align-self:center;
    margin-top:10px;
}

@media(max-width:768px){

    .form-box-left{
        margin:20px;
        padding:20px;
        max-width:none;
    }

}

/* ==========================================================
   STANDARD FORM PAGES
  Reset Password / Simple Forms
   ========================================================== */

.form-reset-left{
    max-width:450px;
    margin:30px 0 30px 50px;
    background:#ffffff;
    padding:30px;
    border-radius:18px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    border:1px solid #e4e8ff;
}

.form-reset-left h2{
    margin-top:0;
    text-align:center;
    color:#4e54c8;
}

.form-reset-left form{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.form-reset-left label{
    font-weight:600;
    color:#374151;
    margin-bottom:4px;
}

.form-reset-left textarea.form-control{
    resize:vertical;
    min-height:140px;
}

.form-reset-left .btn{
    width:auto;
    min-width:180px;
    align-self:center;
    margin-top:10px;
}

@media(max-width:768px){

    .form-reset-left{
        margin:20px;
        padding:20px;
        max-width:none;
    }

}


/* ==========================================================
   profile_image
   ========================================================== */


.profile-card{
    text-align:center;
    padding:25px;
}

.profile-avatar{
    width:140px;
    height:140px;
    border-radius:50%;
    object-fit:cover;
    border:5px solid #eef2ff;
    margin-bottom:15px;
}

.gallery-caption{
    padding:12px 5px;
    color:#374151;
}

.gallery-actions{
    display:flex;
    gap:10px;
    padding-top:10px;
    border-top:1px solid #edf0f5;
}

.small-icon-btn{
    border:none;
    background:#f3f4f6;
    padding:8px 14px;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;
}

.small-icon-btn:hover{
    background:#e5e7eb;
}


/* ================= PROFILE TAB ================= */

.profile-card{
background:#fff;
padding:25px;
border-radius:18px;
box-shadow:0 8px 25px rgba(0,0,0,.08);
max-width:750px;
}

.profile-header{
display:flex;
align-items:center;
gap:25px;
margin-bottom:25px;
padding-bottom:20px;
border-bottom:1px solid #e5e7eb;
}

.profile-avatar-large{
width:130px;
height:130px;
border-radius:50%;
object-fit:cover;
border:5px solid #eef2ff;
}

.profile-info h3{
margin:0 0 10px;
}

.profile-info p{
margin:5px 0;
color:#6b7280;
}

@media(max-width:768px){


.profile-header{
    flex-direction:column;
    text-align:center;
}

}

/* ==========================================================
   STANDARD FORM PAGES
   upload-card Simple Forms
   ========================================================== */

.upload-card{
    max-width:700px;
    background:#fff;
    border-radius:18px;
    padding:30px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    border:1px solid #e5e7eb;
}

.upload-card h4{
    margin-top:0;
    color:#4e54c8;
}

.upload-card .form-control{
    margin-bottom:15px;
}

.upload-card input[type="file"]{
    width:100%;
    padding:12px;
    border:1px solid #d8dce5;
    border-radius:10px;
    background:#f8fafc;
    box-sizing:border-box;
}

.upload-card .btn{
    margin-top:10px;
}


/* ==========================================================
   STANDARD FORM PAGES
   upload-card2 Simple Forms
   ========================================================== */

.upload-card2{
    max-width:500px;
    margin:30px 0 30px 50px;
    background:#ffffff;
    padding:30px;
    border-radius:18px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    border:1px solid #e4e8ff;
}

.upload-card2 h2{
    margin-top:0;
    text-align:center;
    color:#4e54c8;
}

.upload-card2 form{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.upload-card2 label{
    font-weight:600;
    color:#374151;
    margin-bottom:4px;
}

.upload-card2 textarea.form-control{
    resize:vertical;
    min-height:140px;
}

.upload-card2 .btn{
    width:auto;
    min-width:180px;
    align-self:center;
    margin-top:10px;
}

@media(max-width:768px){

    .upload-card2-left{
        margin:20px;
        padding:20px;
        max-width:none;
    }

}

/* ===================================
   FACEBOOK STYLE PROFILE EDITOR
=================================== */

.profile-editor-card{
    background:#fff;
    border-radius:16px;
    padding:30px;
    box-shadow:0 4px 15px rgba(0,0,0,.06);
    max-width:950px;
    margin:auto;
}

.profile-section{
    margin-bottom:35px;
    padding-bottom:25px;
    border-bottom:1px solid #ececec;
}

.profile-section:last-child{
    border-bottom:none;
}

.profile-section h4{
    margin-bottom:18px;
    color:#1f2937;
}

.profile-photo-area{
    display:flex;
    align-items:center;
    gap:25px;
}

.profile-avatar-xl{
    width:140px;
    height:140px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid #eef1f5;
}

.form-row{
    display:flex;
    gap:20px;
    margin-bottom:15px;
}

.form-row .form-group{
    flex:1;
}

.form-group{
    margin-bottom:15px;
}

.form-group label{
    display:block;
    margin-bottom:6px;
    font-weight:600;
}

.form-control{
    width:100%;
    padding:10px 12px;
    border:1px solid #d5d9e0;
    border-radius:8px;
    box-sizing:border-box;
}

.small-text{
    color:#777;
    font-size:13px;
    margin-top:8px;
}

.profile-save-area{
    text-align:right;
    margin-top:20px;
}


.alert-success{
    background:#d1fae5;
    color:#065f46;
    padding:12px;
    border-radius:8px;
    margin-bottom:20px;
}

.alert-error{
    background:#fee2e2;
    color:#991b1b;
    padding:12px;
    border-radius:8px;
    margin-bottom:20px;
}

.reaction-display{
    display:flex;
    align-items:center;
    gap:3px;
    cursor:pointer;
    position:relative;
}

.mini-reaction{
    width:20px;
    height:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    font-size:13px;
    background:#fff;
    margin-left:-4px;
    box-shadow:0 1px 4px rgba(0,0,0,.15);
}

.mini-reaction:first-child{
    margin-left:0;
}

.reaction-total{
    margin-left:6px;
    font-weight:600;
    color:#555;
}

.comment-count{
    color:#666;
    cursor:pointer;
    transition:.2s;
}

.comment-count:hover{
    color:#1877f2;
}

.reaction-users-popup{
    display:none;
    position:absolute;
    bottom:35px;
    left:0;
    background:#fff;
    border:1px solid #ddd;
    border-radius:12px;
    padding:10px;
    min-width:220px;
    box-shadow:
    0 5px 20px rgba(0,0,0,.15);
    z-index:999;
}

.reaction-display:hover
.reaction-users-popup{

    display:block;
}

.fb-reaction-box{
    position:relative;
    flex:1;
}

.reaction-picker{
    position:absolute;
    left:8px;
    bottom:48px;
    display:none;
    align-items:center;
    gap:8px;
    background:#fff;
    border-radius:40px;
    padding:8px 12px;
    box-shadow:0 8px 30px rgba(0,0,0,.18);
    animation:reactionPopup .18s ease;
    z-index:9999;
}

.fb-reaction-box:hover .reaction-picker{
    display:flex;
}

.reaction-picker span{
    font-size:28px;
    cursor:pointer;
    transition:.18s;
    user-select:none;
}

.reaction-picker span:hover{
    transform:translateY(-10px) scale(1.35);
}

@keyframes reactionPopup{



