/* --- RESET & LAYOUT --- */
.sh-wrapper {
    font-family: 'Segoe UI', sans-serif;
    background: #fdfdfd;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    max-width: 1150px;
    margin: 30px auto;
    overflow: hidden;
    color: #333;
}

/* --- HEADER --- */
.sh-header {
    height: 240px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}
.sh-overlay { position: absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.1)); }

/* Notification */
.sh-bell-box {
    position: absolute; top: 20px; right: 20px; z-index: 10;
    background: rgba(255,255,255,0.9);
    width: 45px; height: 45px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.fallback-bell { font-size: 24px; color: #444; margin-top: 5px; }

/* Profile Info */
.sh-identity {
    position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 20px; width: 100%;
}
.sh-avatar { position: relative; width: 120px; height: 120px; }
.sh-avatar img { width: 100%; height: 100%; border-radius: 50%; border: 4px solid #fff; object-fit: cover; background: #fff; }
.cam-icon {
    position: absolute; bottom: 5px; right: 5px;
    background: #fff; width: 35px; height: 35px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.sh-info { flex: 1; color: white; margin-bottom: 10px; }
.sh-info h2 { margin: 0; font-size: 28px; color: white; }
.sh-info p { margin: 0 0 10px 0; opacity: 0.9; }
#btn-cover {
    background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.5);
    color: white; padding: 6px 12px; border-radius: 4px; cursor: pointer; backdrop-filter: blur(4px);
}
#btn-cover:hover { background: rgba(255,255,255,0.4); }

/* --- NAVBAR (Flexbox for Logout) --- */
.sh-nav {
    background: #fff; border-bottom: 1px solid #eee; padding: 0 30px;
    display: flex; justify-content: space-between; align-items: center;
}
.sh-tabs { list-style: none; margin: 0; padding: 0; display: flex; gap: 25px; }
.sh-tabs li {
    padding: 20px 0; cursor: pointer; color: #666; font-weight: 500;
    border-bottom: 3px solid transparent; display: flex; align-items: center; gap: 8px;
}
.sh-tabs li:hover, .sh-tabs li.active { color: #2563eb; border-bottom-color: #2563eb; }
.sh-logout {
    text-decoration: none; color: #dc2626; font-weight: 600; display: flex; align-items: center; gap: 5px;
    padding: 8px 15px; border-radius: 5px; transition: 0.3s;
}
.sh-logout:hover { background: #fee2e2; }

/* --- CONTENT --- */
.sh-content { padding: 40px; background: #f8f9fc; min-height: 400px; }
.sh-pane { display: none; animation: slideUp 0.3s ease; }
.sh-pane.active { display: block; }

/* Dashboard Cards */
.sh-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; }
.card { background: white; padding: 25px; border-radius: 12px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.card .icon { font-size: 32px; display: block; margin-bottom: 10px; height: auto; width: auto;}
.card h3 { margin: 5px 0; font-size: 28px; }
.card.proc .icon { color: #2563eb; } .card.proc { border-bottom: 4px solid #2563eb; }
.card.act .icon { color: #d97706; } .card.act { border-bottom: 4px solid #d97706; }
.card.comp .icon { color: #16a34a; } .card.comp { border-bottom: 4px solid #16a34a; }

/* Buttons Bottom */
.sh-btns-main { display: flex; gap: 20px; margin-top: 30px; }
.btn { flex: 1; text-align: center; padding: 15px; border-radius: 8px; text-decoration: none; font-weight: 600; color: white; transition: 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn.browse { background: #4f46e5; }
.btn.web { background: #0891b2; }

/* Service Grid & Cards */
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.sh-service-card {
    background: white; padding: 25px; border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04); border: 1px solid #f0f0f0;
    transition: 0.3s; display: flex; flex-direction: column;
}
.sh-service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.sh-service-card .head { display: flex; justify-content: space-between; margin-bottom: 15px; }
.sh-service-card h4 { margin: 0 0 15px 0; font-size: 18px; color: #222; flex: 1; }
.sh-service-card .meta { font-size: 13px; color: #777; margin-bottom: 20px; display: flex; flex-direction: column; gap: 5px; }
.sh-service-card .meta i { width: 20px; text-align: center; }

.btn-detail {
    background: white; border: 1px solid #4f46e5; color: #4f46e5;
    padding: 10px; border-radius: 6px; cursor: pointer; width: 100%; font-weight: 600; transition: 0.2s;
}
.btn-detail:hover { background: #4f46e5; color: white; }

/* Status Badges */
.badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.badge.completed { background: #dcfce7; color: #166534; }
.badge.processing { background: #dbeafe; color: #1e40af; }
.badge.on-hold { background: #fef3c7; color: #92400e; }

/* --- MODAL (POPUP) --- */
.sh-modal-overlay {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6); backdrop-filter: blur(3px);
    justify-content: center; align-items: center;
}
.sh-modal-box {
    background: white; padding: 30px; border-radius: 12px;
    width: 90%; max-width: 500px; position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2); animation: popIn 0.3s;
}
.close-m { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #999; }
.close-m:hover { color: #333; }
.m-header { border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.m-body p { margin: 5px 0; font-size: 14px; color: #555; }
.m-body ul { list-style: disc; padding-left: 20px; color: #444; }
.alert-success { background: #dcfce7; color: #166534; padding: 10px; border-radius: 5px; text-align: center; margin-top: 15px; font-size: 13px; }
.alert-info { background: #e0f2fe; color: #075985; padding: 10px; border-radius: 5px; text-align: center; margin-top: 15px; font-size: 13px; }

/* --- WHATSAPP FORM --- */
.sh-help-wrap { display: flex; gap: 30px; background: white; padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.help-intro { flex: 1; border-right: 1px solid #eee; padding-right: 30px; }
.help-intro .dashicons { font-size: 48px; color: #25D366; margin-bottom: 10px; height: auto; width: auto; }
.help-form { flex: 1.5; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 5px; font-size: 14px; }
.form-group input, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; box-sizing: border-box; }
.btn-whatsapp {
    background: #25D366; color: white; border: none; padding: 12px 20px;
    border-radius: 6px; width: 100%; font-weight: 600; font-size: 15px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-whatsapp:hover { background: #20bd5a; }

/* Settings Form */
.sh-set-form { background: white; padding: 30px; border-radius: 12px; max-width: 600px; }
.sh-set-form .row { display: flex; gap: 20px; margin-bottom: 15px; }
.sh-set-form .col { flex: 1; }
.sh-set-form input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; box-sizing: border-box; margin-top: 5px; }
.btn-save { background: #2563eb; color: white; border: none; padding: 12px 25px; border-radius: 6px; cursor: pointer; margin-top: 15px; }

/* Responsive */
@media (max-width: 768px) {
    .sh-header { height: auto; flex-direction: column; align-items: center; text-align: center; padding: 50px 20px 20px; }
    .sh-identity { flex-direction: column; }
    .sh-nav { flex-direction: column; gap: 15px; padding: 15px; }
    .sh-tabs { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .sh-help-wrap { flex-direction: column; }
    .help-intro { border-right: none; border-bottom: 1px solid #eee; padding-bottom: 20px; padding-right: 0; }
    .sh-btns-main { flex-direction: column; }
}

/* Animations */
@keyframes slideUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
@keyframes popIn { from{opacity:0;transform:scale(0.9)} to{opacity:1;transform:scale(1)} }
/* Table Fix */
.sh-table-wrap { overflow-x: auto; }
.sh-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.sh-table th, .sh-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #eee; }
.sh-table th { background: #f9f9f9; }