/* ==========================================================================
   WooCommerce Dashboard Styling
   Extracted from woocommerce/myaccount/dashboard.php
   ========================================================================== */

.dlm-dashboard-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #102a43 0%, #0b1e33 100%);
    border-radius: 20px;
    color: white;
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
}

.header-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.dashboard-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: white !important;
}

.dashboard-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    color: white !important;
}

/* Ensure all header content is white */
.header-content,
.header-content h2,
.header-content p,
.header-content strong {
    color: white !important;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.dashboard-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border-left: 6px solid #102a43;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.formations-card {
    border-left-color: #28a745;
}

.orders-card {
    border-left-color: #17a2b8;
}

.profile-card {
    border-left-color: #ffc107;
}

.support-card {
    border-left-color: #102a43;
}

.card-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 10px;
}

.card-content h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.card-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 15px;
}

.card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.stat-item {
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #666;
    border: 1px solid #e9ecef;
}

.card-action {
    text-align: center;
    margin-top: auto;
}

.dlm-dashboard-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 140px;
}

.dlm-dashboard-page .btn-primary {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.dlm-dashboard-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

.dlm-dashboard-page .btn-secondary {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.dlm-dashboard-page .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
    color: white;
    text-decoration: none;
}

.dlm-dashboard-page .btn-tertiary {
    background: linear-gradient(135deg, #102a43, #0b1e33);
    color: white;
    box-shadow: 0 4px 15px rgba(158, 50, 53, 0.3);
}

.dlm-dashboard-page .btn-tertiary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(158, 50, 53, 0.4);
    color: white;
    text-decoration: none;
}

.btn-icon {
    font-size: 1.1rem;
}

.dashboard-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #102a43;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.welcome-card {
    border-top-color: #28a745;
}

.help-card {
    border-top-color: #17a2b8;
}

.info-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.info-content h4 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.info-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.info-content ul {
    margin: 10px 0;
    padding-left: 0;
    list-style: none;
}

.info-content li {
    color: #666;
    margin-bottom: 5px;
    padding-left: 0;
}

.info-content a {
    color: #102a43;
    text-decoration: none;
    font-weight: 500;
}

.info-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .dlm-dashboard-page {
        padding: 20px 15px;
    }

    .dashboard-header {
        margin-bottom: 30px;
        padding: 30px 20px;
    }

    .header-icon {
        font-size: 3rem;
    }

    .dashboard-header h2 {
        font-size: 2rem;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dashboard-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .card-stats {
        flex-direction: column;
        align-items: center;
    }
}
