/* ===================================================
   Techlink - Premium Visitors Analytics Dashboard CSS
   Enterprise Deep Executive Navy (#0f1f3b) Theme
   =================================================== */

.dash-body {
    background: linear-gradient(160deg, #0f1f3b 0%, #162c4a 50%, #253b4d 80%, #3a4b54 95%, rgba(130, 136, 139, 0.85) 100%);
    background-attachment: fixed;
    color: #c5c6c7;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Dashboard Top Navigation */
.dash-navbar {
    background: rgba(15, 31, 59, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(102, 252, 241, 0.2);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.dash-nav-container {
    width: 94%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.dash-nav-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.dash-brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-brand-pill {
    background: rgba(102, 252, 241, 0.15);
    border: 1px solid rgba(102, 252, 241, 0.4);
    color: #66fcf1;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dash-nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dash-live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(102, 252, 241, 0.12);
    border: 1px solid rgba(102, 252, 241, 0.35);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    color: #66fcf1;
    font-weight: 600;
}

.dash-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #66fcf1;
    box-shadow: 0 0 10px #66fcf1;
    animation: liveGlow 1.8s infinite;
}

@keyframes liveGlow {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #66fcf1; }
    50% { opacity: 0.5; transform: scale(1.3); box-shadow: 0 0 16px #66fcf1; }
}

.dash-user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(22, 44, 80, 0.85);
    border: 1px solid rgba(102, 252, 241, 0.25);
    padding: 5px 12px 5px 6px;
    border-radius: 24px;
}

.dash-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #66fcf1, #82888b);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.dash-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.dash-user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.dash-user-role {
    font-size: 0.72rem;
    color: #8c9ba5;
}

.btn-dash-logout {
    background: rgba(255, 99, 132, 0.12);
    border: 1px solid rgba(255, 99, 132, 0.3);
    color: #ff6b81;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-dash-logout:hover {
    background: rgba(255, 99, 132, 0.25);
    color: #ffffff;
    border-color: rgba(255, 99, 132, 0.5);
    transform: translateY(-1px);
}

/* Dashboard Main Wrapper */
.dash-main {
    flex: 1;
    padding: 2rem 0 4rem;
}

.dash-container {
    width: 94%;
    max-width: 1440px;
    margin: 0 auto;
}

/* Header & Controls */
.dash-hero-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(102, 252, 241, 0.2);
}

.dash-title-wrap h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-title-wrap p {
    color: #8c9ba5;
    font-size: 0.95rem;
    margin: 0;
}

.dash-controls-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dash-time-tabs {
    display: flex;
    background: rgba(10, 22, 43, 0.9);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(102, 252, 241, 0.25);
}

.dash-tab-btn {
    background: none;
    border: none;
    color: #8c9ba5;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dash-tab-btn:hover {
    color: #ffffff;
}

.dash-tab-btn.active {
    background: #66fcf1;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(102, 252, 241, 0.4);
}

.dash-action-btn {
    background: rgba(22, 44, 80, 0.85);
    border: 1px solid rgba(102, 252, 241, 0.3);
    color: #c5c6c7;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.dash-action-btn:hover {
    border-color: #66fcf1;
    color: #ffffff;
    background: rgba(102, 252, 241, 0.25);
}

/* KPI Summary Cards Grid */
.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.dash-kpi-card {
    background: #162c50;
    border: 1px solid rgba(102, 252, 241, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-radius: 16px;
    padding: 1.4rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.dash-kpi-card:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 252, 241, 0.5);
    box-shadow: 0 14px 35px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(102, 252, 241, 0.2);
}

.dash-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #66fcf1;
    opacity: 0.7;
}

.dash-kpi-card.highlight {
    background: linear-gradient(145deg, rgba(102, 252, 241, 0.25), rgba(22, 44, 80, 0.95));
    border-color: rgba(102, 252, 241, 0.45);
}

.dash-kpi-card.highlight::before {
    background: #82888b;
}

.dash-kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.dash-kpi-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #8c9ba5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(102, 252, 241, 0.15);
    color: #66fcf1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.dash-kpi-value {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.dash-kpi-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.dash-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.dash-trend.up {
    color: #66fcf1;
    background: rgba(102, 252, 241, 0.15);
}

.dash-trend.down {
    color: #ff6b81;
    background: rgba(255, 99, 132, 0.15);
}

.dash-kpi-subtext {
    color: #8c9ba5;
}

/* Charts Section Grid */
.dash-charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .dash-charts-grid {
        grid-template-columns: 1fr;
    }
}

.dash-panel {
    background: #162c50;
    border: 1px solid rgba(102, 252, 241, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-radius: 18px;
    padding: 1.75rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
}

.dash-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-panel-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.dash-panel-subtitle {
    font-size: 0.8rem;
    color: #8c9ba5;
    font-weight: 400;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 320px;
}

/* Traffic Sources List */
.source-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.source-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.source-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}

.source-name {
    color: #c5c6c7;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.source-count {
    color: #8c9ba5;
    font-weight: 700;
}

.source-bar-wrap {
    height: 6px;
    background: rgba(10, 22, 43, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

.source-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

/* Detailed Analytics 3-Column Grid */
.dash-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1100px) {
    .dash-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Country List */
.country-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.country-row:last-child {
    border-bottom: none;
}

.country-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #c5c6c7;
}

.country-flag {
    font-size: 1.25rem;
}

.country-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.country-visitors {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.9rem;
}

.country-share {
    background: rgba(10, 22, 43, 0.8);
    color: #8c9ba5;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Pages Table */
.pages-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.pages-table th {
    text-align: left;
    padding: 0.6rem 0.5rem;
    color: #8c9ba5;
    font-size: 0.78rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pages-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #c5c6c7;
}

.page-path {
    color: #ffffff;
    font-weight: 600;
    font-family: monospace;
    font-size: 0.85rem;
}

.page-views {
    color: #66fcf1;
    font-weight: 700;
}

/* Real-Time Activity Feed */
.live-activity-stream {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 6px;
}

.live-activity-stream::-webkit-scrollbar {
    width: 4px;
}

.live-activity-stream::-webkit-scrollbar-thumb {
    background: rgba(102, 252, 241, 0.3);
    border-radius: 4px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(10, 22, 43, 0.6);
    border: 1px solid rgba(102, 252, 241, 0.15);
    border-radius: 10px;
    padding: 0.85rem;
    transition: all 0.25s ease;
    animation: fadeInSlide 0.4s ease forwards;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.activity-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(102, 252, 241, 0.15);
    color: #66fcf1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    font-size: 0.82rem;
    line-height: 1.4;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

.activity-location {
    font-weight: 700;
    color: #ffffff;
}

.activity-time {
    color: #8c9ba5;
    font-size: 0.74rem;
}

.activity-detail {
    color: #8c9ba5;
}

.activity-page {
    color: #66fcf1;
    font-family: monospace;
}

/* View Mode Tabs (Visitors vs Projects) */
.dash-view-selector {
    display: inline-flex;
    background: rgba(10, 22, 43, 0.9);
    border: 1px solid rgba(102, 252, 241, 0.25);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 2rem;
}

.dash-view-btn {
    background: none;
    border: none;
    color: #8c9ba5;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.dash-view-btn.active {
    background: #66fcf1;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 252, 241, 0.35);
}

/* Device Breakdown Bar */
.device-stat-item {
    margin-bottom: 1rem;
}

.device-stat-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: #c5c6c7;
}

.device-bar-track {
    background: rgba(10, 22, 43, 0.8);
    border-radius: 4px;
    overflow: hidden;
}

.device-bar-fill {
    height: 100%;
    border-radius: 4px;
}

/* ===================================================
   Settings Page Styles
   =================================================== */

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 1.75rem;
}

@media (max-width: 992px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.settings-card {
    background: #162c50;
    border: 1px solid rgba(102, 252, 241, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-radius: 18px;
    padding: 2rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.settings-card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 0.35rem 0;
}

.settings-card-desc {
    color: #8c9ba5;
    font-size: 0.86rem;
    margin: 0;
}

/* Profile Info Widget */
.profile-meta-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.profile-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.profile-meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-meta-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8c9ba5;
    font-weight: 700;
}

.profile-meta-val {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-verified {
    background: rgba(102, 252, 241, 0.15);
    border: 1px solid rgba(102, 252, 241, 0.35);
    color: #66fcf1;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Password Form Fields */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.settings-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.settings-field label {
    font-size: 0.86rem;
    font-weight: 600;
    color: #e0e6ed;
    display: flex;
    justify-content: space-between;
}

.settings-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.settings-input-icon {
    position: absolute;
    left: 14px;
    color: #66fcf1;
    font-size: 0.95rem;
    pointer-events: none;
}

.settings-input {
    width: 100%;
    padding: 0.85rem 2.8rem 0.85rem 2.75rem;
    background: rgba(10, 22, 43, 0.85);
    border: 1px solid rgba(102, 252, 241, 0.25);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.25s ease;
    margin-bottom: 0;
}

.settings-input:focus {
    outline: none;
    border-color: #66fcf1;
    background: rgba(10, 22, 43, 0.95);
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.3);
}

.settings-toggle-eye {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #8c9ba5;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px;
    transition: color 0.2s;
}

.settings-toggle-eye:hover {
    color: #66fcf1;
}

/* Password Strength Indicator */
.password-strength-wrap {
    margin-top: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.strength-bar-track {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
    font-size: 0.76rem;
    color: #8c9ba5;
    display: flex;
    justify-content: space-between;
}

/* Requirement checklist */
.pwd-req-list {
    background: rgba(10, 22, 43, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: #8c9ba5;
}

@media (max-width: 600px) {
    .pwd-req-list {
        grid-template-columns: 1fr;
    }
}

.pwd-req-item {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.pwd-req-item.valid {
    color: #66fcf1;
}

.pwd-req-item.valid i {
    color: #66fcf1;
}

/* Alert Boxes */
.settings-alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    display: none;
    align-items: center;
    gap: 10px;
}

.settings-alert.error {
    background: rgba(255, 99, 132, 0.15);
    border: 1px solid rgba(255, 99, 132, 0.4);
    color: #ff6b81;
    display: flex;
}

.settings-alert.success {
    background: rgba(102, 252, 241, 0.15);
    border: 1px solid rgba(102, 252, 241, 0.4);
    color: #66fcf1;
    display: flex;
}

.btn-update-pwd {
    padding: 0.9rem 1.75rem;
    background: linear-gradient(135deg, #66fcf1, #82888b);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 20px -4px rgba(102, 252, 241, 0.45);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start;
}

.btn-update-pwd:hover {
    background: linear-gradient(135deg, #0b7dc5, #66fcf1);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -4px rgba(102, 252, 241, 0.6);
    color: #ffffff;
}

/* ===================================================
   Blog Creator & Image Uploader Styles
   =================================================== */

.blog-creator-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.75rem;
}

@media (max-width: 1024px) {
    .blog-creator-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card-box {
    background: #162c50;
    border: 1px solid rgba(102, 252, 241, 0.25);
    border-radius: 18px;
    padding: 2rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.blog-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.blog-form-group label {
    font-size: 0.86rem;
    font-weight: 600;
    color: #e0e6ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-input,
.blog-select,
.blog-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(10, 22, 43, 0.85);
    border: 1px solid rgba(102, 252, 241, 0.25);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.25s ease;
    margin-bottom: 0;
}

.blog-input:focus,
.blog-select:focus,
.blog-textarea:focus {
    outline: none;
    border-color: #66fcf1;
    background: rgba(10, 22, 43, 0.95);
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.3);
}

input[type="date"].blog-input {
    color-scheme: dark;
    letter-spacing: 0.5px;
    font-weight: 500;
}

input[type="date"].blog-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.8) sepia(100%) saturate(300%) hue-rotate(175deg);
    opacity: 0.85;
    padding: 4px;
    border-radius: 6px;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

input[type="date"].blog-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    background-color: rgba(102, 252, 241, 0.2);
    transform: scale(1.15);
}

.blog-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Image Upload Drop Zone */
.image-upload-zone {
    border: 2px dashed rgba(102, 252, 241, 0.4);
    border-radius: 12px;
    background: rgba(102, 252, 241, 0.06);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.image-upload-zone:hover,
.image-upload-zone.dragover {
    border-color: #66fcf1;
    background: rgba(102, 252, 241, 0.15);
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.2);
}

.image-upload-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.image-upload-icon {
    font-size: 2.2rem;
    color: #66fcf1;
    margin-bottom: 0.5rem;
}

.image-upload-text {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
}

.image-upload-hint {
    font-size: 0.75rem;
    color: #8c9ba5;
    margin-top: 0.25rem;
}

/* Image Preview Box */
.image-preview-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 0.75rem;
    border: 1px solid rgba(102, 252, 241, 0.3);
    max-height: 220px;
    display: none;
}

.image-preview-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.btn-remove-preview {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 99, 132, 0.85);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    font-size: 0.9rem;
}

.btn-remove-preview:hover {
    background: #ff4757;
    transform: scale(1.1);
}

/* Live Preview Card (Right Column) */
.preview-card-box {
    background: #162c50;
    border: 1px solid rgba(102, 252, 241, 0.3);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.preview-card-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(102, 252, 241, 0.2);
}

.preview-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #82888b;
    font-weight: 700;
}

.preview-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin: 0;
}

.preview-card-excerpt {
    font-size: 0.86rem;
    color: #c5c6c7;
    line-height: 1.5;
    margin: 0;
}

/* Published Blog List */
.custom-blogs-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 320px;
    overflow-y: auto;
    margin-top: 1rem;
    padding-right: 4px;
}

.custom-blog-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 22, 43, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    gap: 12px;
}

.custom-blog-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(102, 252, 241, 0.2);
    flex-shrink: 0;
}

.custom-blog-meta {
    flex: 1;
    min-width: 0;
}

.custom-blog-row-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.custom-blog-row-date {
    font-size: 0.74rem;
    color: #8c9ba5;
}

.custom-blog-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-del-blog {
    background: rgba(255, 99, 132, 0.12);
    border: 1px solid rgba(255, 99, 132, 0.3);
    color: #ff6b81;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.btn-del-blog:hover {
    background: rgba(255, 99, 132, 0.3);
    color: #ffffff;
}
