/**
 * Frontend Account Styles
 * 
 * Styles for account action buttons on frontend pages
 *
 * @package EasyInvoicePro
 */

.easy-invoice-account-actions {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.easy-invoice-account-actions-header h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
}

.easy-invoice-account-actions-header p {
    margin: 0 0 20px 0;
    color: #6c757d;
    font-size: 0.95rem;
}

.easy-invoice-account-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.easy-invoice-account-action-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.easy-invoice-account-action-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.action-icon:not(.danger) {
    background: #e3f2fd;
    color: #1976d2;
}

.action-icon.danger {
    background: #ffebee;
    color: #d32f2f;
}

.action-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.action-content p {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.easy-invoice-export-btn,
.easy-invoice-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.easy-invoice-export-btn {
    background: #1976d2;
    color: white;
}

.easy-invoice-export-btn:hover {
    background: #1565c0;
}

.easy-invoice-delete-btn {
    background: #d32f2f;
    color: white;
}

.easy-invoice-delete-btn:hover {
    background: #c62828;
}

.easy-invoice-export-btn:disabled,
.easy-invoice-delete-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .easy-invoice-account-actions {
        margin: 20px 0;
        padding: 20px;
    }
    
    .easy-invoice-account-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .easy-invoice-account-action-card {
        padding: 15px;
    }
    
    .action-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }
    
    .action-content h4 {
        font-size: 1rem;
    }
    
    .action-content p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .easy-invoice-export-btn,
    .easy-invoice-delete-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Integration with common themes */
.woocommerce-account .easy-invoice-account-actions {
    margin: 20px 0;
    border-radius: 8px;
}

.woocommerce-account .easy-invoice-account-actions-header h3 {
    font-size: 1.1rem;
    color: #333;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .easy-invoice-account-actions {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .easy-invoice-account-actions-header h3 {
        color: #f7fafc;
    }
    
    .easy-invoice-account-actions-header p {
        color: #cbd5e0;
    }
    
    .easy-invoice-account-action-card {
        background: #4a5568;
        border-color: #718096;
    }
    
    .action-content h4 {
        color: #f7fafc;
    }
    
    .action-content p {
        color: #cbd5e0;
    }
}
