/* Dashboard Donezo Style */

/* Variables de colores */
:root {
    --donezo-green: #3498DB;
    --donezo-green-dark: #2980b9;
    --donezo-bg: #f8f9fa;
    --donezo-card-bg: #ffffff;
    --donezo-text-primary: #111111;
    --donezo-text-secondary: #555555;
    --donezo-text-light: #888888;
    --donezo-border: #e5e7eb;
    --donezo-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --donezo-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --nm-bg: #ebeff9;
    --nm-text: #111111;
    --nm-accent: #3498DB;
    --nm-shadow-light: #ffffff;
    --nm-shadow-dark: #d1d9e6;
    --nm-shadow-main: -6px -6px 12px var(--nm-shadow-light), 6px 6px 12px var(--nm-shadow-dark);
    --nm-shadow-inset: inset -4px -4px 8px var(--nm-shadow-light), inset 4px 4px 8px var(--nm-shadow-dark);
}

/* Layout principal */
.dashboard-donezo {
    background: var(--donezo-bg);
    min-height: 100vh;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0;
    padding: 32px 24px;
}

.dashboard-main-content {
    max-width: 1600px;
    margin: 0;
    padding: 2rem 2.5rem; /* Main spacing for dashboard content */
}

.dashboard-header-donezo {
    margin-bottom: 2rem;
}

.dashboard-title-donezo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--nm-text);
}

.dashboard-subtitle-donezo {
    color: #5a6a7a;
    font-size: 1rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.btn-donezo {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.btn-primary-donezo {
    background: var(--donezo-green);
    color: white;
    border: none;
    box-shadow: var(--nm-shadow-main);
}

.btn-primary-donezo:hover {
    background: var(--donezo-green-dark);
    color: white;
    box-shadow: var(--nm-shadow-inset);
}

.btn-secondary-donezo {
    background: var(--nm-bg);
    color: var(--nm-text) !important;
    box-shadow: var(--nm-shadow-main);
    border: none;
}

.btn-secondary-donezo:hover {
    box-shadow: var(--nm-shadow-inset);
    color: var(--nm-text);
}

/* Stats Cards */
.stats-grid-donezo {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stats-card-donezo {
    background: var(--donezo-card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--donezo-shadow);
    border: 1px solid var(--donezo-border);
    position: relative;
    transition: all 0.2s ease;
}

.stats-card-donezo:hover {
    transform: translateY(-4px);
    box-shadow: var(--donezo-shadow-lg);
}

/* Stats Card Content */
.stats-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stats-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--donezo-text-secondary);
    margin: 0;
    line-height: 1.4;
}

.stats-card-icon {
    font-size: 20px;
    color: var(--donezo-text-light);
}

/* Número principal */
.stats-number-donezo {
    font-size: 40px;
    font-weight: 700;
    color: var(--donezo-text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

/* Card verde principal */
.stats-card-primary {
    background: var(--donezo-green);
    color: white;
}

.stats-card-primary .stats-card-title {
    color: rgba(255, 255, 255, 0.9);
}

.stats-card-primary .stats-number-donezo {
    color: white;
}

.stats-card-primary .stats-card-icon {
    color: rgba(255, 255, 255, 0.8);
}


/* Texto de cambio */
.stats-change {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--donezo-text-secondary);
}

.stats-change.positive {
    color: var(--donezo-green);
}

.stats-change.neutral {
    color: var(--donezo-text-light);
}

.stats-card-primary .stats-change {
    color: rgba(255, 255, 255, 0.8);
}

/* Content Grid */
.content-grid-donezo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Content Cards */
.content-card-donezo {
    background: var(--donezo-card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--donezo-shadow);
    border: 1px solid var(--donezo-border);
}

.content-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.content-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--donezo-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--donezo-border);
    transition: background-color 0.2s ease;
}

.activity-item:hover {
    background-color: #f9fafb;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-icon.job {
    background-color: #3b82f6;
}

.activity-icon.contact {
    background-color: #16a34a;
}

.activity-info {
    flex: 1;
}

.activity-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--donezo-text-primary);
    margin-bottom: 2px;
}

.activity-details {
    font-size: 12px;
    color: var(--donezo-text-secondary);
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: var(--donezo-text-light);
}

.activity-action a {
    font-size: 12px;
    font-weight: 600;
    color: var(--donezo-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.activity-action a:hover {
    color: var(--donezo-green-dark);
}

.card-footer-link {
    display: block;
    text-align: center;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--donezo-border);
}

.card-footer-link a {
    font-size: 14px;
    font-weight: 600;
    color: var(--donezo-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-footer-link a:hover {
    color: var(--donezo-green-dark);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    border: 2px dashed var(--donezo-border);
    border-radius: 12px;
}

.empty-state-icon {
    font-size: 48px;
    color: var(--donezo-text-light);
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
    color: var(--donezo-text-secondary);
    font-weight: 500;
}

/* Empty State Donezo */
.empty-state-donezo {
    text-align: center;
    padding: 3rem 1.5rem;
    border: 2px dashed var(--nm-shadow-dark);
    border-radius: 20px;
    background: var(--nm-bg);
    box-shadow: var(--nm-shadow-inset);
}

.empty-state-donezo i {
    font-size: 3rem;
    color: var(--donezo-text-light);
    margin-bottom: 1rem;
}

.empty-state-donezo h4 {
    color: var(--nm-text);
    font-weight: 600;
}

.empty-state-donezo p {
    color: var(--donezo-text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid-donezo {
        grid-template-columns: 1fr;
    }

    .stats-grid-donezo {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 20px 16px;
    }

    .dashboard-title-donezo {
        font-size: 28px;
    }

    .dashboard-subtitle-donezo {
        font-size: 14px;
    }

    .stats-grid-donezo {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stats-card-donezo {
        padding: 20px;
    }

    .stats-number-donezo {
        font-size: 36px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .btn-donezo {
        justify-content: center;
    }

    .dashboard-main-content {
        padding: 1.5rem 1rem; /* Tighter spacing for mobile */
    }
}

/* Neumorphic/Soft 3D Styles for Dashboard */

.dashboard-header-donezo {
    margin-bottom: 2rem;
}

.dashboard-title-donezo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--nm-text);
}

.dashboard-subtitle-donezo {
    color: #5a6a7a;
    font-size: 1rem;
}

/* KPI Stats Grid */
.stats-grid-nm {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stats-card-nm {
    background: var(--nm-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--nm-shadow-main);
    transition: all 0.2s ease-in-out;
}

.stats-card-nm:hover {
    transform: translateY(-5px);
}

.stats-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stats-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #5a6a7a;
    text-transform: uppercase;
}

.stats-card-icon {
    font-size: 1.5rem;
    color: var(--nm-accent);
    padding: 0.8rem;
    border-radius: 50%;
    background: var(--nm-bg);
    box-shadow: var(--nm-shadow-inset);
}

.stats-number-nm {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--nm-text);
    margin-bottom: 0.5rem;
}

.stats-change {
    font-size: 0.9rem;
    font-weight: 500;
    color: #5a6a7a;
}
.stats-change .positive {
    color: #27ae60;
    font-weight: 600;
}


/* Activity List Cards */
.activity-card-nm {
    background: var(--nm-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--nm-shadow-main);
    height: 100%;
}

.activity-card-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--nm-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.activity-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.activity-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--nm-shadow-dark);
}
.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.activity-item:first-child {
    padding-top: 0;
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}
.activity-avatar.job { background-color: #3498db; }
.activity-avatar.contact { background-color: #2ecc71; }

.activity-info {
    flex-grow: 1;
}

.activity-name {
    font-weight: 600;
    color: var(--nm-text);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.activity-details {
    font-size: 0.9rem;
    color: #5a6a7a;
}
.activity-time {
    font-size: 0.9rem;
    color: #8a9bb1;
}

.activity-action a {
    color: #8a9bb1;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}
.activity-action a:hover {
    color: var(--nm-accent);
}

.activity-card-nm p {
    color: var(--donezo-text-secondary);
}

.activity-card-nm .p-3 p, 
.activity-card-nm .p-3 {
    color: #333; /* Darker gray for better readability */
}

.activity-card-nm .p-3 strong {
    color: #111; /* Black for labels */
}

.card-footer-link {
    text-align: center;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--nm-shadow-dark);
    color: var(--donezo-text-secondary);
}
.card-footer-link a {
    color: var(--nm-accent);
    font-weight: 600;
    text-decoration: none;
}

/* Custom Badges */
.badge-donezo {
    padding: 0.4em 0.8em;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    background: #e0e5ec;
    color: #5a6a7a;
    box-shadow: inset 3px 3px 6px #bec3c9, inset -3px -3px 6px #ffffff;
}

.badge-donezo.priority {
    background: #fff0c2;
    color: #856404;
    box-shadow: inset 2px 2px 4px #d9c89e, inset -2px -2px 4px #ffffd6;
}

/* Form Controls Soft UI */
.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--donezo-text-secondary);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    background-color: #e0e5ec !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: var(--nm-shadow-inset) !important;
    color: var(--nm-text) !important;
    padding: 12px 16px !important;
}

.form-control:focus, .form-select:focus {
    box-shadow: var(--nm-shadow-inset), 0 0 0 2px var(--nm-accent) !important;
}

/* Soft Alerts */
.alert-soft-warning {
    background-color: #fff8e1;
    border-left: 5px solid #ffc107;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: var(--nm-shadow-main);
    color: #555;
}

.alert-soft-warning h6 {
    color: #111;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid-donezo {
        grid-template-columns: 1fr;
    }

    .stats-grid-donezo {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 20px 16px;
    }

    .dashboard-title-donezo {
        font-size: 28px;
    }

    .dashboard-subtitle-donezo {
        font-size: 14px;
    }

    .stats-grid-donezo {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stats-card-donezo {
        padding: 20px;
    }

    .stats-number-donezo {
        font-size: 36px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .btn-donezo {
        justify-content: center;
    }

    .dashboard-main-content {
        padding: 1.5rem 1rem; /* Tighter spacing for mobile */
    }
} 