/* Scuro Application Portal - Modern macOS Style with Red Theme */

/* CSS Variables - macOS Inspired */
:root {
    --primary-red: #dc2626;
    --primary-red-dark: #b91c1c;
    --primary-red-light: #ef4444;
    --secondary-red: #f87171;
    --accent-red: #fee2e2;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f5f5f7;
    --gray-200: #e8e8ed;
    --gray-300: #d2d2d7;
    --gray-400: #a1a1a6;
    --gray-500: #86868b;
    --gray-600: #6e6e73;
    --gray-700: #515154;
    --gray-800: #1d1d1f;
    --gray-900: #000000;
    --success: #34c759;
    --warning: #ff9500;
    --danger: #ff3b30;
    --urgent: #dc2626;
    --macos-bg: #f5f5f7;
    --macos-card: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    --shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px 0 rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px 0 rgba(0, 0, 0, 0.15);
    --blur: blur(20px);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    background: var(--macos-bg);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Card Component - macOS Style */
.card {
    background: var(--macos-card);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow);
    padding: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 0, 0.08);
}

.card-header {
    border-bottom: 2px solid var(--gray-100);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.card-body {
    padding: 0;
}

/* Login Page */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-xl);
    padding: 2rem 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo {
    width: 160px;
    height: 64px;
    background: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 2.5rem;
    color: var(--white);
    overflow: hidden;
    padding: 8px;
}

.login-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.4rem;
}

.login-subtitle {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
    background: var(--white);
}

.form-input::placeholder {
    color: var(--gray-400);
}

/* Button Styles - macOS Style */
.btn {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    color: var(--white);
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
    text-align: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-red-dark) 0%, var(--primary-red) 100%);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* Asset Confirmation Modal */
.asset-confirmation-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 9999;
}

.asset-confirmation-modal-overlay.is-open {
    display: flex;
}

.asset-confirmation-modal {
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.asset-confirmation-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    background:
        radial-gradient(900px 240px at 0% 0%, rgba(37, 99, 235, 0.26) 0%, rgba(37, 99, 235, 0.08) 55%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(135deg, rgba(37, 99, 235, 0.16) 0%, rgba(255, 255, 255, 0.96) 62%),
        rgba(255, 255, 255, 0.92);
    position: relative;
}

.asset-confirmation-modal-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.85) 0%, rgba(37, 99, 235, 0.18) 55%, rgba(255, 255, 255, 0) 100%);
}

.asset-confirmation-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.15rem;
}

.asset-confirmation-modal-subtitle {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
    user-select: none;
}

.asset-confirmation-instruction {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(37, 99, 235, 0.20);
    color: var(--gray-800);
}

.asset-confirmation-period {
    font-size: 0.85rem;
    color: var(--gray-700);
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(37, 99, 235, 0.20);
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}

.asset-confirmation-modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.asset-confirmation-alert {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.7);
    color: var(--gray-700);
    font-size: 0.9rem;
}

.asset-confirmation-alert.error {
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(254, 226, 226, 0.55);
    color: #991b1b;
}

.asset-confirmation-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.8);
}

.asset-confirmation-table th,
.asset-confirmation-table td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    vertical-align: top;
    text-align: left;
    font-size: 0.9rem;
}

.asset-confirmation-table th {
    font-size: 0.8rem;
    color: var(--gray-600);
    background: rgba(243, 244, 246, 0.7);
    font-weight: 600;
}

.asset-confirmation-table tr:last-child td {
    border-bottom: none;
}

.asset-confirmation-asset-name {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.15rem;
}

.asset-confirmation-asset-meta {
    color: var(--gray-600);
    font-size: 0.8rem;
}

.asset-confirmation-select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.2s ease;
}

.asset-confirmation-select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.asset-confirmation-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(249, 250, 251, 0.7);
}

.asset-confirmation-checkbox {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.4;
}

.asset-confirmation-checkbox input {
    margin-top: 0.15rem;
    width: 18px;
    height: 18px;
}

.asset-confirmation-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.asset-confirmation-btn {
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.asset-confirmation-btn.primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    color: var(--white);
}

.asset-confirmation-btn.primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.asset-confirmation-btn.secondary {
    background: rgba(243, 244, 246, 0.95);
    color: var(--gray-700);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.asset-confirmation-btn.secondary:hover {
    background: rgba(229, 231, 235, 0.95);
}

.asset-confirmation-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.asset-confirmation-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-top-color: rgba(220, 38, 38, 0.85);
    border-radius: 50%;
    animation: assetConfirmationSpin 0.8s linear infinite;
}

@keyframes assetConfirmationSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 680px) {
    .asset-confirmation-modal-header,
    .asset-confirmation-modal-body,
    .asset-confirmation-modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .asset-confirmation-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .asset-confirmation-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Navigation - macOS Style */
.navbar {
    background: var(--macos-card);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity 0.2s ease;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.navbar-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.navbar-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    text-align: right;
}

.user-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.profile-photo-link {
    display: block;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-photo-link:hover {
    transform: translateY(-2px);
}

.navbar-profile-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-profile-photo:hover {
    border-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.navbar-profile-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-profile-placeholder:hover {
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-logout {
    background: var(--gray-100);
    color: var(--gray-800);
    padding: 0.5rem 1.125rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
}

.btn-logout:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

/* Dashboard Layout */
.dashboard-container {
    padding: 0.1rem 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* News Section */
.news-item {
    padding: 0.875rem;
    border-bottom: 1px solid var(--gray-100);
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.4rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.news-content {
    color: var(--gray-700);
    line-height: 1.5;
    font-size: 0.875rem;
}

/* Applications Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}

.app-card {
    background: var(--macos-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 0.6rem 0.4rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.app-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.15);
    background: var(--white);
}

.app-icon {
    font-size: 1.35rem;
    margin-bottom: 0.3rem;
}

.app-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.7rem;
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.app-description {
    font-size: 0.65rem;
    color: var(--gray-500);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tasks List */
.task-item {
    padding: 1rem;
    border-left: 4px solid var(--gray-300);
    background: var(--gray-50);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.task-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

.task-item.priority-urgent {
    border-left-color: var(--urgent);
}

.task-item.priority-high {
    border-left-color: var(--danger);
}

.task-item.priority-medium {
    border-left-color: var(--warning);
}

.task-item.priority-low {
    border-left-color: var(--success);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.task-title {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.95rem;
    flex: 1;
}

.task-priority {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-urgent {
    background: #fef2f2;
    color: var(--urgent);
}

.priority-high {
    background: #fef2f2;
    color: var(--danger);
}

.priority-medium {
    background: #fffbeb;
    color: var(--warning);
}

.priority-low {
    background: #f0fdf4;
    color: var(--success);
}

.task-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.task-due {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-complete {
    background: var(--success);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-complete:hover {
    background: #30b350;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.btn-view {
    background: var(--primary-red);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-view:hover {
    background: var(--primary-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--accent-red);
    color: var(--primary-red);
}

/* Task Pending Table */
 .task-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
 }

 .task-header-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
 }

 .task-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    background: rgba(255, 255, 255, 0.7);
 }

 .task-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
 }

 .task-table thead th {
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-600);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.65rem 0.75rem;
    position: sticky;
    top: 0;
    z-index: 1;
 }

 .task-table tbody td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: top;
 }

 .task-table tbody tr:hover td {
    background: rgba(254, 242, 242, 0.55);
 }

 .task-app {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.875rem;
 }

 .task-title-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 280px;
 }

 .task-title-text {
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.35;
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
 }

 .task-desc-text {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
 }

 .task-priority-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
 }

 .task-due-cell {
    font-size: 0.8rem;
    color: var(--gray-700);
    white-space: nowrap;
 }

 .task-action-muted {
    color: var(--gray-400);
 }

 /* Pagination */
 .pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
 }

 .pagination-info {
    font-size: 0.875rem;
    color: var(--gray-600);
 }

 .pagination-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
 }

 .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: rgba(255, 255, 255, 0.8);
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
 }

 .page-link:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-1px);
 }

 .page-link.active {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    border-color: transparent;
    color: var(--white);
 }

 .page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
 }

 .page-ellipsis {
    padding: 0 0.35rem;
    color: var(--gray-400);
 }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-500);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar-user {
        width: 100%;
        justify-content: space-between;
    }
    
    .apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .task-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .task-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .user-info {
        display: none;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none;
}

/* ==================== DASHBOARD STYLES ==================== */

/* Settings Icon in Navbar */
.navbar-settings-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.navbar-settings-link:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.navbar-settings-icon {
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.navbar-settings-link:hover .navbar-settings-icon {
    color: var(--primary-red);
    transform: rotate(45deg);
}

/* Notification Bell Styles */
.notification-wrapper {
    position: relative;
    margin-right: 1.5rem;
}

.notification-bell {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--gray-600);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-bell:hover {
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.notification-dropdown {
    position: fixed;
    top: 60px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: 380px;
    max-height: calc(100vh - 80px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

@media (min-width: 768px) {
    .notification-dropdown {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        left: auto;
        width: 380px;
        max-height: 500px;
    }
}

.notification-dropdown.show {
    display: flex;
}

.notification-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
}

.notification-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.notification-count {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.notification-body {
    overflow-y: auto;
    max-height: 420px;
}

.notification-empty {
    padding: 3rem 1.5rem;
    text-align: center;
}

.notification-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.notification-empty p {
    color: var(--gray-600);
    margin: 0;
}

.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    transition: background-color 0.2s;
    text-decoration: none;
}

.notification-item:hover {
    background-color: var(--gray-50);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.notification-item-title {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.9rem;
    flex: 1;
    margin-right: 0.5rem;
    text-decoration: none;
}

.notification-item a,
.notification-item-title a {
    text-decoration: none;
    color: inherit;
}

.notification-item a:hover,
.notification-item-title a:hover {
    text-decoration: none;
    color: inherit;
}

.notification-priority {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.notification-priority.priority-high {
    background-color: #fee2e2;
    color: #991b1b;
}

.notification-priority.priority-medium {
    background-color: #fef3c7;
    color: #92400e;
}

.notification-priority.priority-low {
    background-color: #dbeafe;
    color: #1e40af;
}

.notification-item-desc {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin: 0.5rem 0;
    line-height: 1.4;
}

.notification-item-due {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin: 0.5rem 0;
}

.notification-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.btn-notif-view,
.btn-notif-complete {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-notif-view {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

.btn-notif-view:hover {
    background-color: var(--gray-300);
}

.btn-notif-complete {
    background-color: var(--primary-color);
    color: white;
}

.btn-notif-complete:hover {
    background-color: var(--primary-dark);
}

.btn-notif-complete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Compact layout - reduce spacing */
.dashboard-container {
    padding-bottom: 1rem !important;
}

/* Welcome Widget Styles */
.welcome-widget {
    background: linear-gradient(135deg, #fef3e2 0%, #fce4ec 50%, #e8f4f8 100%);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.welcome-content {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.welcome-left {
    flex: 1;
}

.welcome-greeting {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
}

.welcome-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.welcome-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.875rem;
}

.welcome-detail-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.welcome-detail-icon {
    font-size: 1rem;
}

.welcome-datetime {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.welcome-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
}

.welcome-time {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-red);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.welcome-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-photo-wrapper {
    position: relative;
}

.welcome-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.welcome-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.welcome-photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    border: 3px solid white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.welcome-photo-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Responsive welcome widget */
@media (max-width: 768px) {
    .welcome-widget {
        padding: 1.5rem;
    }
    
    .welcome-content {
        flex-direction: column-reverse;
        gap: 1.5rem;
        text-align: center;
    }
    
    .welcome-name {
        font-size: 1.5rem;
    }
    
    .welcome-details {
        align-items: center;
    }
    
    .welcome-datetime {
        align-items: center;
    }
    
    .welcome-photo,
    .welcome-photo-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .welcome-photo-placeholder {
        font-size: 2.5rem;
    }
}

/* KPI Performance Styles */
.kpi-section {
    margin-bottom: 1.5rem;
}

.kpi-section:last-child {
    margin-bottom: 0;
}

.kpi-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--gray-200);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.kpi-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-red);
}

.kpi-card.team {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9e7 100%);
    border-color: #fbbf24;
}

.kpi-card.team:hover {
    border-color: #f59e0b;
}

.kpi-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.kpi-icon {
    font-size: 1.25rem;
}

.kpi-period {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.kpi-stats {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.875rem;
}

.kpi-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kpi-label {
    font-size: 0.8rem;
    color: var(--gray-600);
    font-weight: 500;
}

.kpi-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-900);
}

.kpi-value.kpi-achievement {
    color: var(--primary-red);
}

.kpi-progress {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.kpi-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
}

.kpi-progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease, background-color 0.3s ease;
}

.kpi-progress-fill.success {
    background: linear-gradient(90deg, #10b981, #059669);
}

.kpi-progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.kpi-progress-fill.danger {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.kpi-percentage {
    font-size: 0.95rem;
    font-weight: 700;
    min-width: 55px;
    text-align: right;
}

.kpi-percentage.success {
    color: #10b981;
}

.kpi-percentage.warning {
    color: #f59e0b;
}

.kpi-percentage.danger {
    color: #ef4444;
}

/* ==================== PROFILE PAGE STYLES ==================== */

.profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.profile-header p {
    color: var(--gray-600);
    font-size: 1rem;
}

.profile-grid {
    display: grid;
    gap: 2rem;
}

.profile-card {
    background: var(--macos-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-card-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.profile-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.profile-info-grid {
    display: grid;
    gap: 1.25rem;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-info-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-info-value {
    font-size: 1rem;
    color: var(--gray-900);
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 0.8;
}

/* Profile Photo Section */
.profile-photo-section {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-photo-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #007AFF;
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.25);
}

.profile-photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007AFF, #0051D5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    font-weight: 700;
    border: 4px solid #007AFF;
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.25);
    letter-spacing: -0.02em;
}

.photo-upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-input-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    border: none;
    letter-spacing: -0.01em;
}

.file-input-label:hover {
    background: linear-gradient(135deg, var(--primary-red-dark) 0%, var(--primary-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.file-input-label:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.file-input-label::before {
    content: "📁";
    font-size: 1.25rem;
}

.file-name {
    font-size: 0.95rem;
    color: #374151;
    font-weight: 500;
    border-radius: 6px;
    min-width: 200px;
}

.photo-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn-danger {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.01em;
}

.btn-danger:hover {
    background: var(--gray-200);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-danger::before {
    content: "🗑️ ";
}

.btn-upload {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    color: white;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    letter-spacing: -0.01em;
}

.btn-upload:hover {
    background: linear-gradient(135deg, var(--primary-red-dark) 0%, var(--primary-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-upload:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-upload::before {
    content: "⬆️ ";
}

@media (min-width: 768px) {
    .profile-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Social Media Style Task Cards - Single Column Layout */
.task-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.task-social-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    min-height: 50px;
}

.task-social-card:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-red-light);
}

.task-social-header {
    padding: 0.6rem 0.75rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-right: 1px solid var(--gray-100);
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 140px;
}

.task-social-app-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary-red);
    background: var(--accent-red);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.task-social-body {
    padding: 0.6rem 0.85rem;
    flex: 1;
    display: flex;
    align-items: center;
}

.task-social-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-social-action {
    padding: 0.6rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.task-social-link-action {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-red);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.task-social-link-action:hover {
    color: var(--primary-red-dark);
    gap: 0.5rem;
}

.task-social-footer {
    padding: 0.6rem 0.75rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
}

.task-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-red);
    text-decoration: none;
    transition: all 0.2s ease;
}

.task-social-link:hover {
    color: var(--primary-red-dark);
    gap: 0.5rem;
}

.task-social-link-disabled {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-style: italic;
}

@media (max-width: 768px) {
    .task-social-card {
        flex-wrap: wrap;
    }
    
    .task-social-header {
        border-right: none;
        border-bottom: 1px solid var(--gray-100);
        min-width: 100%;
        padding: 0.55rem 0.75rem;
    }
    
    .task-social-body {
        flex: 1;
        min-width: 60%;
    }
    
    .task-social-action {
        min-width: auto;
        padding: 0.55rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .task-social-card {
        border-radius: 8px;
        min-height: auto;
    }
    
    .task-social-header {
        padding: 0.5rem 0.65rem;
    }
    
    .task-social-body {
        padding: 0.5rem 0.65rem;
    }
    
    .task-social-title {
        font-size: 0.85rem;
    }
    
    .task-social-app-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }
    
    .task-social-action {
        padding: 0.5rem 0.65rem;
    }
    
    .task-social-link-action {
        font-size: 0.75rem;
    }
}
