/* ================================================================
   GROWINDIATECH OPERATIONS PORTAL — GLOBAL STYLESHEET
   Single shared stylesheet for the entire portal (admin + team).
   Consolidated from all pages to remove duplicate/conflicting
   padding, margin and component rules. Linked once from
   includes/header.php and team/includes/header.php.
   ================================================================ */

:root {
    --brand: #e94726;
    --brand-light: #ff6b3d;
    --brand-gradient: linear-gradient(135deg, #e94726, #ff6b3d);
    --bg: #f5f7fb;
    --text: #1a1a1a;
    --muted: #8a8a8a;
    --border: #e8e8e8;
    --radius: 14px;
}

/* ===== BASE RULES ===== */

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

body {
            font-family: 'Poppins', sans-serif;
            background: #f5f7fb;
            color: #1a1a1a;
            line-height: 1.6;
        }

a {
            text-decoration: none;
        }

.admin-wrapper {
            display: flex;
            min-height: 100vh;
        }

.sidebar {
            width: 270px;
            background: #ffffff;
            box-shadow: 4px 0 30px rgba(0, 0, 0, 0.05);
            position: fixed;
            left: 0;
            top: 0;
            bottom: 0;
            overflow-y: auto;
            transition: all 0.3s ease;
            z-index: 1000;
            border-right: 1px solid rgba(233, 71, 38, 0.08);
        }

.sidebar::-webkit-scrollbar {
            width: 4px;
        }

.sidebar::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #e94726, #ff6b3d);
            border-radius: 10px;
        }

.sidebar-header {
            padding: 28px 24px;
            text-align: center;
            border-bottom: 1px solid rgba(233, 71, 38, 0.08);
            background: linear-gradient(135deg, #fff8f5, #fff0eb);
        }

.sidebar-header .logo-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #e94726, #ff6b3d);
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 12px;
            box-shadow: 0 10px 25px rgba(233, 71, 38, 0.2);
        }

.sidebar-header .logo-icon i {
            font-size: 28px;
            color: #fff;
        }

/* Login page brand mark (index.php / includes/header.php use .logo-icon1) */
.logo-icon1 {
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 12px;
            border-radius: 18px;
            overflow: hidden;
            background: #fff;
            box-shadow: 0 10px 25px rgba(233, 71, 38, 0.15);
        }

/* Table row alias used on modules/clients/index.php */
.client-row {
            transition: background 0.2s ease;
        }

.sidebar-header h2 {
            font-size: 22px;
            font-weight: 800;
            color: #1a1a1a;
            letter-spacing: -0.5px;
        }

.sidebar-header h2 span {
            background: linear-gradient(135deg, #e94726, #ff6b3d);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

.sidebar-header .user-badge {
            display: inline-block;
            padding: 4px 16px;
            background: linear-gradient(135deg, #e94726, #ff6b3d);
            color: #fff;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            margin-top: 4px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

.sidebar-nav {
            padding: 16px 0 30px;
        }

.nav-section {
            margin-bottom: 20px;
        }

.nav-section h4 {
            color: #9a9a9a;
            padding: 0 24px;
            margin-bottom: 8px;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            font-weight: 600;
        }

.sidebar-nav a {
            display: flex;
            align-items: center;
            gap: 14px;
            text-decoration: none;
            color: #5a5a5a;
            padding: 11px 24px;
            transition: all 0.3s ease;
            border-left: 4px solid transparent;
            font-size: 15px;
            font-weight: 500;
            position: relative;
        }

.sidebar-nav a:hover {
            background: #fff5f0;
            color: #e94726;
            border-left-color: #e94726;
        }

.sidebar-nav a.active {
            background: linear-gradient(135deg, #fff5f0, #ffede8);
            color: #e94726;
            border-left-color: #e94726;
            font-weight: 600;
        }

.sidebar-nav a.active::after {
            content: '';
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            width: 8px;
            height: 8px;
            background: #e94726;
            border-radius: 50%;
        }

.sidebar-nav a i {
            width: 22px;
            text-align: center;
            font-size: 16px;
            color: #8a8a8a;
            transition: color 0.3s ease;
        }

.sidebar-nav a:hover i, .sidebar-nav a.active i {
            color: #e94726;
        }

.main-content {
            margin-left: 270px;
            flex: 1;
            min-height: 100vh;
        }

.top-header {
            height: 80px;
            background: #ffffff;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 35px;
            box-shadow: 0 3px 20px rgba(0, 0, 0, 0.04);
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid rgba(233, 71, 38, 0.06);
        }

.header-left {
            display: flex;
            align-items: center;
            gap: 20px;
        }

.menu-toggle {
            width: 44px;
            height: 44px;
            border: none;
            border-radius: 12px;
            background: linear-gradient(135deg, #e94726, #ff6b3d);
            color: #fff;
            cursor: pointer;
            font-size: 18px;
            transition: all 0.3s ease;
            display: none;
        }

.menu-toggle:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 25px rgba(233, 71, 38, 0.3);
        }

.header-left h1 {
            font-size: 22px;
            font-weight: 700;
            color: #1a1a1a;
        }

.header-left h1 .greeting {
            font-weight: 400;
            color: #8a8a8a;
            font-size: 16px;
        }

.header-left h1 .user-name {
            background: linear-gradient(135deg, #e94726, #ff6b3d);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

.header-right {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }

.header-right .badge {
            padding: 8px 20px;
            border-radius: 30px;
            background: linear-gradient(135deg, #fff5f0, #ffede8);
            color: #e94726;
            font-size: 13px;
            font-weight: 600;
            border: 1px solid rgba(233, 71, 38, 0.15);
        }

.header-right .badge i {
            margin-right: 6px;
        }

.btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            border: none;
            cursor: pointer;
            border-radius: 12px;
            font-weight: 600;
            font-size: 14px;
            font-family: 'Poppins', sans-serif;
            padding: 10px 20px;
            transition: all 0.3s ease;
            background: #f5f5f5;
            color: #1a1a1a;
        }

.btn-primary {
            background: linear-gradient(135deg, #e94726, #ff6b3d);
            color: #fff;
            box-shadow: 0 8px 20px rgba(233, 71, 38, 0.2);
        }

.btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 30px rgba(233, 71, 38, 0.3);
        }

.btn-sm {
            padding: 6px 14px;
            font-size: 13px;
            border-radius: 8px;
        }

.btn-white {
            background: #ffffff;
            color: #1a1a1a;
            border: 1px solid #e8e8e8;
        }

.btn-white:hover {
            border-color: #e94726;
            color: #e94726;
        }

.user-profile {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 6px 14px 6px 6px;
            border-radius: 30px;
            border: 1px solid #e8e8e8;
            transition: all 0.3s ease;
            cursor: pointer;
        }

.user-profile:hover {
            border-color: #e94726;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
        }

.user-avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: linear-gradient(135deg, #e94726, #ff6b3d);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 16px;
        }

.user-name-display {
            font-weight: 600;
            font-size: 14px;
            color: #1a1a1a;
        }

.user-role-display {
            font-size: 12px;
            color: #8a8a8a;
        }

.content-area {
            padding: 30px 35px;
        }

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.module-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.module-header h2 i {
    background: linear-gradient(135deg, #e94726, #ff6b3d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e94726;
    color: #e94726;
}

.btn-outline:hover {
    background: #e94726;
    color: #ffffff;
}

.alert {
    padding: 14px 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    border: 1px solid transparent;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #e8f5e9;
    border-color: #c8e6c9;
    color: #2e7d32;
}

.alert-success i {
    color: #4caf50;
    font-size: 18px;
}

.alert-success .btn {
    background: #2e7d32;
    color: #fff;
    padding: 4px 12px;
    font-size: 13px;
}

.alert-success .btn:hover {
    background: #1b5e20;
}

.alert-error {
    background: #ffebee;
    border-color: #ffcdd2;
    color: #c62828;
}

.alert-error i {
    color: #dc3545;
    font-size: 18px;
}

.card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(233, 71, 38, 0.06);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.card-body {
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.form-group label .required {
    color: #e94726;
    margin-left: 2px;
}

.form-group .form-hint {
    font-size: 12px;
    color: #8a8a8a;
    margin-top: 4px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
    color: #1a1a1a;
}

.form-control:focus {
    outline: none;
    border-color: #e94726;
    box-shadow: 0 0 0 4px rgba(233, 71, 38, 0.08);
    background: #ffffff;
}

.form-control::placeholder {
    color: #b0b0b0;
}

.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.08);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236a6a6a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}

.social-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fafafa;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    transition: all 0.3s ease;
    padding: 0 4px 0 14px;
}

.social-input-wrapper:focus-within {
    border-color: #e94726;
    box-shadow: 0 0 0 4px rgba(233, 71, 38, 0.08);
    background: #ffffff;
}

.social-input-wrapper i {
    color: #8a8a8a;
    font-size: 16px;
    flex-shrink: 0;
}

.social-input-wrapper .form-control {
    border: none;
    background: transparent;
    padding: 12px 12px 12px 4px;
    flex: 1;
}

.social-input-wrapper .form-control:focus {
    box-shadow: none;
    background: transparent;
}

.social-input-wrapper .social-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.social-input-wrapper .social-icon.facebook {
    background: #1877f2;
}

.social-input-wrapper .social-icon.instagram {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-input-wrapper .social-icon.linkedin {
    background: #0a66c2;
}

.social-input-wrapper .social-icon.youtube {
    background: #ff0000;
}

.assignment-section {
    background: linear-gradient(135deg, #f8fafc, #f0f4ff);
    border-radius: 14px;
    padding: 16px 20px;
    border: 1px dashed #e94726;
    margin-bottom: 20px;
}

.assignment-section .section-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.assignment-section .section-title i {
    color: #e94726;
}

.assignment-section .form-hint {
    font-size: 12px;
    color: #8a8a8a;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e94726, #ff6b3d);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e94726;
}

.btn-view {
    background: #e3f2fd;
    color: #1565c0;
}

.btn-view:hover {
    background: #bbdefb;
    transform: translateY(-2px);
}

.btn-edit {
    background: #fff8e1;
    color: #f57c00;
}

.btn-edit:hover {
    background: #ffecb3;
    transform: translateY(-2px);
}

.btn-delete {
    background: #ffebee;
    color: #c62828;
}

.btn-delete:hover {
    background: #ffcdd2;
    transform: translateY(-2px);
}

.filter-bar {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar .form-control {
    padding: 10px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
    transition: all 0.3s ease;
    color: #1a1a1a;
    min-width: 200px;
}

.filter-bar .form-control:focus {
    outline: none;
    border-color: #e94726;
    box-shadow: 0 0 0 4px rgba(233, 71, 38, 0.08);
    background: #ffffff;
}

.filter-bar .form-control::placeholder {
    color: #b0b0b0;
}

.filter-bar select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236a6a6a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    min-width: 150px;
}

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.table thead th {
    background: #f8f9fa;
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #4a4a4a;
    border-bottom: 2px solid #e8e8e8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background: #fafbfc;
}

.client-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94726, #ff6b3d);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(233, 71, 38, 0.2);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.client-details {
    display: flex;
    flex-direction: column;
}

.client-details .company-name {
    font-weight: 600;
    color: #1a1a1a;
}

.client-details .client-email {
    font-size: 13px;
    color: #8a8a8a;
}

.badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-danger {
    background: #ffebee;
    color: #c62828;
}

.badge-warning {
    background: #fff8e1;
    color: #f57c00;
}

.badge-primary {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-orange {
    background: #fff3e0;
    color: #e94726;
}

.badge-info {
    background: #f3e5f5;
    color: #6a1b9a;
}

.action-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 48px;
    color: #d1d5db;
    display: block;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.empty-state p {
    color: #8a8a8a;
    max-width: 400px;
    margin: 0 auto 20px;
}

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(233, 71, 38, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafbfc;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.card-header h3 i {
    color: #e94726;
}

.client-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.client-info-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.client-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.client-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4a4a4a;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.client-detail-item:last-child {
    border-bottom: none;
}

.client-detail-item i {
    width: 20px;
    color: #e94726;
    font-size: 16px;
}

.client-detail-item .label {
    font-weight: 500;
    color: #6a6a6a;
    min-width: 100px;
}

.client-detail-item .value {
    color: #1a1a1a;
    font-weight: 500;
}

.client-detail-item .value a {
    color: #e94726;
    text-decoration: none;
}

.client-detail-item .value a:hover {
    text-decoration: underline;
}

.status-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.inactive {
    background: #ffebee;
    color: #c62828;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 18px;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.05);
}

.social-links .facebook {
    background: #1877f2;
    color: #fff;
}

.social-links .instagram {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.social-links .linkedin {
    background: #0a66c2;
    color: #fff;
}

.social-links .youtube {
    background: #ff0000;
    color: #fff;
}

.social-links .twitter {
    background: #1da1f2;
    color: #fff;
}

.package-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: #fff3e0;
    color: #e94726;
    border: 1px solid rgba(233, 71, 38, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.priority-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.priority-badge.low {
    background: #e3f2fd;
    color: #1565c0;
}

.priority-badge.medium {
    background: #fff8e1;
    color: #f57c00;
}

.priority-badge.high {
    background: #ffebee;
    color: #c62828;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(233, 71, 38, 0.06);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    flex-shrink: 0;
}

.stat-info h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.stat-info p {
    font-size: 13px;
    color: #8a8a8a;
    margin: 0;
}

.filter-bar .btn {
    padding: 8px 18px;
    font-size: 14px;
}

.badge-hold {
    background: #ede7f6;
    color: #5e35b1;
}

.overdue {
    color: #dc3545 !important;
    font-weight: 600;
}

.overdue-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    background: #ffebee;
    color: #c62828;
    margin-left: 4px;
}

.task-title {
    font-weight: 600;
    color: #1a1a1a;
}

.task-description {
    font-size: 13px;
    color: #8a8a8a;
    display: block;
    margin-top: 2px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }

.stat-card:nth-child(2) { animation-delay: 0.1s; }

.stat-card:nth-child(3) { animation-delay: 0.15s; }

.stat-card:nth-child(4) { animation-delay: 0.2s; }

.stat-card:nth-child(5) { animation-delay: 0.25s; }

.stat-card:nth-child(6) { animation-delay: 0.3s; }

.btn-danger {
    background: #dc3545;
    color: #ffffff;
}

.btn-danger:hover {
    background: #c62828;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
    transform: translateY(-2px);
}

.status-badge.pending {
    background: #fff8e1;
    color: #f57c00;
}

.status-badge.in_progress {
    background: #e3f2fd;
    color: #1565c0;
}

.status-badge.completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.approved {
    background: #f3e5f5;
    color: #6a1b9a;
}

.status-badge.hold {
    background: #ede7f6;
    color: #5e35b1;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.form-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 14px;
}

.form-actions .btn-danger {
    flex: 0 0 auto;
    padding: 14px 24px;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-icon i {
    color: #ffffff;
    font-size: 30px;
}

.card h3 {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.card p {
    color: #8a8a8a;
    font-size: 14px;
    margin: 0 0 16px;
    line-height: 1.6;
}

.card .btn {
    margin-top: 4px;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-badge.popular {
    background: #fff3e0;
    color: #e94726;
}

.card-badge.new {
    background: #e3f2fd;
    color: #1565c0;
}

.card-badge.updated {
    background: #e8f5e9;
    color: #2e7d32;
}

.report-grid .card {
    animation: fadeInUp 0.5s ease forwards;
}

.report-grid .card:nth-child(1) { animation-delay: 0.1s; }

.report-grid .card:nth-child(2) { animation-delay: 0.2s; }

.report-grid .card:nth-child(3) { animation-delay: 0.3s; }

.report-grid .card:nth-child(4) { animation-delay: 0.4s; }

.strategy-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
}

.strategy-tag.boosted {
    background: #fff3e0;
    color: #e94726;
    border-color: rgba(233, 71, 38, 0.2);
}

.strategy-tag.reels {
    background: #f3e5f5;
    color: #6a1b9a;
    border-color: rgba(106, 27, 154, 0.2);
}

.strategy-tag.ugc {
    background: #e3f2fd;
    color: #1565c0;
    border-color: rgba(21, 101, 192, 0.2);
}

.strategy-tag.influencers {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: rgba(46, 125, 50, 0.2);
}

.strategy-tag.peak {
    background: #fce4ec;
    color: #c62828;
    border-color: rgba(198, 40, 40, 0.2);
}

.progress-container {
    width: 100%;
    margin-top: 4px;
}

.progress-bar-track {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.progress-bar-fill.posting {
    background: linear-gradient(135deg, #e94726, #ff6b3d);
}

.progress-bar-fill.follower {
    background: linear-gradient(135deg, #2196f3, #64b5f6);
}

.progress-text {
    font-weight: 600;
    font-size: 13px;
}

.progress-text.success {
    color: #4caf50;
}

.progress-text.warning {
    color: #ff9800;
}

.progress-text.danger {
    color: #dc3545;
}

.goal-display {
    display: flex;
    align-items: center;
    gap: 4px;
}

.goal-display .actual {
    font-weight: 700;
    color: #1a1a1a;
}

.goal-display .separator {
    color: #8a8a8a;
}

.goal-display .goal {
    color: #8a8a8a;
}

.follower-count {
    font-weight: 700;
    color: #1a1a1a;
}

.follower-count .follower-icon {
    color: #e94726;
    margin-right: 4px;
}

.table tbody tr:nth-child(1) { animation-delay: 0.05s; }

.table tbody tr:nth-child(2) { animation-delay: 0.1s; }

.table tbody tr:nth-child(3) { animation-delay: 0.15s; }

.table tbody tr:nth-child(4) { animation-delay: 0.2s; }

.table tbody tr:nth-child(5) { animation-delay: 0.25s; }

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #e94726, #ff6b3d);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.text-success {
    color: #4caf50 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.platform-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.platform-badge.facebook {
    background: #1877f2;
    color: #fff;
}

.platform-badge.instagram {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.platform-badge.linkedin {
    background: #0a66c2;
    color: #fff;
}

.platform-badge.youtube {
    background: #ff0000;
    color: #fff;
}

.platform-badge.twitter {
    background: #1da1f2;
    color: #fff;
}

.btn-assign {
    background: #e3f2fd;
    color: #1565c0;
}

.btn-assign:hover {
    background: #bbdefb;
    transform: translateY(-2px);
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94726, #ff6b3d);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(233, 71, 38, 0.2);
}

.member-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-details {
    display: flex;
    flex-direction: column;
}

.member-details .member-name {
    font-weight: 600;
    color: #1a1a1a;
}

.member-details .member-email {
    font-size: 13px;
    color: #8a8a8a;
}

.role-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.role-badge.account_manager {
    background: #dbeafe;
    color: #1e40af;
}

.role-badge.social_media_manager {
    background: #fce7f3;
    color: #9d174d;
}

.role-badge.graphic_designer {
    background: #d1fae5;
    color: #065f46;
}

.role-badge.video_editor {
    background: #fef3c7;
    color: #92400e;
}

.role-badge.content_writer {
    background: #e0e7ff;
    color: #3730a3;
}

.role-badge.seo_executive {
    background: #f3e8ff;
    color: #6b21a8;
}

.role-badge.performance_marketer {
    background: #fde8e5;
    color: #b91c1c;
}

.client-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.client-tag {
    background: #f5f5f5;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: #5a5a5a;
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}

.client-tag:hover {
    background: #fff3e0;
    border-color: #e94726;
    color: #e94726;
}

.client-count {
    font-size: 12px;
    color: #8a8a8a;
    display: block;
    margin-top: 4px;
}

select.form-control[multiple] {
    background-image: none;
    padding-right: 12px;
    min-height: 100px;
}

select.form-control[multiple] option {
    padding: 8px 12px;
    border-radius: 6px;
}

select.form-control[multiple] option:checked {
    background: #e94726 linear-gradient(0deg, #e94726 0%, #e94726 100%);
    color: #fff;
}

.role-preview {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

.role-preview.account_manager {
    background: #dbeafe;
    color: #1e40af;
}

.role-preview.social_media_manager {
    background: #fce7f3;
    color: #9d174d;
}

.role-preview.graphic_designer {
    background: #d1fae5;
    color: #065f46;
}

.role-preview.video_editor {
    background: #fef3c7;
    color: #92400e;
}

.role-preview.content_writer {
    background: #e0e7ff;
    color: #3730a3;
}

.role-preview.seo_executive {
    background: #f3e8ff;
    color: #6b21a8;
}

.role-preview.performance_marketer {
    background: #fde8e5;
    color: #b91c1c;
}

.client-tags-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.client-tag-preview {
    background: #f1f5f9;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #1a1a1a;
    border: 1px solid #e8e8e8;
}

.client-tag-preview i {
    color: #e94726;
    margin-right: 4px;
}

.password-strength {
    margin-top: 6px;
    height: 4px;
    border-radius: 2px;
    background: #f0f0f0;
    overflow: hidden;
}

.password-strength .strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.password-strength .strength-bar.weak {
    width: 33%;
    background: #dc3545;
}

.password-strength .strength-bar.medium {
    width: 66%;
    background: #f59e0b;
}

.password-strength .strength-bar.strong {
    width: 100%;
    background: #4caf50;
}

.password-hint {
    font-size: 12px;
    color: #8a8a8a;
    margin-top: 4px;
}

.stat-info small {
    font-size: 12px;
    color: #b0b0b0;
    display: block;
    margin-top: 2px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.billing-status {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.billing-status.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.billing-status.expired {
    background: #ffebee;
    color: #c62828;
}

.billing-status.upcoming {
    background: #fff8e1;
    color: #f57c00;
}

.billing-status.unknown {
    background: #f5f5f5;
    color: #8a8a8a;
}

.employee-task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f5f5f5;
}

.employee-task-item:last-child {
    border-bottom: none;
}

.employee-task-item .task-count {
    background: #e94726;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.employee-task-item .task-priority {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 8px;
}

.employee-task-item .task-priority.high {
    background: #ffebee;
    color: #c62828;
}

.employee-task-item .task-priority.medium {
    background: #fff8e1;
    color: #f57c00;
}

.employee-task-item .task-priority.low {
    background: #e8f5e9;
    color: #2e7d32;
}

.meta-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.meta-summary-item {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.meta-summary-item .meta-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.meta-summary-item .meta-label {
    font-size: 11px;
    color: #8a8a8a;
}

.login-wrapper {
            width: 100%;
            max-width: 480px;
        }

.login-container {
            background: #ffffff;
            border-radius: 40px;
            padding: 50px 45px;
            box-shadow: 0 30px 60px rgba(233, 71, 38, 0.15);
            position: relative;
            overflow: hidden;
        }

.login-container::before {
            content: '';
            position: absolute;
            top: -80px;
            right: -80px;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(233, 71, 38, 0.08) 0%, transparent 70%);
            border-radius: 50%;
        }

.login-header {
            text-align: center;
            margin-bottom: 40px;
            position: relative;
            z-index: 1;
        }

.login-logo {
            width: 90px;
            height: 90px;
            background: linear-gradient(135deg, #e94726, #ff6b3d);
            border-radius: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            box-shadow: 0 15px 35px rgba(233, 71, 38, 0.3);
            transition: transform 0.3s ease;
        }

.login-logo:hover {
            transform: scale(1.05);
        }

.login-logo i {
            font-size: 40px;
            color: #fff;
        }

.login-header h1 {
            font-size: 32px;
            font-weight: 800;
            color: #1a1a1a;
            letter-spacing: -0.5px;
        }

.login-header h1 span {
            background: linear-gradient(135deg, #e94726, #ff6b3d);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

.login-header p {
            color: #6b6b6b;
            font-size: 16px;
            font-weight: 400;
            margin-top: 6px;
        }

.input-wrapper {
            position: relative;
        }

.input-wrapper i {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #aaa;
            font-size: 16px;
            transition: color 0.3s ease;
        }

.input-wrapper input {
            width: 100%;
            padding: 14px 16px 14px 48px;
            border: 2px solid #e8e8e8;
            border-radius: 16px;
            font-size: 15px;
            font-family: 'Poppins', sans-serif;
            transition: all 0.3s ease;
            background: #fafafa;
            color: #1a1a1a;
        }

.input-wrapper input:focus {
            outline: none;
            border-color: #e94726;
            box-shadow: 0 0 0 4px rgba(233, 71, 38, 0.1);
            background: #ffffff;
        }

.input-wrapper input:focus + i {
            color: #e94726;
        }

.input-wrapper input::placeholder {
            color: #b0b0b0;
        }

.toggle-password {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            color: #aaa;
            padding: 4px;
            transition: color 0.3s ease;
        }

.toggle-password:hover {
            color: #1a1a1a;
        }

.form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 28px;
            position: relative;
            z-index: 1;
        }

.checkbox-wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            font-size: 14px;
            color: #4a4a4a;
        }

.checkbox-wrapper input[type="checkbox"] {
            width: 20px;
            height: 20px;
            accent-color: #e94726;
            cursor: pointer;
            border-radius: 6px;
        }

.forgot-link {
            font-size: 14px;
            color: #e94726;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }

.forgot-link:hover {
            color: #c0392b;
            text-decoration: underline;
        }

.btn-login {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, #e94726, #ff6b3d);
            color: #ffffff;
            border: none;
            border-radius: 16px;
            font-size: 17px;
            font-weight: 600;
            font-family: 'Poppins', sans-serif;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            position: relative;
            z-index: 1;
            box-shadow: 0 8px 25px rgba(233, 71, 38, 0.3);
        }

.btn-login:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(233, 71, 38, 0.4);
        }

.btn-login:active {
            transform: translateY(0);
        }

.btn-login i {
            font-size: 18px;
        }

.login-divider {
            display: flex;
            align-items: center;
            gap: 16px;
            margin: 28px 0 20px;
            position: relative;
            z-index: 1;
        }

.login-divider::before, .login-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: linear-gradient(to right, transparent, #e0e0e0, transparent);
        }

.login-divider span {
            font-size: 12px;
            color: #aaa;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

.login-footer {
            text-align: center;
            position: relative;
            z-index: 1;
        }

.login-footer p {
            font-size: 13px;
            color: #8a8a8a;
        }

.login-footer strong {
            color: #e94726;
        }

.demo-credentials {
            display: flex;
            justify-content: center;
            gap: 16px;
            margin-top: 10px;
            flex-wrap: wrap;
        }

.demo-credentials span {
            font-size: 12px;
            color: #6b6b6b;
            background: #f5f5f5;
            padding: 4px 14px;
            border-radius: 8px;
            font-family: 'Poppins', sans-serif;
        }

.demo-credentials span strong {
            color: #1a1a1a;
        }

.security-badge {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 16px;
            font-size: 12px;
            color: #8a8a8a;
        }

.security-badge i {
            color: #4caf50;
        }

.profile-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f5f5f5;
}

.profile-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.profile-avatar .avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94726, #ff6b3d);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(233, 71, 38, 0.3);
    transition: all 0.3s ease;
    border: 4px solid #ffffff;
    outline: 2px solid #e94726;
}

.profile-avatar .avatar-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(233, 71, 38, 0.4);
}

.profile-avatar .avatar-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #4caf50;
    border: 3px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.profile-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 8px 0 4px;
}

.profile-header .role-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #fff5f0, #ffede8);
    color: #e94726;
    border: 1px solid rgba(233, 71, 38, 0.15);
}

.profile-header .role-badge i {
    margin-right: 6px;
}

.profile-header .user-email {
    display: block;
    color: #8a8a8a;
    font-size: 15px;
    margin-top: 4px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-item {
    background: #f8fafc;
    padding: 14px 18px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: #e94726;
    background: #fff5f0;
}

.stat-item .stat-number {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.stat-item .stat-label {
    font-size: 13px;
    color: #8a8a8a;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.client-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    border-color: #e94726;
}

.client-card .client-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94726, #ff6b3d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(233, 71, 38, 0.2);
}

.client-card .client-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.client-card .client-contact {
    font-size: 14px;
    color: #8a8a8a;
    margin: 0;
}

.client-card .client-email {
    font-size: 14px;
    color: #8a8a8a;
    margin: 4px 0 0;
}

.client-card .client-email i {
    color: #e94726;
    margin-right: 4px;
}

.client-card .client-status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.client-card .client-status.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.client-card .client-status.inactive {
    background: #ffebee;
    color: #c62828;
}

.client-card .client-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.client-card .client-stats .stat-item {
    text-align: center;
}

.client-card .client-stats .stat-item .stat-number {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.client-card .client-stats .stat-item .stat-label {
    font-size: 11px;
    color: #8a8a8a;
}

.client-card .client-stats .stat-item .stat-number.total {
    color: #2196f3;
}

.client-card .client-stats .stat-item .stat-number.completed {
    color: #4caf50;
}

.client-card .client-stats .stat-item .stat-number.pending {
    color: #f59e0b;
}

.client-card .client-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.client-card .client-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 13px;
    padding: 6px 12px;
}

.btn-task {
    background: #fff3e0;
    color: #e94726;
}

.btn-task:hover {
    background: #ffe0b2;
}

.sidebar-header .user-avatar-lg {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: linear-gradient(135deg, #e94726, #ff6b3d);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 10px;
            font-size: 28px;
            font-weight: 700;
            box-shadow: 0 8px 25px rgba(233, 71, 38, 0.2);
        }

.sidebar-header h3 {
            font-size: 18px;
            font-weight: 700;
            color: #1a1a1a;
        }

.sidebar-header .user-role {
            font-size: 13px;
            color: #e94726;
            font-weight: 500;
            background: #fff3e0;
            padding: 2px 16px;
            border-radius: 20px;
            display: inline-block;
            margin-top: 2px;
        }

.sidebar-nav a .nav-badge {
            margin-left: auto;
            background: linear-gradient(135deg, #e94726, #ff6b3d);
            color: #fff;
            padding: 2px 12px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
        }

.dropdown-menu {
            padding-left: 40px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

.dropdown-menu.open {
            max-height: 500px;
        }

.dropdown-menu a {
            padding: 8px 20px;
            font-size: 14px;
            color: #6a6a6a;
            border-left: 3px solid transparent;
            display: flex;
            align-items: center;
            gap: 10px;
        }

.dropdown-menu a:hover {
            background: #fff5f0;
            color: #e94726;
            border-left-color: #e94726;
        }

.dropdown-menu a i {
            font-size: 13px;
            color: #8a8a8a;
        }

.dropdown-toggle {
            cursor: pointer;
        }

.dropdown-toggle .arrow {
            margin-left: auto;
            transition: transform 0.3s ease;
        }

.dropdown-toggle .arrow.rotated {
            transform: rotate(90deg);
        }

.team-dashboard {
    padding: 10px 0;
}

.welcome-section {
    margin-bottom: 28px;
}

.welcome-section .welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.welcome-section h2 {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
}

.welcome-section h2 .highlight {
    background: linear-gradient(135deg, #e94726, #ff6b3d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-section .date-display {
    color: #8a8a8a;
    font-size: 14px;
    padding: 6px 16px;
    background: #f5f5f5;
    border-radius: 20px;
}

.welcome-section p {
    color: #8a8a8a;
    font-size: 15px;
    margin: 4px 0 0;
}

.client-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid rgba(233, 71, 38, 0.06);
}

.client-tags-container .tag-label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.client-tag i {
    font-size: 12px;
}

.no-clients {
    color: #8a8a8a;
    font-size: 14px;
    padding: 8px 0;
}

.empty-state i.success-icon {
    color: #4caf50;
}

.report-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.report-item {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.report-item:hover {
    border-color: #e94726;
    background: #fff5f0;
}

.report-item .report-date {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.report-item .report-client {
    color: #8a8a8a;
    font-size: 13px;
}

.report-item .report-hours {
    float: right;
    color: #e94726;
    font-weight: 600;
}

.login-container::after {
            content: '';
            position: absolute;
            bottom: -60px;
            left: -60px;
            width: 150px;
            height: 150px;
            background: radial-gradient(circle, rgba(233, 71, 38, 0.04) 0%, transparent 70%);
            border-radius: 50%;
        }

.login-header .subtitle {
            color: #6b6b6b;
            font-size: 15px;
            font-weight: 400;
            margin-top: 4px;
        }

.login-header .team-badge {
            display: inline-block;
            padding: 4px 16px;
            background: #e8f5e9;
            color: #2e7d32;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            margin-top: 8px;
        }

.login-header .team-badge i {
            margin-right: 4px;
        }

.alert-info {
            background: #e3f2fd;
            border-color: #bbdefb;
            color: #1565c0;
        }

.alert-info i {
            color: #1976d2;
        }

.admin-link {
            display: inline-block;
            margin-top: 12px;
            color: #6b6b6b;
            font-size: 13px;
            text-decoration: none;
            transition: color 0.3s ease;
        }

.admin-link:hover {
            color: #e94726;
        }

.admin-link i {
            margin-right: 4px;
        }

.overdue-text {
    color: #dc3545 !important;
    font-weight: 600;
}

.done-state {
    color: #8a8a8a;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.done-state i {
    color: #4caf50;
    font-size: 16px;
}

.btn-today {
    background: #e8f5e9;
    color: #2e7d32;
}

.btn-today:hover {
    background: #c8e6c9;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.calendar-nav .month-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.calendar-nav .nav-buttons {
    display: flex;
    gap: 8px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-grid .day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6a6a6a;
    padding: 8px 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-grid .day-header.weekend {
    color: #e94726;
}

.calendar-day {
    min-height: 100px;
    background: #fafbfc;
    border-radius: 10px;
    padding: 6px 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
}

.calendar-day:hover {
    background: #f0f2f5;
    border-color: #e94726;
}

.calendar-day.other-month {
    opacity: 0.4;
}

.calendar-day.today {
    border-color: #e94726;
    background: #fff5f0;
}

.calendar-day.today .day-number {
    background: #e94726;
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day .day-number {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.calendar-day .day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar-day .event-item {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day .event-item:hover {
    transform: scale(1.02);
}

.calendar-day .event-item.task {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 3px solid #1565c0;
}

.calendar-day .event-item.task.high {
    background: #ffebee;
    color: #c62828;
    border-left: 3px solid #c62828;
}

.calendar-day .event-item.task.medium {
    background: #fff8e1;
    color: #f57c00;
    border-left: 3px solid #f57c00;
}

.calendar-day .event-item.task.low {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 3px solid #2e7d32;
}

.calendar-day .event-item.report {
    background: #f3e5f5;
    color: #6a1b9a;
    border-left: 3px solid #6a1b9a;
}

.calendar-day .event-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.calendar-day .event-count {
    font-size: 10px;
    color: #8a8a8a;
    margin-top: 2px;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    margin-top: 16px;
}

.calendar-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4a4a4a;
}

.calendar-legend .legend-item .color-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.calendar-legend .legend-item .color-dot.task {
    background: #e3f2fd;
    border: 1px solid #1565c0;
}

.calendar-legend .legend-item .color-dot.task-high {
    background: #ffebee;
    border: 1px solid #c62828;
}

.calendar-legend .legend-item .color-dot.task-medium {
    background: #fff8e1;
    border: 1px solid #f57c00;
}

.calendar-legend .legend-item .color-dot.task-low {
    background: #e8f5e9;
    border: 1px solid #2e7d32;
}

.calendar-legend .legend-item .color-dot.report {
    background: #f3e5f5;
    border: 1px solid #6a1b9a;
}

.calendar-legend .legend-item .color-dot.completed {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    opacity: 0.6;
}

.event-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 999;
    padding: 24px;
}

.event-popup.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.event-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.event-popup .popup-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.event-popup .popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #8a8a8a;
    transition: color 0.3s ease;
}

.event-popup .popup-close:hover {
    color: #1a1a1a;
}

.event-popup .popup-body {
    max-height: 300px;
    overflow-y: auto;
}

.event-popup .popup-event {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 4px solid #1565c0;
    background: #f8fafc;
}

.event-popup .popup-event .event-title {
    font-weight: 600;
    font-size: 14px;
}

.event-popup .popup-event .event-meta {
    font-size: 12px;
    color: #8a8a8a;
    margin-top: 2px;
}

.event-popup .popup-event .event-meta i {
    margin-right: 4px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
}

.overlay.active {
    display: block;
}

.btn-success {
    background: #4caf50;
    color: #fff;
}

.btn-success:hover {
    background: #388e3c;
}

.priority-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.priority-dot.high {
    background: #dc3545;
}

.priority-dot.medium {
    background: #f59e0b;
}

.priority-dot.low {
    background: #2196f3;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.report-summary .summary-item {
    text-align: center;
}

.report-summary .summary-item .value {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.report-summary .summary-item .label {
    font-size: 13px;
    color: #8a8a8a;
}

.type-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.type-badge.weekly {
    background: #e3f2fd;
    color: #1565c0;
}

.type-badge.monthly {
    background: #f3e5f5;
    color: #6a1b9a;
}

.assign-container {
    max-width: 800px;
    margin: 0 auto;
}

.member-info-box {
    background: linear-gradient(135deg, #fff5f0, #ffede8);
    padding: 20px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(233, 71, 38, 0.1);
}

.member-avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94726, #ff6b3d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.client-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
}

.client-check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.client-check-item:hover {
    border-color: #e94726;
    background: #fff5f0;
}

.client-check-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #e94726;
    cursor: pointer;
    flex-shrink: 0;
}

.client-check-item .client-name {
    font-weight: 500;
    flex: 1;
}

.client-check-item .status-badge {
    font-size: 11px;
    padding: 2px 12px;
    border-radius: 12px;
}

.client-check-item .status-badge.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.client-check-item .status-badge.inactive {
    background: #f5f5f5;
    color: #8a8a8a;
}

.client-check-item .assigned-tag {
    background: #e94726;
    color: #fff;
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.client-tag:nth-child(1) { animation-delay: 0.05s; }

.client-tag:nth-child(2) { animation-delay: 0.1s; }

.client-tag:nth-child(3) { animation-delay: 0.15s; }

.client-tag:nth-child(4) { animation-delay: 0.2s; }

.client-tag:nth-child(5) { animation-delay: 0.25s; }

select.form-control[multiple] option:hover {
    background: #f5f5f5;
}

.client-tag-preview:hover {
    background: #fff3e0;
    border-color: #e94726;
    color: #e94726;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.table tbody tr:nth-child(6) { animation-delay: 0.3s; }

.table tbody tr:nth-child(7) { animation-delay: 0.35s; }

.table tbody tr:nth-child(8) { animation-delay: 0.4s; }

.table tbody tr:nth-child(9) { animation-delay: 0.45s; }

.table tbody tr:nth-child(10) { animation-delay: 0.5s; }

.text-center {
    text-align: center;
}

.text-muted {
    color: #8a8a8a;
}

.mt-2 {
    margin-top: 16px;
}

.mb-2 {
    margin-bottom: 16px;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.w-100 {
    width: 100%;
}

.task-details {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.task-details .task-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.task-details .task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 8px;
}

.task-details .task-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6a6a6a;
}

.task-details .task-meta .meta-item strong {
    color: #1a1a1a;
    font-weight: 600;
}

.task-details .task-meta .meta-item .badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.task-details .task-meta .meta-item .badge.client {
    background: #fff3e0;
    color: #e94726;
}

.task-details .task-meta .meta-item .badge.deadline {
    background: #f3e5f5;
    color: #6a1b9a;
}

.task-details .task-meta .meta-item .badge.deadline.overdue {
    background: #ffebee;
    color: #c62828;
}

.task-details .task-description {
    margin-top: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #e94726;
    color: #4a4a4a;
    font-size: 14px;
    line-height: 1.6;
}

.current-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0 12px;
}

.current-status.pending {
    background: #fff8e1;
    color: #f57c00;
}

.current-status.in_progress {
    background: #e3f2fd;
    color: #1565c0;
}

.current-status.completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.current-status i {
    font-size: 16px;
}

.status-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.status-option {
    padding: 14px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.status-option:hover {
    border-color: #e94726;
    background: #fff5f0;
    transform: translateY(-2px);
}

.status-option.selected {
    border-color: #e94726;
    background: #fff5f0;
    box-shadow: 0 0 0 3px rgba(233, 71, 38, 0.1);
}

.status-option .status-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 4px;
}

.status-option .status-label {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
}

.task-details .task-meta .meta-item .badge.overdue {
    background: #ffebee;
    color: #c62828;
}

.strategy-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.strategy-badge.boosted {
    background: #fff3e0;
    color: #e94726;
}

.strategy-badge.reels {
    background: #f3e5f5;
    color: #6a1b9a;
}

.strategy-badge.ugc {
    background: #e3f2fd;
    color: #1565c0;
}

.strategy-badge.influencers {
    background: #e8f5e9;
    color: #2e7d32;
}

.strategy-badge.peak {
    background: #fce4ec;
    color: #c62828;
}

.progress-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.progress-indicator .progress-bar {
    flex: 1;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-indicator .progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #e94726, #ff6b3d);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.progress-indicator .progress-text {
    font-size: 13px;
    font-weight: 600;
    color: #4a4a4a;
    min-width: 40px;
}

.btn-warning {
    background: #ff9800;
    color: #fff;
}

.btn-warning:hover {
    background: #f57c00;
}

.btn-todo {
    background: #e3f2fd;
    color: #1565c0;
}

.btn-todo:hover {
    background: #bbdefb;
}

.task-table-wrap {
    overflow-x: auto;
    margin-top: 12px;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.task-table thead th {
    background: #f8f9fa;
    padding: 8px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: #4a4a4a;
    border-bottom: 2px solid #e8e8e8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-table tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.task-table tbody tr:last-child td {
    border-bottom: none;
}

.task-table tbody tr:hover {
    background: #fafbfc;
}

.report-item .report-work {
    font-size: 13px;
    color: #4a4a4a;
    margin-top: 4px;
}

.action-buttons .btn {
    padding: 4px 10px;
    font-size: 12px;
}

.client-info-bar {
    background: linear-gradient(135deg, #fff8f5, #fff0eb);
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(233, 71, 38, 0.1);
}

.client-info-bar .client-name-large {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.client-info-bar .client-name-large i {
    color: #e94726;
    margin-right: 8px;
}

.client-info-bar .client-meta {
    font-size: 14px;
    color: #6a6a6a;
}

.client-info-bar .client-meta span {
    margin-left: 16px;
}

.client-info-bar .client-meta .badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.profile-avatar h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.profile-avatar .role-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: #fff3e0;
    color: #e94726;
    border: 1px solid rgba(233, 71, 38, 0.15);
}

/* ===== RESPONSIVE RULES ===== */

@media (max-width: 991px) {
    .sidebar {
                left: -270px;
            }
    .sidebar.active {
                left: 0;
            }
    .main-content {
                margin-left: 0;
            }
    .menu-toggle {
                display: block;
            }
    .top-header {
                padding: 0 20px;
            }
    .content-area {
                padding: 20px;
            }
    .header-left h1 {
                font-size: 18px;
            }
    .header-right .badge {
                display: none;
            }
    .header-left h1 .greeting {
                display: none;
            }
}

@media (max-width: 480px) {
    .top-header {
                padding: 0 14px;
                height: 64px;
            }
    .header-left h1 {
                font-size: 15px;
            }
    .header-left h1 .greeting {
                display: none;
            }
    .user-profile .user-name-display {
                display: none;
            }
    .user-profile .user-role-display {
                display: none;
            }
    .btn-white {
                padding: 6px 10px;
                font-size: 12px;
            }
    .btn-white span {
                display: none;
            }
    .content-area {
                padding: 14px;
            }
    .module-header h2 {
        font-size: 20px;
    }
    .card-body {
        padding: 16px;
    }
    .form-control {
        padding: 10px 14px;
        font-size: 14px;
    }
    .social-input-wrapper {
        padding: 0 4px 0 10px;
    }
    .social-input-wrapper .form-control {
        padding: 10px 10px 10px 4px;
        font-size: 14px;
    }
    .btn-primary {
        font-size: 14px;
        padding: 12px;
    }
    .table td {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .table td:before {
        width: 100%;
        margin-right: 0;
    }
    .action-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    .action-buttons .btn {
        flex: 1;
        justify-content: center;
    }
    .card-header {
        padding: 12px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .card-header .btn {
        width: 100%;
        justify-content: center;
    }
    .client-detail-item {
        padding: 8px 0;
    }
    .table tr {
        padding: 10px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .badge {
        font-size: 11px;
        padding: 3px 10px;
    }
    .form-actions .btn {
        font-size: 14px;
        padding: 12px;
    }
    .strategy-tag {
        font-size: 11px;
        padding: 3px 10px;
    }
    .stat-card {
        padding: 14px 16px;
    }
    .stat-icon {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .stat-info h3 {
        font-size: 18px;
    }
    .member-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .member-details .member-name {
        font-size: 14px;
    }
    .member-details .member-email {
        font-size: 12px;
    }
    .client-tags {
        justify-content: flex-start;
        width: 100%;
    }
    .client-tag {
        font-size: 11px;
        padding: 2px 8px;
    }
    .role-badge {
        font-size: 11px;
        padding: 3px 10px;
    }
    select.form-control[multiple] {
        min-height: 80px;
    }
    .meta-summary-grid {
        grid-template-columns: 1fr;
    }
    .login-container {
                padding: 32px 24px;
                border-radius: 28px;
            }
    .login-logo {
                width: 72px;
                height: 72px;
            }
    .login-logo i {
                font-size: 32px;
            }
    .login-header h1 {
                font-size: 26px;
            }
    .form-options {
                flex-direction: column;
                gap: 12px;
                align-items: flex-start;
            }
    .demo-credentials {
                flex-direction: column;
                gap: 6px;
                align-items: center;
            }
    .profile-avatar .avatar-circle {
        width: 80px;
        height: 80px;
        font-size: 30px;
    }
    .profile-avatar .avatar-badge {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .profile-header h3 {
        font-size: 18px;
    }
    .profile-stats {
        grid-template-columns: 1fr;
    }
    .client-card .client-actions {
        flex-direction: column;
    }
    .client-card .client-actions .btn {
        width: 100%;
    }
    .btn span {
                display: none;
            }
    .welcome-section h2 {
        font-size: 18px;
    }
    .report-list {
        grid-template-columns: 1fr;
    }
    .btn-sm {
        padding: 4px 10px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }
    .calendar-day {
        min-height: 50px;
    }
    .calendar-day .day-number {
        font-size: 10px;
        width: 20px;
        height: 20px;
    }
    .calendar-day .event-item {
        display: none;
    }
    .calendar-day .event-count {
        font-size: 8px;
        display: block;
    }
    .event-popup {
        padding: 16px;
        max-width: 95%;
    }
    .report-summary {
        grid-template-columns: 1fr;
    }
    .client-tags-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .overdue-badge {
        font-size: 9px;
        padding: 1px 8px;
    }
    .task-details .task-description {
        padding: 10px 12px;
        font-size: 13px;
    }
    .task-details .task-meta .meta-item {
        font-size: 13px;
    }
    .current-status {
        font-size: 13px;
        padding: 4px 12px;
    }
    .task-details .task-meta {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 992px) {
    .module-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-actions {
        width: 100%;
    }
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .card-body {
        padding: 24px;
    }
    .filter-bar {
        flex-direction: column;
        width: 100%;
    }
    .filter-bar .form-control {
        width: 100% !important;
        min-width: unset;
    }
    .client-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .form-actions {
        flex-direction: column;
    }
    .form-actions .btn-danger {
        flex: 1;
    }
    .report-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .calendar-day {
        min-height: 80px;
        padding: 4px 6px;
    }
    .calendar-day .day-number {
        font-size: 12px;
    }
    .calendar-day .event-item {
        font-size: 9px;
        padding: 1px 4px;
    }
}

@media (max-width: 768px) {
    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .social-input-group {
        grid-template-columns: 1fr;
    }
    .card-body {
        padding: 20px;
    }
    .module-header h2 {
        font-size: 24px;
    }
    .form-group {
        margin-bottom: 16px;
    }
    .table thead {
        display: none;
    }
    .table, .table tbody, .table tr, .table td {
        display: block;
        width: 100%;
    }
    .table tr {
        background: #ffffff;
        border: 1px solid #e8e8e8;
        border-radius: 16px;
        margin-bottom: 16px;
        padding: 16px;
    }
    .table td {
        border: none;
        padding: 8px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    .table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #4a4a4a;
        font-size: 13px;
        margin-right: 16px;
        min-width: 80px;
    }
    .table td:last-child {
        border-bottom: none;
    }
    .table td .client-info {
        flex: 1;
    }
    .action-buttons {
        flex: 1;
        justify-content: flex-end;
    }
    .client-name {
        font-size: 20px;
    }
    .client-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 10px 0;
    }
    .client-detail-item .label {
        min-width: auto;
        font-size: 13px;
    }
    .client-detail-item .value {
        font-size: 14px;
    }
    .social-links {
        justify-content: flex-start;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .filter-bar {
        flex-direction: column;
        width: 100%;
    }
    .filter-bar .btn {
        width: 100%;
        justify-content: center;
    }
    .task-description {
        display: none;
    }
    .card-icon {
        width: 60px;
        height: 60px;
    }
    .card-icon i {
        font-size: 24px;
    }
    .card h3 {
        font-size: 17px;
    }
    .filter-bar .form-control {
        width: 100% !important;
        min-width: unset;
    }
    .progress-container {
        flex: 1;
    }
    .stat-card {
        padding: 16px 18px;
    }
    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    .stat-info h3 {
        font-size: 20px;
    }
    .table tr:hover {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    }
    .table td .member-info {
        flex: 1;
    }
    .client-tags {
        flex: 1;
        justify-content: flex-end;
    }
    .member-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .meta-summary-grid {
        grid-template-columns: 1fr 1fr;
    }
    .profile-avatar .avatar-circle {
        width: 100px;
        height: 100px;
        font-size: 38px;
    }
    .profile-header h3 {
        font-size: 20px;
    }
    .profile-stats {
        grid-template-columns: 1fr 1fr;
    }
    .module-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-actions {
        width: 100%;
    }
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .client-grid {
        grid-template-columns: 1fr;
    }
    .client-card .client-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .welcome-section h2 {
        font-size: 22px;
    }
    .calendar-nav {
        flex-direction: column;
        gap: 12px;
    }
    .calendar-grid {
        gap: 2px;
    }
    .calendar-day {
        min-height: 60px;
        padding: 3px 4px;
        border-radius: 6px;
    }
    .calendar-day .day-number {
        font-size: 11px;
        width: 22px;
        height: 22px;
    }
    .calendar-day .event-item {
        font-size: 8px;
        padding: 1px 3px;
        border-left-width: 2px;
    }
    .calendar-day .event-count {
        font-size: 8px;
    }
    .calendar-legend {
        flex-direction: column;
        gap: 6px;
    }
    .report-summary {
        grid-template-columns: 1fr 1fr;
    }
    .client-list-grid {
        grid-template-columns: 1fr;
    }
    .member-info-box {
        flex-direction: column;
        text-align: center;
    }
    .form-actions {
        flex-direction: column;
    }
    .stat-info p {
        font-size: 13px;
    }
    .card-header {
        padding: 14px 18px;
    }
    .card-header h3 {
        font-size: 15px;
    }
    .client-tags-container {
        gap: 8px;
    }
    .client-tag {
        font-size: 13px;
        padding: 4px 14px;
    }
    .table td .badge {
        font-size: 11px;
        padding: 3px 10px;
    }
    .task-details .task-title {
        font-size: 18px;
    }
    .task-details .task-meta {
        flex-direction: column;
        gap: 8px;
    }
    .status-options {
        grid-template-columns: 1fr;
    }
    .status-option {
        padding: 12px;
    }
    .client-card .client-actions {
        flex-direction: column;
    }
    .client-card .client-actions .btn {
        width: 100%;
    }
    .task-table thead {
        display: none;
    }
    .task-table, .task-table tbody, .task-table tr, .task-table td {
        display: block;
        width: 100%;
    }
    .task-table tr {
        background: #ffffff;
        border: 1px solid #e8e8e8;
        border-radius: 10px;
        margin-bottom: 10px;
        padding: 10px;
    }
    .task-table td {
        border: none;
        padding: 4px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    .task-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #4a4a4a;
        font-size: 11px;
        margin-right: 10px;
        min-width: 70px;
    }
    .task-table td:last-child {
        border-bottom: none;
    }
    .task-table td .btn {
        font-size: 11px;
        padding: 3px 8px;
    }
    .report-list {
        grid-template-columns: 1fr;
    }
    .client-info-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .form-actions .btn-danger {
        flex: 1;
    }
}

@media print {
    .sidebar, .top-header, .header-actions, .filter-bar, .action-buttons {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
    }
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    .stat-card {
        break-inside: avoid;
        border: 1px solid #ddd !important;
    }
    .table tr {
        break-inside: avoid;
        border: 1px solid #ddd !important;
    }
    .sidebar, .top-header, .header-actions {
        display: none !important;
    }
    .sidebar, .top-header, .header-actions, .filter-bar {
        display: none !important;
    }
    .sidebar, .top-header, .header-actions, .action-buttons {
        display: none !important;
    }
    .sidebar, .top-header, .header-actions, .btn {
        display: none !important;
    }
    .sidebar, .top-header, .header-actions, .filter-bar, .btn {
        display: none !important;
    }
    .sidebar, .top-header, .header-actions, .btn, .form-group {
        display: none !important;
    }
    .task-details {
        border-bottom: 1px solid #ddd !important;
    }
}

@media (max-width: 576px) {
    .report-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .module-header h2 {
        font-size: 20px;
    }
    .card-body {
        padding: 20px 14px;
    }
    .card-icon {
        width: 56px;
        height: 56px;
    }
    .card-icon i {
        font-size: 22px;
    }
    .card .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .module-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-actions {
        width: 100%;
    }
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .action-buttons .btn {
        font-size: 11px;
        padding: 3px 6px;
        min-width: 45px;
    }
    .action-buttons .btn i {
        font-size: 11px;
    }
    .table td:before {
        font-size: 11px;
        min-width: 80px;
    }
}

/* ================================================================
   BILLING MODULE
   ================================================================ */

.billing-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.billing-stat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(233,71,38,0.06);
    border-left: 4px solid var(--border);
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}

.billing-stat:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}

.billing-stat .stat-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    background: #f3f4f8;
    color: #6a6a6a;
}

.billing-stat .stat-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.billing-stat .stat-value {
    font-size: 25px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}

.billing-stat.stat-danger  { border-left-color: #e53935; }
.billing-stat.stat-success { border-left-color: #43a047; }
.billing-stat.stat-warning { border-left-color: #f0a500; }

.billing-stat.stat-danger .stat-value  { color: #c62828; }
.billing-stat.stat-success .stat-value { color: #2e7d32; }
.billing-stat.stat-warning .stat-value { color: #b8860b; }

.billing-stat.stat-danger .stat-icon  { background: #fdecea; color: #e53935; }
.billing-stat.stat-success .stat-icon { background: #e8f5e9; color: #43a047; }
.billing-stat.stat-warning .stat-icon { background: #fff6e0; color: #f0a500; }
.billing-stat.stat-total .stat-icon   { background: #eef2ff; color: #3730a3; }

/* ---- Toolbar (search + status filter) ---- */
.billing-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.billing-toolbar .form-control { min-width: 0; }

/* ---- Table ---- */
#billingTable thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

#billingTable tbody tr[data-billing-status="unpaid"] {
    background: linear-gradient(to right, rgba(229,57,53,0.035), transparent 12%);
}

.billing-client-cell { display: flex; align-items: center; gap: 12px; }

/* ---- Shared pill-select look for both status dropdowns ---- */
.select-status,
.select-project-status {
    padding: 7px 30px 7px 12px;
    border-radius: 20px;
    border: 2px solid var(--border);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    background-color: #fff;
    color: var(--text);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%236a6a6a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all .2s ease;
}

.select-status.status-paid,
.select-project-status.status-active {
    border-color: #a5d6a7; color: #2e7d32; background-color: #e8f5e9;
}
.select-status.status-unpaid,
.select-project-status.status-deactive,
.select-project-status.status-inactive {
    border-color: #ffcdd2; color: #c62828; background-color: #ffebee;
}

.remark-input {
    width: 100%;
    min-width: 170px;
    padding: 8px 10px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    resize: vertical;
    background: #fafafa;
    transition: all .2s ease;
}

.remark-input:focus, .select-status:focus, .select-project-status:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(233, 71, 38, 0.08);
    background-color: #ffffff;
}

.badge-account-manager {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #3730a3;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.billing-date-cell { font-weight: 600; display: inline-block; }

.billing-date-cell.overdue { color: #c62828; }
.billing-date-cell.due-soon { color: #b8860b; }

.billing-date-hint {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
    color: var(--muted);
}
.billing-date-cell.overdue + .billing-date-hint,
.billing-date-hint.is-overdue { color: #c62828; }
.billing-date-hint.is-due-soon { color: #b8860b; }

.save-row-btn {
    padding: 7px 16px;
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .billing-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .billing-summary {
        grid-template-columns: 1fr;
    }
    .billing-stat { border-left-width: 4px; }
}